# Subagents-MCP

> Subagents-MCP is an open-source MCP server for ai models and llm tooling. MCP server that lets Claude Code and claude.ai call your Gemini, Codex and Claude. It is available on CLI, Web, Self-hosted, API, macOS, Linux and Windows.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Web, Self-hosted, API, macOS, Linux, Windows
- **Repository:** https://github.com/aattaran/subagents-mcp
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-02

## About

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.

## Features

- **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

## Tools

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_agents` (name suggests: reads): Lists every discovered subscription agent with id, provider, label and busy state.
- `send_to_agent` (name suggests: changes): Starts or continues a conversation with a chosen agent and returns a conversation ID.
- `get_reply` (name suggests: reads): Long-polls for replies newer than a given point and returns status and replies.

## 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.

## Alternatives

- [Ai Cli MCP](https://ai-powered.com/mcp/ai-cli-mcp): Ai Cli MCP is an open-source MCP server for ai models and llm tooling.
- [Agent Intern](https://ai-powered.com/mcp/agent-intern): Agent Intern is an open-source MCP server for ai models and llm tooling.
- [Gemini](https://ai-powered.com/mcp/gemini): Gemini is an open-source MCP server for ai models and llm tooling.
- [Claude Octopus](https://ai-powered.com/mcp/claude-octopus): Claude Octopus is an open-source MCP server for ai models and llm tooling.
- [Proxima](https://ai-powered.com/mcp/proxima): Proxima is a freemium MCP server for ai models and llm tooling.
- [Claude Agy MCP](https://ai-powered.com/mcp/claude-agy-mcp): Claude Agy MCP is an open-source MCP server for ai models and llm tooling.
- [Sub Agents MCP](https://ai-powered.com/mcp/sub-agents-mcp): Sub Agents MCP is an open-source MCP server for developer tools.
- [Gemini MCP](https://ai-powered.com/mcp/gemini-mcp): Gemini MCP is an open-source MCP server for design and media.

---
Source: https://ai-powered.com/mcp/subagents-mcp
