Agent MCP Hub logo

Agent MCP Hub

Bridges installed Codex, Cursor, OpenCode, Claude, and Antigravity CLIs to MCP clients over stdio.

Install Agent MCP Hub

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": {
    "agent-mcp-hub": {
      "command": "npx",
      "args": [
        "-y",
        "re-resolves"
      ],
      "env": {
        "MCP_AGENTS": "YOUR_VALUE_HERE",
        "MCP_CONFIRM": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y re-resolves

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The agent-mcp-hub MCP server exposes local Codex, Cursor, OpenCode, Claude Code, and Antigravity CLI agents through one stdio MCP process. It forwards prompts, supports per-agent models and working directories, runs agents in parallel, and can review a change with separate runner and reviewer agents. Reach for it when an MCP client needs to delegate coding work to CLI tools already installed and authenticated on the same machine.

Use cases

  • Delegate coding prompts to a selected local CLI agent
  • Compare responses from multiple coding agents
  • Review a Git worktree change with a second agent
  • Restrict exposed agents with an allowlist
  • Require confirmation before spawning agent processes

Key features

  • Stdio MCP transport
  • Codex, Cursor, OpenCode, Claude, and Antigravity delegation
  • Parallel multi-agent execution
  • Runner-and-reviewer change analysis
  • Per-agent model selection
  • Classified CLI error responses

Tools8

What Agent MCP Hub lets your agent do. Expand a tool for its parameters.

Self-reported~118 tokens of context

Security & health

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

ActiveLast checked

Recent health check succeeded.

19/19 checks healthy over the last 85d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · re-resolves (npm)

Adoption & maintenance

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

npm downloads188Package downloads in the last 30 days.
Last commit18d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Agent MCP Hub works

What agent-mcp-hub MCP server does

The agent-mcp-hub MCP server presents several local coding-agent command-line interfaces as MCP tools. It can send a prompt to Codex, Cursor, OpenCode, Claude Code, or Google Antigravity, using the corresponding CLI rather than a remote service. The process runs as a child of the MCP client, so the agents can use the caller's machine, repository path, and existing CLI sessions.

Available agent tools accept a prompt plus optional model, working directory, total timeout, and inactivity timeout. run_all sends one prompt to multiple enabled agents concurrently and returns their outputs side by side. list_agents reports the configured CLIs found on PATH, while ping provides a health check.

review_change supports a two-agent workflow: one agent makes a change in a Git worktree, and another evaluates the resulting diff. Its result includes the runner output, a diff summary, and a PASS, WARN, or FAIL judgment. Untracked files are included with bounded contents, although existing dirty changes can also appear in the review.

How it works

The hub communicates over stdio only. There is no HTTP transport or Docker image, and it is intended to run locally under the MCP client. Each tool starts the selected CLI with the supplied prompt and reports a cleaned, ANSI-free result.

Model identifiers belong to individual agents. For fan-out calls, run_all accepts a per-agent models map; unspecified agents use the shared fallback or their own CLI default. Invalid agent names in that map are rejected. The review workflow separately accepts runner and reviewer model settings.

Failures are classified into conditions such as missing installation, missing authentication, missing configuration, timeout, stalled stream, busy service, or generic command failure. Returned messages include a suggested fix instead of an unprocessed terminal dump. OpenCode prompts beginning with a hyphen are rejected because its command-line parser may interpret them as options.

Setup and configuration

Install the CLIs you intend to expose, authenticate them, and ensure they are available on PATH. The documented commands cover Codex, Cursor, OpenCode, Claude Code, and Antigravity; any subset can be used. Antigravity is signed in through its first run and stores credentials in the operating-system keyring.

Install the hub globally with npm i -g agent-mcp-hub@0.5.0, then configure an MCP client to launch agent-mcp-hub. Claude Code can register it with claude mcp add agent-hub -- agent-mcp-hub; other clients can use a stdio mcp.json entry. An npx configuration is also available, but it resolves the package at each launch and may start more slowly.

Set MCP_AGENTS to a comma-separated allowlist such as codex,claude. If unset, all five agents are exposed. Disabled agents do not appear in the tool list, list_agents, or run_all; an invalid name prevents startup.

Set MCP_CONFIRM=1, true, on, or all to require confirmation before an agent process is launched. The confirmation includes the agent, prompt, working directory, and model. Confirmation is off by default and also applies to run_all and the review workflow.

Tools and capabilities

  • codex, cursor, opencode, claude, and agy delegate prompts to their matching local CLIs.
  • run_all performs parallel fan-out with side-by-side results.
  • review_change separates implementation from review and returns the observed change.
  • list_agents checks enabled CLIs and PATH availability.
  • ping checks server health.
  • Timeout controls distinguish total runtime from inactivity.

Limitations and notes

The agent-mcp-hub MCP server depends on the local CLI installations, their authentication state, their model configuration, and the client's repository path. It is not designed as a containerized or remote service. Raising a timeout does not fix a stream stalled by a network or proxy problem.

Reviewers receive reduced permissions where the underlying agent supports them. Codex uses an OS-level read-only sandbox and Claude uses denied tools; Cursor's plan mode is advisory, Antigravity relies partly on headless auto-denial, and OpenCode has no available restriction. The review process is defense-in-depth, not a sandbox, and does not replace CI or client-side safeguards.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about Agent MCP Hub

agent-mcp-hub is an MCP server that connects MCP clients to locally installed Codex, Cursor, OpenCode, Claude Code, and Google Antigravity CLIs. Its main tools delegate prompts to individual agents, run one prompt across agents, list available CLIs, check health, and review Git changes with separate runner and reviewer agents.

Install it globally with `npm i -g agent-mcp-hub@0.5.0`, then configure your MCP client to run the `agent-mcp-hub` command over stdio. You can also use `npx -y agent-mcp-hub@0.5.0`, though startup may be slower because npx resolves the package at launch.

It supports Codex, Cursor, OpenCode, Claude Code, and Google Antigravity. Install and authenticate any subset of those command-line tools, then use `MCP_AGENTS` to expose only the agents you want.

Yes. Configure Cursor with a stdio MCP entry whose command is `agent-mcp-hub`, then ensure `cursor-agent` is installed, authenticated, and on PATH. The `cursor` tool sends prompts through `cursor-agent -p`.

Set `MCP_CONFIRM=1` in the MCP server environment. The server then asks for confirmation before spawning any agent, including calls made through `run_all`, and reports the agent, prompt, working directory, and model before execution.

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 MCP Hub AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agent-mcp-hub?style=directory)](https://allmcps.com/mcp/agent-mcp-hub)
HTML Embed
<a href="https://allmcps.com/mcp/agent-mcp-hub"><img src="https://allmcps.com/api/badge/agent-mcp-hub?style=directory" alt="Agent MCP Hub on AllMCPs" /></a>