Purpose
1MCP is a unified MCP (Model Context Protocol) runtime. It aggregates multiple MCP servers into a single unified server, solving two common types of sprawl in MCP usage:
- Configuration sprawl: every client needs its own MCP wiring, authentication choices, and filtering rules.
- Agent sprawl: autonomous sessions start with too many tools and schemas in context.
Main capabilities
- Unified runtime: provides a unified runtime for multiple MCP servers through a single serve process.
- CLI mode: supports progressive discovery, with commands including 1mcp instructions, 1mcp inspect <server>, 1mcp inspect <server>/<tool>, 1mcp run <server>/<tool> --args '<json>'.
- Template servers: can be resolved per client or per session.
- Asynchronous loading (optional): provides HTTP listener availability as early as possible when clients can coordinate capability changes.
- Lazy loading (optional): provides a stable progressive discovery tool surface and reduces the initial schema size.
- Automatic recovery (optional): provides health/status visibility and operator restart control for owned stdio backends.
- Instruction aggregation: aggregates instructions across static servers and template-backed servers.
- Presets, filtering, and preset change notifications.
- Proxy mode: for maximum compatibility while preserving project context and template server support.
- Direct streamable HTTP MCP access: suitable for native HTTP clients that do not need project context.
Usage
Quick start (for agent users): install 1MCP, add an upstream server, and start the runtime; in a second shell, connect the agent to CLI mode; then verify the agent workflow. For a given agent, choose only one mode; if you switch that agent to CLI mode, first remove its old direct MCP configuration.
CLI mode is the primary workflow for agent sessions: it keeps MCP as the backend protocol but narrows what the agent sees at each step, instructions explain the current runtime and recommended flow, inspect lets the agent discover only the server or tool it needs, and run executes a selected tool after inspection mode.
Other paths: when you want to avoid giving up projectWhen obtaining the broadest client compatibility within context, the 1mcp proxy can be used. It works with the stdio transport already supported by most AI clients, preserves project context via .1mcprc, supports templated MCP servers resolved from project or session context, and can be deployed through a one-time global setup plus per-project configuration. Direct stdio mode is not recommended and is mainly used for debugging, because 1MCP starts slower than a lightweight standalone stdio setup. Direct MCP attachment is still supported for clients that wish to communicate with the aggregated runtime via streamable HTTP; this path can be used if the client natively supports MCP, does not need project context, and does not want to use CLI mode. For Codex, Claude, Cursor, and similar agent loops, it is recommended to prefer CLI mode, followed by the proxy.
Use Cases
- Give coding agents a stable runtime, but with a smaller surface area.
- Share the same MCP manifest across Cursor, Claude Code, Codex, and internal tools.
- Expose templated servers with specific context per repository, branch, or session.
- Centrally manage authentication, filtering, presets, and runtime lifecycle instead of rebuilding them in ad hoc scripts.
Limitations
Lazy loading is an optional stable tool surface compatibility mode. It keeps the backend discovery and invocation surface as tool_list, tool_schema, and tool_invoke, so capable agents can progressively discover tools without replacing their MCP tool table. Any explicitly enabled internal management tools will still be exposed directly. Lazy loading reduces the initial schema load, but it does not reduce backend connections or processes, does not make synchronous startup bind earlier, and does not fix orphaned proxy processes.
Development and License
Contributions are welcome. For the development workflow, see CONTRIBUTING.md. The project uses the Apache 2.0 license (LICENSE).