Agent logo

Agent

by 1mcp

Aggregates multiple MCP servers behind one runtime with CLI-based tool discovery and invocation.

Install Agent

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "1mcp-agent": {
      "command": "npx",
      "args": [
        "-y",
        "@1mcp/agent"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

1mcp/agent combines multiple MCP servers behind a single `1mcp serve` runtime and exposes them through CLI, stdio proxy, or streamable HTTP workflows. Its CLI supports progressive discovery with `instructions`, `inspect`, and `run`, so agents can load guidance and tool schemas as needed. Static servers load from startup configuration, while template servers can resolve from client or session context. Reach for it when several clients or projects need shared MCP configuration, filtering, presets, or project-aware access.

Use cases

  • Aggregate several MCP servers behind one client connection
  • Let agents discover and invoke tools progressively
  • Share MCP configuration across projects and worktrees
  • Route template servers using client or session context

Key features

  • Unified runtime for multiple MCP servers
  • CLI workflow for instructions, inspection, and invocation
  • Stdio proxy and streamable HTTP access
  • Template servers with project or session resolution
  • Optional presets, filters, and lazy loading

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

96/96 checks healthy over the last 44d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · @1mcp/agent (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars524Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Directory activity1 installsConfig copies, upvotes, and views on AllMCPs.

How Agent works

What 1mcp/agent does

1mcp/agent provides one aggregated runtime for multiple MCP servers. The 1mcp serve command sits between clients or agents and the configured upstream servers, allowing a single runtime to manage their connections and expose a unified interface.

The package supports three access patterns. CLI mode is intended for agent-style workflows, 1mcp proxy provides a stdio-compatible bridge for clients that expect that transport, and direct streamable HTTP lets MCP-native clients connect to the running runtime. These modes can use the same server configuration while presenting different levels of discovery and project context.

How it works

Static servers are prepared from startup configuration. Template servers can instead be created after client or session information is available, which supports per-client and per-session resolution. The runtime can also use asynchronous loading to make its HTTP listener available earlier when clients can handle capability changes.

CLI mode narrows the agent-facing workflow to three steps: retrieve runtime guidance with 1mcp instructions, inspect a server or a specific tool with 1mcp inspect, then invoke the selected tool through 1mcp run. This lets an agent discover a relevant schema instead of receiving every upstream tool definition at the beginning of a session.

Optional lazy loading presents a stable backend surface based on tool_list, tool_schema, and tool_invoke. It reduces the initial schema payload but does not reduce backend connections or processes, and it does not fix orphaned proxy processes.

Setup and configuration

Install the package globally with npm, register an upstream server, and start the runtime:

Terminal
npm install -g @1mcp/agent
1mcp mcp add context7 -- npx -y @upstash/context7-mcp
1mcp serve

Configure an agent for CLI mode from another shell. For Codex, use 1mcp cli-setup --codex; for Claude, use 1mcp cli-setup --claude --scope repo --repo-root .. Keep the serve process running while the agent uses CLI mode.

A project can also be selected explicitly when working across repositories or worktrees:

bash
1mcp inspect codegraph --project /absolute/checkout

For direct HTTP attachment, point an MCP client at the running endpoint, optionally identifying the client with the app query parameter:

config.json
{
  "mcpServers": {
    "1mcp": {
      "url": "http://127.0.0.1:3050/mcp?app=cursor"
    }
  }
}

Tools and capabilities

  • Aggregate multiple MCP servers behind one serve process.
  • Discover runtime guidance with 1mcp instructions.
  • Inspect an upstream server or individual tool with 1mcp inspect <server> and 1mcp inspect <server>/<tool>.
  • Invoke a selected tool with 1mcp run <server>/<tool> --args '<json>'.
  • Resolve template servers from client or session context.
  • Use presets, filters, and aggregated instructions across clients and projects.
  • Connect through CLI mode, the stdio proxy, or streamable HTTP.

Limitations and notes

CLI mode and the stdio proxy depend on a running 1mcp serve instance. Direct streamable HTTP is intended for clients that already speak MCP natively, but it does not provide project context or .1mcprc handling and exposes a broader tool surface directly.

Use one connection mode per agent. When moving an agent to CLI mode, remove its previous direct MCP configuration. Lazy loading is opt-in and changes how schemas are surfaced; it does not eliminate upstream processes or connections. Clients must be able to reconcile capability changes to benefit from asynchronous loading.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Agent

1mcp/agent is an MCP server that connects clients and AI agents to multiple upstream MCP servers through one aggregated runtime. Its main tools and commands include `instructions` for guidance, `inspect` for discovering servers and schemas, and `run` for invoking a selected upstream tool.

Install it globally with `npm install -g @1mcp/agent`, add an upstream server with `1mcp mcp add`, and start the runtime with `1mcp serve`.

Use CLI mode and follow the `instructions`, `inspect`, then `run` workflow. `inspect` reveals a server or tool schema, and `run` invokes the selected tool with JSON arguments.

Yes. Cursor can connect directly over streamable HTTP using an endpoint such as `http://127.0.0.1:3050/mcp?app=cursor`, and Cursor is also named as a supported CLI-mode agent.

Yes. A shared local runtime can serve multiple repositories or worktrees, and commands can select a checkout with `--project /absolute/checkout`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAgent AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/1mcp-agent?style=directory)](https://allmcps.com/mcp/1mcp-agent)
HTML Embed
<a href="https://allmcps.com/mcp/1mcp-agent"><img src="https://allmcps.com/api/badge/1mcp-agent?style=directory" alt="Agent on AllMCPs" /></a>