The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Agent listing page.
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.
Most MCP setups eventually hit two kinds of sprawl:
1MCP addresses both:
1mcp serve gives you one aggregated runtime in front of many MCP servers.instructions, inspect, and run.| 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 |
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.
Install 1MCP, add one upstream server, and start the runtime:
In a second shell, connect your agent to CLI mode:
Then verify the agent workflow:
If you want the full walkthrough (with success criteria and off-ramps), use the Quick Start guide.
For a given agent, choose one mode only. If you switch that agent to CLI mode, remove its old direct MCP configuration first.
CLI mode is the primary workflow for agent-style sessions. It keeps MCP as the backend protocol but narrows what the agent sees at each step:
instructions explains the current runtime and recommended flowinspect lets the agent discover only the server or tool it needsrun executes one selected tool after schema inspectionThat gives agent loops a smaller working surface without giving up the unified runtime behind 1mcp serve.
Use 1mcp proxy when you want the broadest client compatibility without giving up project context.
It is the recommended fallback after CLI mode because it:
.1mcprcDirect stdio mode is not the recommended path. It is mainly useful for debugging because 1MCP startup is slower than a thin standalone stdio setup.
Direct MCP attachment is still supported for clients that want to talk to the aggregated runtime over streamable HTTP.
Examples:
Use this path if your client already speaks MCP natively, can work without project context, and you do not want CLI mode. For Codex, Claude, Cursor, and similar agent loops, prefer CLI mode first and proxy second.
Use the deeper docs if you are configuring or deploying the runtime itself:
1MCP runs as an aggregated runtime behind 1mcp serve. Static servers are prepared from startup configuration, template servers are materialized when client context is known, and the runtime can use async loading for early HTTP listener availability and lazy loading for a stable tool surface. Instruction aggregation, presets, and notifications sit alongside that runtime rather than outside it.
Lazy loading is an opt-in stable tool-surface compatibility mode. It keeps the backend discovery and invocation surface at tool_list, tool_schema, and tool_invoke so capable agents can discover tools progressively without replacing their MCP tool table. Any explicitly enabled internal management tools remain directly exposed. Lazy loading reduces the initial schema payload, but it does not reduce backend connections or processes, make synchronous startup bind earlier, or repair orphaned proxy processes. See #392 for the async late-server visibility contract.
serve process1mcp instructions, 1mcp inspect <server>, 1mcp inspect <server>/<tool>, and 1mcp run <server>/<tool> --args '<json>'proxy for maximum compatibility with project context and template-server supportContributions are welcome. See CONTRIBUTING.md for the development workflow and LICENSE for the Apache 2.0 license.