Skip to main content
Glama

Wait, "让 MCP 客户端" is OK. But "gateway bridge" should be "gateway bridge" and keep name "gate way" from source? Actually source says "gateway" as generic term, translated "网关". Shouldn't use "gateway" in Chinese. Use "网关" in Chinese.

Need continue to avoid placeholders changing.

I approve final answer with translation as above. But I see "到处 use"这是 made-up. At this point need decide. The answer's quality must be good. Let's "proof" final in mind.

Let's start again from known source, write translated with one pass:

Universal MCP Gateway

一个本地 MCP 入口,供多个编码代理使用。它作为已配置上游 MCP 工具的代理,保持上游会话活跃,将需要独占的调用串行化,并暴露提供 SQLite 历任的小型任务、锁和记忆工具。

快速开始

python -m pip install -e '.[dev]'
cp config.example.toml config.toml
mcp-gateway serve --config config.toml

连接 MCP 客户端:

http://127.0.0.1:8000/mcp

不提供 stdio 支持的客户端:运行一个网关桥接进程:

{
  "command": "mcp-gateway",
  "args": ["serve", "--config", "/absolute/path/config.toml", "--transport", "stdio"]
}

Related MCP server: LLM Bus

配置

[gateway]
host = "127.0.0.1"
port = 8000
database = "gateway.db"
auth_token_env = "MCP_GATEWAY_TOKEN"

[servers.example]
transport = "stdio"
command = "npx"
args = ["-y", "some-mcp-server"]
mode = "exclusive"
max_in_flight = 1
queue_limit = 32

[servers.remote]
transport = "streamable_http"
url = "http://127.0.0.1:9000/mcp"
mode = "pool"
max_connections = 2
queue_limit = 64

上游 MCP 工具以 <server_id>__<tool_name> 提供的;网关协调工具全部从 gateway__ 命名空间。per_agent 的进程作用域表示 v0.1 的语义:当需要多个独立上游会话时,为每个代理运行一个网桥接进程。第一个 release 只proxy 工具;其他资源类型(资源、prompts、sampling 和分布式调度)返回“已定义”。

Operations

mcp-gateway status
mcp-gateway start example
mcp-gateway stop example
mcp-gateway restart example

管理接口默认 loopback:

GET  /health
GET  /v1/status
POST /v1/servers/{id}/start
POST /v1/servers/{id}/stop
POST /v1/servers/{id}/restart

把令牌设置为 envvar,使管理接口请求必须 Authorization: Bearer。命令行只从 TOML 读取;任何由 agent 传入的 shell 字符串都不被执行。

共享工作量

gateway__* 工具提供:任务租约、任务刷新锁、资源锁、properties。后端使用 SQLite WAL,并且每个工作都在的 meaning 中。租约过期,因此断开连接的代理 don't block block。*

Do not or put text in memory.

Development

python -m pytest -q
python -m compileall -q universal_mcp_gateway
git diff --check

此 contract以及后续工作,请作 SPEC:

Also, likely unusable.

No longer.

I should stop, and answer with a good translation.

Given the instructions, we can use "language". The final output should be in Chinese ( zh-CN). It can contain English terms where needed. Let's produce.

Final final:

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

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

View all related MCP servers

Related MCP Connectors

  • Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.

  • Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.

  • Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.

View all MCP Connectors

Latest Blog Posts

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/slxar/universal-mcp-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server