Skip to content
MCP server

Subagents-MCP

MCP server that lets Claude Code and claude.ai call your Gemini, Codex and Claude

Subagents-MCP is an open-source MCP server for ai models and llm tooling. It is available on CLI, Web, Self-hosted, API, macOS, Linux and Windows.

Pricing
Open source
Platforms
CLI, Web, Self-hosted
What it can do
Can change data (1 tool)
Listing updated

Similar MCP servers

About Subagents-MCP

Rather than paying per token through API keys, this server runs the signed-in subscription command-line tools for Google's agy, OpenAI's Codex and Anthropic's Claude on your own machine and exposes them over the Model Context Protocol. An MCP client can list the detected agents, send them a message and poll for replies, with conversation IDs carried across turns so follow-up questions resume the same session.

Before each CLI is launched, every API key variable and Google application credential is removed from its environment, and each runner works in an empty, locked-down directory. Gemini, Codex and Claude each run under a restricted tool policy, so they answer as read-only advisers rather than editing files or running shell commands.

The project suits developers who already pay for those consumer subscriptions and want to compare or consult several models from inside Claude Code or a claude.ai custom connector. It can run over stdio or an OAuth-protected HTTP endpoint, and it includes a local proxy for mapping model names in the Claude Code CLI.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 3 tools changes data.

From the server's own tool labels and tool names; not verified by us.

list_agentsName suggests: reads
Lists every discovered subscription agent with id, provider, label and busy state.
send_to_agentName suggests: changes
Starts or continues a conversation with a chosen agent and returns a conversation ID.
get_replyName suggests: reads
Long-polls for replies newer than a given point and returns status and replies.

What it does

Subscription-based agent access
Routes requests to locally signed-in Gemini, Codex and Claude CLIs instead of API endpoints.
Multi-turn session resume
Passing a conversation ID back resumes the underlying CLI conversation.
API key stripping
Removes API keys and Google credentials from the environment before any CLI starts.
Read-only tool lockout
Each agent runs with its tools denied or sandboxed to read-only access.
Stdio and HTTP transports
Works as a local stdio server or as a Streamable HTTP endpoint with OAuth 2.1 or a bearer token.
Claude Code proxy mode
A local proxy can route selected Claude Code model slots to the Gemini or Codex agents.

Good for

  • Get a second opinion from Gemini or Codex while working in Claude Code
  • Compare answers from Gemini, Codex and Claude side by side in one chat
  • Use a claude.ai custom connector to reach local subscription agents from web or mobile
  • Avoid per-token API charges when already holding monthly AI subscriptions

Pricing

Open source

Free MIT-licensed server; requires your own AI subscriptions.

Subagents-MCP FAQ

Does Subagents-MCP send my requests through an API key?

No. It strips every *_API_KEY variable and Google application credentials before spawning the CLIs, so calls use the subscription sign-in.

Can the agents edit files on my machine?

No. Codex runs in a read-only sandbox, Claude runs in plan mode, and the Gemini agent has its tool permissions denied.

Which CLIs do I need installed?

Any of agy, codex and claude that you have signed in to. Missing CLIs are skipped at startup.

How does conversation continuity work?

Pass the conversation_id returned by send_to_agent back into the next call to resume the same CLI conversation.

Is Subagents-MCP free?

Yes. Subagents-MCP is open source, so you can use and self-host it for free.

What are the best alternatives to Subagents-MCP?

The closest alternatives to Subagents-MCP are Ai Cli MCP, Agent Intern, Gemini, Claude Octopus and Proxima.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers