What is MCP-Gateway?
MCP-Gateway is a service that provides unified MCP Server management, enabling AI Agents to connect to databases, REST APIs, and other external services without handling connection details. It is built for developers and AI agent systems that need to manage multiple MCP Server instances and route requests efficiently.
How to use MCP-Gateway?
Clone the repository, install Go dependencies with go mod tidy, and run go run cmd/server/main.go. The server starts on port 8080 by default (customizable via the PORT environment variable). Use the provided test clients (go run test/client.go, test/curl/curl_client.go, test/openapi/openapi_client.go) to interact with HTTP and OpenAPI conversion features.
Key features of MCP-Gateway
- HTTP interface management with OpenAPI import/export and versioning
- Convert curl commands into structured HTTP interfaces
- MCP Server metadata management, version control, and WebAssembly compilation
- Routing rule configuration (e.g., pattern matching
xxx/mcp-server/{name})
- Dynamic activation and tool invocation on compiled MCP Servers
Use cases of MCP-Gateway
- AI agents requiring unified access to multiple external APIs and databases
- Converting legacy curl-based API calls into managed MCP Server endpoints
- Importing or exporting OpenAPI 3.0.0 specifications for compatibility with existing API frameworks
- Enabling versioned, hot-reloadable MCP Servers via WebAssembly deployment
- Centralized route management for services with dynamic server instances
Comments