AI Skill Hub 强烈推荐:metamcp MCP工具 是一款优质的MCP工具。已获得 2.3k 颗 GitHub Star,AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
metamcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
metamcp MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/metatool-ai/metamcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"metamcp-mcp--": {
"command": "npx",
"args": ["-y", "metamcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 metamcp MCP工具 执行以下任务... Claude: [自动调用 metamcp MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"metamcp_mcp__": {
"command": "npx",
"args": ["-y", "metamcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
</div>
>
📢 Latest Update: This ai-dev branch will be the forward onging dev branch which contains ai agent changes. Please test before you build the image based on this branch. There has been many PRs thanks to the community but merging and reviewing them has been a growing effort too. I decided to include ai changes. At least so far the core functionality works. There is also a community maintained fork (ty a lot!): https://github.com/Umbrella-IT-Group/metamcp
MetaMCP is a MCP proxy that lets you dynamically aggregate MCP servers into a unified MCP server, and apply middlewares. MetaMCP itself is a MCP server so it can be easily plugged into ANY MCP clients.
---
For more details, consider visiting our documentation site: https://docs.metamcp.com
English | 简体中文
Clone repo, prepare .env, and start with docker compose:
git clone https://github.com/metatool-ai/metamcp.git
cd metamcp
cp example.env .env
docker compose up -d
If you modify APP_URL env vars, make sure you only access from the APP_URL, because MetaMCP enforces CORS policy on the URL, so no other URL is accessible.
Note that the pg volume name may collide with your other pg dockers, which is global, consider rename it in docker-compose.yml:
volumes:
metamcp_postgres_data:
driver: local
You can use the VSCode/Cursor extension to build the development environment in a container.
It only requires that you have an environment running Docker or a similar alternative (the docker/docker compose command is required), and no other dependent components need to be installed on your host machine.
1. First, clone the MetaMCP source code, open project in Visual Studio Code.
git clone https://github.com/metatool-ai/metamcp.git
cd metamcp
code . 2. Switch to Dev Containers. Open the VSCode Command Palette, and execute Dev Containers: Reopen in Container.
VSCode will open the Dev Containers project in a new window, where it will build the runtime and install the toolchain according to the Dockerfile before starting the connection and finally installing the MetaMCP dependencies. <img width="895" height="153" alt="image" src="https://github.com/user-attachments/assets/d3e1420d-43c1-4ed6-9229-b91ea09c142a" />
note This process requires a reliable network connection, and it will access Docker Hub, GitHub, and some other sites. You will need to ensure the network connection yourself, otherwise the container build may fail.
Wait some minutes, depending on the internet connection or computer performance, it may take from a few minutes to tens of minutes, you can click on the Progress Bar in the bottom right corner to view a live log where you will be able to check unusual stuck. <img width="732" height="173" alt="image" src="https://github.com/user-attachments/assets/6e5752f8-7353-4a8f-b489-c13daef6700e" />
After finished, you can run pnpm dev to start the development server.
uvx or npx, you need to customize the Dockerfile to install dependencies on your own.🛠️ Solution: Customize the Dockerfile to add dependencies or pre-install packages to reduce cold start time.
If you want to deploy it to a online service or a VPS, a instance of at least 2GB-4GB of memory is required. And the larger size, the better performance.
Since MCP leverages SSE for long connection, if you are using reverse proxy like nginx, please refer to an example setup nginx.conf.example
Generally developers can use MetaMCP as infrastructure to host dynamically composed MCP servers through a unified endpoint, and build agents on top of it.
Quick demo video: https://youtu.be/Cf6jVd2saAs

Once configured, users will see a "Sign in with OIDC" button on the login page alongside the email/password form. The authentication flow automatically creates new users on first login.
For more detailed configuration examples and troubleshooting, see CONTRIBUTING.md.
This separation enables common enterprise scenarios:
Add the following environment variables to your .env file:
```bash
OIDC_PROVIDER_ID=oidc OIDC_SCOPES=openid email profile OIDC_PKCE=true ```
Access the Settings page in the MetaMCP admin interface to configure these controls:
Both controls work independently, giving you full flexibility over your registration policy.
The endpoint rate limit acts on the number of simultaneous transactions an endpoint can process. This type of limit protects the service for all customers. When the users connected to an endpoint together exceed the rate-limiting, MetaMCP starts to reject connections with a status code 503 Service Unavailable.
#### Endpoint rate-limiting options Max Rate: Defines how many requests will you accept from all users together at any given instant. When the gateway starts, the bucket is full. As requests from users come, the remaining tokens in the bucket decrease. At the same time, the rate-limiting refills the bucket at the desired rate until its maximum capacity is reached. Max Rate Seconds: Time period in which the maximum rates operate in seconds. For instance, if you set an max rate seconds of 60s and a rate-limiting of 5, you are allowing 5 requests every sixty seconds.
?api_key= param api key auth doesn't work for SSE. It only works for Streamable HTTP and OpenAPI.Authorization: Bearer <API_KEY> header.MetaMCP 提供强大的安全特性,默认启用 PKCE (Proof Key for Code Exchange) 以增强身份验证安全性。系统支持基于 Authorization Code Flow 的流程,并能实现用户自动创建。通过 OIDC 端点的自动发现(Auto-discovery)功能,MetaMCP 可以与现有的认证系统实现无缝的会话管理(Session Management),确保开发者在构建 MCP 应用时兼顾安全与便捷。
推荐使用 Docker Compose 进行部署。首先克隆项目仓库,准备好 `.env` 环境配置文件,然后运行 `docker compose up -d` 即可快速启动。请注意,如果您修改了 `APP_URL` 环境变量,必须通过该指定的 URL 进行访问,因为 MetaMCP 会严格执行基于该 URL 的 CORS 策略。此外,请留意 pg 数据卷名称可能与您现有的其他 PostgreSQL Docker 容器发生冲突。
MetaMCP 允许您将多个 MCP servers 组合到特定的 namespace 中,并将其作为 meta-MCPs 进行托管,同时分配带有身份验证的公共端点(支持 SSE 或 Streamable HTTP)。您可以根据需求灵活选择工具,并计划通过可插拔的 middleware(如可观测性、安全性插件)进行扩展。配置完成后,用户可通过“Sign in with OIDC”按钮进行登录,系统会在首次登录时自动创建用户。
您可以通过修改 `.env` 文件来配置 OIDC 相关参数,例如 `OIDC_PROVIDER_ID`、`OIDC_SCOPES` 以及是否启用 `OIDC_PKCE`。此外,MetaMCP 的管理界面(Admin Interface)提供了灵活的控制选项:在 Settings → Authentication Settings 中,您可以独立开启或关闭“Disable UI Registration”(禁用表单注册)和“Disable SSO Registration”(禁用 OAuth/OIDC 注册),从而实现精细化的用户准入控制。
MetaMCP 提供强大的端点管理功能,允许开发者创建端点并为其分配 namespace。namespace 内的多个 MCP servers 会被聚合并统一通过 MetaMCP 端点发布。在传输层,您可以选择 SSE 或 Streamable HTTP。身份验证方面,支持 API-Key Auth(可通过 Header 或 Query Param 传递)以及符合 MCP Spec 2025-06-18 标准的 OAuth 认证。系统还内置了端点速率限制(Rate-limiting)机制,通过限制并发事务数来保护服务稳定性,当超过限制时会返回 503 状态码。
关于 API Key 认证的常见问题:请注意,使用 `?api_key=` 参数的方式在 SSE 传输协议下无法工作,该方式仅适用于 Streamable HTTP 和 OpenAPI。最佳实践是始终在 HTTP Header 中使用 `Authorization: Bearer <API_KEY>` 进行身份验证。如果遇到连接问题,建议尝试暂时禁用身份验证,以快速排查问题根源是否由 Auth 配置引起。
MCP生态的重要基础设施项目,功能完整、架构合理。聚合网关能力强,社区认可度高,适合规模化MCP部署场景。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,metamcp MCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | metamcp |
| 原始描述 | 开源MCP工具:MCP Aggregator, Orchestrator, Middleware, Gateway in one docker。⭐2.3k · TypeScript |
| Topics | MCP网关聚合器编排器中间件Docker部署TypeScript |
| GitHub | https://github.com/metatool-ai/metamcp |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-14 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端