Content
# Unla - MCP Gateway
> 🚀 Instantly transform your existing MCP Servers and APIs into [MCP](https://modelcontextprotocol.io/) endpoints — without changing a line of code.
[](./README.md)
[](docs/README.zh-CN.md)
[](https://github.com/amoylab/unla/releases)
[](https://mcp.ifuryst.com)
[](https://deepwiki.com/mcp-ecosystem/mcp-gateway)
[](https://discord.gg/udf69cT9TY)
[](https://goreportcard.com/report/github.com/amoylab/unla)
[](https://snyk.io/test/github/mcp-ecosystem/mcp-gateway)
---
## 🎯 Support Us on Product Hunt
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! ❤️
<a href="https://www.producthunt.com/posts/mcp-gateway?embed=true&utm_source=badge-featured&utm_medium=badge&utm_souce=badge-mcp-gateway" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=958310&theme=light&t=1745767484477" alt="MCP Gateway - Turn APIs into MCP endpoints,without changing a line of code | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
---
> ⚡ **Note**: Unla 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](https://discord.gg/udf69cT9TY) or [Issues](https://github.com/amoylab/unla/issues) ❤️
---
## ✨ What is Unla?
**Unla** 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](https://modelcontextprotocol.io/) — all through configuration, with **zero code changes**.
https://github.com/user-attachments/assets/69480eda-7aa7-4be7-9bc7-cae57fe16c54
### 🔧 Core Design Principles
- ✅ 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
---
## 🚀 Getting Started
Unla supports a ready-to-run Docker deployment. Full deployment and configuration instructions are available in the [docs](https://mcp.ifuryst.com/getting-started/quick-start).
### Quick Launch with Docker
Configure environment variables:
```bash
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:
```bash
docker run -d \
--name unla \
-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/amoylab/unla/allinone:latest
```
### Access and Configuration
1. Access the Web Interface:
- Open http://localhost:8080/ in your browser
- Login with the administrator credentials you configured
2. Add an MCP Server:
- Copy the config from: https://github.com/amoylab/unla/blob/main/configs/proxy-mock-server.yaml
- Click "Add MCP Server" in the web interface
- Paste the configuration and save
### Available Endpoints
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.
### Testing
You can test the service using:
1. The MCP Chat page in the web interface
2. Your own MCP Client (**recommended**)
📖 Read the full guide → [Quick Start »](https://mcp.ifuryst.com/getting-started/quick-start)
---
## 🚀 Core Features
### 🔌 Protocol & Proxy Capabilities
- [x] Support for converting RESTful APIs to MCP Server — Client → MCP Gateway → APIs
- [x] 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
- [x] Support for MCP SSE
- [x] Support for MCP Streamable HTTP
- [x] Support for MCP responses including text, images, and audio
### 🧠 Session & Multi-Tenant Support
- [x] Persistent and recoverable session support
- [x] Multi-tenant support
- [ ] Support for grouping and aggregating MCP servers
### 🛠 Configuration & Management
- [x] Automatic configuration fetching and seamless hot-reloading
- [x] Configuration persistence (Disk/SQLite/PostgreSQL/MySQL)
- [x] Configuration sync via OS Signals, HTTP, or Redis PubSub
- [x] Version control for configuration
### 🔐 Security & Authentication
- [x] OAuth-based pre-authentication support for MCP Servers
### 🖥 User Interface
- [x] Intuitive and lightweight management UI
### 📦 Deployment & Operations
- [x] Multi-replica service support
- [x] Docker support
- [x] Kubernetes and Helm deployment support
---
## 📚 Documentation
For more usage patterns, configuration examples, and integration guides, please visit:
👉 **https://mcp.ifuryst.com**
---
## 📄 License
This project is licensed under the [MIT License](LICENSE).
## 💬 Join Our WeChat Community
Scan the QR code below to add us on WeChat. Please include a note: `mcp-gateway`, `mcpgw` or `unla`.
<img src="web/public/wechat-qrcode.png" alt="WeChat QR Code" width="350" height="350" />
## 📈 Star History
[](https://star-history.com/#mcp-ecosystem/mcp-gateway&Date)