Sponsored by Deepsite.site

Hippycampus

Created By
cromwellian8 months ago
An (eventually) secure open-source MCP Server to turn any REST endpoint into MCP resources automatically
Content

Hippycampus

A LangChain-based CLI and MCP server that supports dynamic loading of OpenAPI specifications and integration with Langflow.

Prerequisites

  • Python 3.12.9
  • UV package manager
  • Google AI Studio API key
  • Langflow (for visual workflow creation)

Installation

# Install UV if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create and activate virtual environment
uv venv
source .venv/bin/activate  # On Windows use: .venv\Scripts\activate

# Install hippycampus and its dependencies
uv pip install -e .

# Install langflow
uv pip install langflow

Configuration

Google AI Studio API Key

  1. Visit Google AI Studio
  2. Click "Create API Key" in the top right
  3. Copy the generated key and set it as an environment variable:
export GOOGLE_API_KEY='your-api-key-here'

Running the Applications

CLI Mode (no MCP server)

uv run hippycampus-cli

MCP Server Mode (SSE)

uv run hippycampus-server --transport sse --port 8000

Langflow Server

Ensure the MCP server is running before starting Langflow.

  1. Set the components path environment variable:
# Get your current working directory
pwd
# Use the output to set the components path
export LANGFLOW_COMPONENTS_PATH="/output/from/pwd/langflow/components"
  1. Start the Langflow server (add --dev for development mode):
uv run langflow run
  1. Open your browser and navigate to http://localhost:7860

Using Custom Components in Langflow

  1. In the Langflow UI, locate the custom components:

    • OpenApi Service: For loading OpenAPI specifications
    • Hippycampus MCP Server: For connecting to the MCP server over SSE
  2. Configure the components:

    • OpenApi Service: Use https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/xkcd.com/1.0.0/openapi.yaml for testing
    • MCP Server: Use http://localhost:8000/sse

See the Screencast Demo for a visual guide. Screencast Demo

Note that the official XKCD swagger files contain an error and specify the comic_id field as a number instead of an integer, there is a fixed version in the test folder.

Troubleshooting

  • Authentication errors: Check if GOOGLE_API_KEY is set correctly
  • Missing components in Langflow: Verify LANGFLOW_COMPONENTS_PATH points to the correct directory
  • Connection issues: Ensure the MCP server is running before connecting via Langflow
  • If components don't appear in Langflow, try restarting the Langflow server
  • Use the cli to debug openapi_builder/spec_parser and agent interaction issues before running in MCP/Langflow.

License

MIT License

Copyright (c) 2024 Ray Cromwell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Amap Maps高德地图官方 MCP Server
DeepChatYour AI Partner on Desktop