๐ Instantly transform your existing MCP Servers and APIs into MCP endpoints โ without changing a line of code.
We just launched MCP Gateway on Product Hunt! ๐
If you find this project interesting or helpful, we'd love your support.
Every upvote helps more developers discover it! โค๏ธ
โก Note: MCP Gateway is under rapid development! We strive to maintain backward compatibility, but it cannot be 100% guaranteed. Please make sure to check version changes carefully when upgrading. Due to the fast iteration, documentation updates may sometimes lag behind. If you encounter any issues, feel free to search or ask for help via Discord or Issues โค๏ธ
MCP Gateway is a lightweight and highly available gateway service written in Go. It enables individuals and organizations to convert their existing MCP Servers and APIs into services compliant with the MCP Protocol โ all through configuration, with zero code changes.
MCP.Gateway.Quick.Start.mp4
- โ Zero Intrusion: Platform-agnostic, supports deployment on bare metal, VMs, ECS, Kubernetes, etc., without modifying existing infrastructure
- ๐ Configuration-Driven: Convert legacy APIs to MCP Servers using YAML configuration โ no code required
- ๐ชถ Lightweight & Efficient: Designed for minimal resource usage without compromising on performance or availability
- ๐งญ Built-in Management UI: Ready-to-use web interface to simplify setup and reduce operational overhead
MCP Gateway supports a ready-to-run Docker deployment. Full deployment and configuration instructions are available in the docs.
Configure environment variables:
export OPENAI_API_KEY="sk-eed837fb0b4a62ee69abc29a983492b7PlsChangeMe"
export OPENAI_MODEL="gpt-4o-mini"
export APISERVER_JWT_SECRET_KEY="fec6d38f73d4211318e7c85617f0e333PlsChangeMe"
export SUPER_ADMIN_USERNAME="admin"
export SUPER_ADMIN_PASSWORD="297df52fbc321ebf7198d497fe1c9206PlsChangeMe"
Launch the container:
docker run -d \
--name mcp-gateway \
-p 8080:80 \
-p 5234:5234 \
-p 5235:5235 \
-p 5335:5335 \
-p 5236:5236 \
-e ENV=production \
-e TZ=Asia/Shanghai \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
-e OPENAI_MODEL=${OPENAI_MODEL} \
-e APISERVER_JWT_SECRET_KEY=${APISERVER_JWT_SECRET_KEY} \
-e SUPER_ADMIN_USERNAME=${SUPER_ADMIN_USERNAME} \
-e SUPER_ADMIN_PASSWORD=${SUPER_ADMIN_PASSWORD} \
--restart unless-stopped \
ghcr.io/mcp-ecosystem/mcp-gateway/allinone:latest
-
Access the Web Interface:
- Open http://localhost:8080/ in your browser
- Login with the administrator credentials you configured
-
Add an MCP Server:
- Copy the config from: https://github.com/mcp-ecosystem/mcp-gateway/blob/main/configs/mock-user-svc.yaml
- Click "Add MCP Server" in the web interface
- Paste the configuration and save
After configuration, the service will be available at these endpoints:
- MCP SSE: http://localhost:5235/mcp/user/sse
- MCP SSE Message: http://localhost:5235/mcp/user/message
- MCP Streamable HTTP: http://localhost:5235/mcp/user/mcp
Configure your MCP Client with the /sse
or /mcp
suffix URLs to start using it.
You can test the service using:
- The MCP Chat page in the web interface
- Your own MCP Client (recommended)
๐ Read the full guide โ Quick Start ยป
- Support for converting RESTful APIs to MCP Server โ Client โ MCP Gateway โ APIs
- Support proxying MCP services โ Client โ MCP Gateway โ MCP Servers
- Support for converting gRPC to MCP Server โ Client โ MCP Gateway โ gRPC
- Support for converting WebSocket to MCP Server โ Client โ MCP Gateway โ WebSocket
- Support for MCP SSE
- Support for MCP Streamable HTTP
- Support for MCP responses including text, images, and audio
- Persistent and recoverable session support
- Multi-tenant support
- Support for grouping and aggregating MCP servers
- Automatic configuration fetching and seamless hot-reloading
- Configuration persistence (Disk/SQLite/PostgreSQL/MySQL)
- Configuration sync via OS Signals, HTTP, or Redis PubSub
- Version control for configuration
- OAuth-based pre-authentication support for MCP Servers
- Intuitive and lightweight management UI
- Multi-replica service support
- Docker support
- Kubernetes and Helm deployment support
For more usage patterns, configuration examples, and integration guides, please visit:
This project is licensed under the MIT License.
Scan the QR code below to add us on WeChat. Please include a note: mcp-gateway
or mcpgw
.