@zhangzwd/mcp-gateway
Provides tools for managing context via the Upstash Context7 MCP service, including resolving library IDs and other operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@zhangzwd/mcp-gatewayuse context7_resolve-library-id to look up library 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@zhangzwd/mcp-gateway
一个轻量级 MCP 网关,将多个 MCP 服务聚合成一个统一的 stdio 接口。
每个子服务的工具会自动加上 {服务名}_ 前缀,避免工具名冲突。
安装
npx @zhangzwd/mcp-gateway无需全局安装,npx 会自动下载运行。
Related MCP server: mcp-0ne
配置文件
默认读取 ~/.mcp/gateway.config.json,可通过环境变量 MCP_GATEWAY_CONFIG 覆盖路径。
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "你的API_KEY"]
},
"另一个服务名": {
"command": "node",
"args": ["path/to/server.js"]
}
}
}mcpServers 中的每个 key 就是服务名,会作为工具前缀。例如 context7 服务的 resolve-library-id 工具对外暴露为 context7_resolve-library-id。
在 AI 工具中使用
opencode.json
{
"mcp": {
"gateway": {
"type": "local",
"command": ["npx", "-y", "@zhangzwd/mcp-gateway"]
}
}
}codex config.toml
[mcp_servers.gateway]
command = "npx"
args = ["-y", "@zhangzwd/mcp-gateway"]reasonix config.json
{
"mcpServers": {
"gateway": {
"command": "npx",
"args": ["-y", "@zhangzwd/mcp-gateway"]
}
}
}项目结构
~/.mcp/gateway.config.json # 配置文件(你编辑这个)
~/.mcp-gateway/
gateway.js # 主程序(已发布到 npm)
package.json
README.md工作原理
读取
gateway.config.json,获取子 MCP 服务列表为每个子服务启动一个子进程(stdio 通信)
调用
listTools获取工具列表,工具名加{服务名}_前缀将自己注册为一个 MCP Server,暴露合并后的工具列表
收到
tools/call请求时,根据工具名前缀路由到对应的子服务
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityAmaintenanceA multiplexing gateway that aggregates multiple MCP servers into a single port, significantly reducing context token usage through a Meta-MCP discovery system. It enables dynamic tool discovery and invocation across various transport protocols including stdio, HTTP, and SSE.Last updated1545
- Alicense-qualityCmaintenanceA standalone MCP gateway that multiplexes multiple backend MCP servers behind a single endpoint, supporting both HTTP and stdio transports. It allows users to dynamically manage backends at runtime and organizes tools using a configurable namespace prefix.Last updatedMIT
- Alicense-qualityDmaintenanceMCP Gateway that aggregates multiple upstream MCP servers into a single endpoint with persistent connections, tool registry, and authentication.Last updated292MIT
- Alicense-qualityCmaintenanceA gateway that aggregates multiple MCP servers into a single endpoint, namespacing their tools and forwarding calls, so an agent connects to one MCP to access the entire stack.Last updatedMIT
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhangzwd/mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server