# agent-mcp-hub [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/blackaxgit/agent-mcp-hub  
**GitHub Stars:** 0  
**npm Downloads (last month):** 188  
**Views:** 12  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-mcp-hub

## Description
One MCP server bridging the Codex, Cursor, OpenCode, and Claude CLI agents

## Tools
Capabilities this server exposes over MCP:

- **codex** — Delegate a prompt to `codex exec` (prompt piped via stdin)
- **cursor** — Delegate a prompt to `cursor-agent -p` (prompt piped via stdin)
- **opencode** — Delegate a prompt to `opencode run
- **claude** — Delegate a prompt to the Claude Code CLI (prompt piped via stdin)
- **agy** — Delegate a prompt to Google Antigravity (`agy --print=…`, prompt passed as a flag value)
- **run_all** — Same prompt to all agents in parallel, results side by side
- **list_agents** — Which agent CLIs are installed and on PATH
- **ping** — Health check

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agent-mcp-hub": {
    "command": "npx",
    "args": ["-y","re-resolves"],
    "env": {
      "MCP_AGENTS": "",
      "MCP_CONFIRM": ""
    }
  }
}
```

**Requires environment variables:** `MCP_AGENTS`, `MCP_CONFIRM` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/agent-mcp-hub/readme_

