
一种统一的模型上下文协议服务器实现,将多个MCP服务器聚合到一个中。
概览
1MCP 是统一的 MCP 运行时。1mcp 服务聚合你的 MCP 服务器,CLI 模式为 Codex、Claude、Cursor 等类似工具使用代理增加了更精简的代理面向工作流程。 大多数MCP设置最终会遇到两种蔓延: - 配置蔓延:每个客户端都需要自己的MCP布线、认证选择和过滤规则。- 代理蔓延:自治会话在上下文中携带过多工具和模式。 - 1mcp 服务在多个 MCP 服务器前提供一个聚合运行时。- CLI 模式允许代理通过指令逐步发现工具、检查和运行。- 静态服务器可在启动时加载,而模板服务器则可从每个客户端或每个会话上下文创建。- 预设、过滤器和指令聚合使同一运行时在客户端和项目间可适适应。 本页面针对AI代理用户进行了优化。
概述(AI 翻译)
1MCP 是统一的 MCP 运行时。1mcp serve 聚合你的 MCP 服务器,CLI 模式为 Codex、Claude、Cursor 及类似工具使用代理的代理增加了更精简的面向代理的工作流程。
为什么是1MCP
大多数MCP设置最终会遇到两种蔓延:
- 配置蔓延:每个客户端都需要自己的MCP布线、认证选择和过滤规则。
- 代理蔓延:自主会话在上下文中携带过多的工具和模式。
1MCP同时解决了以下两项:
1mcp serve在多个 MCP 服务器前提供一个聚合运行时。- CLI 模式允许代理通过
instructions、inspect和run逐步发现工具。 - 静态服务器可在启动时加载,而模板服务器则可从每个客户端或每个会话上下文创建。
- 预设、过滤器和指令聚合使同一运行时在客户端和项目间可适配。
| 方法 | 最佳 | 权衡 |
|---|---|---|
| 1MCP CLI模式 | Codex、Claude、代理循环 | 需要运行中的1mcp serve实例 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
1MCP
1MCP is the unified MCP runtime. 1mcp serve aggregates your MCP servers, and CLI mode adds a thinner agent-facing workflow for Codex, Claude, Cursor, and similar tool-using agents.
Why 1MCP
Most MCP setups eventually hit two kinds of sprawl:
- Configuration sprawl: every client needs its own MCP wiring, auth choices, and filtering rules.
- Agent sprawl: autonomous sessions carry too many tools and schemas into context up front.
1MCP addresses both:
1mcp servegives you one aggregated runtime in front of many MCP servers.- CLI mode lets agents discover tools progressively with
instructions,inspect, andrun. - Static servers can load at startup, while template servers are created from per-client or per-session context.
- Presets, filters, and instruction aggregation keep the same runtime adaptable across clients and projects.
| Approach | Best for | Tradeoff |
|---|---|---|
| 1MCP CLI mode | Codex, Claude, agent loops | Requires a running 1mcp serve instance |
| 1MCP stdio proxy | Maximum compatibility across clients | Still depends on serve, and auth-capable HTTP clients have a more direct path |
| Direct streamable HTTP | MCP-native HTTP clients | No project context, no .1mcprc, and a broader tool surface is exposed directly |
| Custom proxying | One-off compatibility shims | You own discovery, filtering, auth, and runtime lifecycle |
Quick Start for Agent Users
This page is optimized for AI agent users. The 5-minute outcome is simple: start a real 1mcp serve runtime, connect your agent with cli-setup, then verify the instructions -> inspect -> run workflow.
You — setup: install 1MCP, add one upstream server, and start the runtime:
npm install -g @1mcp/agent
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"1mcp": {
"url": "http://127.0.0.1:3050/mcp?app=cursor"
}
}
}