Skip to content
MCP server

Agent Ex

MCP server that hands coding tasks to background Claude Code or OpenCode agents

Runs locally

Agent Ex is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.6.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add agent-ex -- npx -y agent-ex-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "agent-ex": {
      "command": "npx",
      "args": [
        "-y",
        "agent-ex-mcp"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agent-ex": {
      "command": "npx",
      "args": [
        "-y",
        "agent-ex-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-ex": {
      "command": "npx",
      "args": [
        "-y",
        "agent-ex-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "agent-ex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agent-ex-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add agent-ex -- npx -y agent-ex-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.agent-ex]
command = "npx"
args = ["-y", "agent-ex-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agent-ex": {
      "command": "npx",
      "args": [
        "-y",
        "agent-ex-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user agent-ex npx -- -y agent-ex-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "agent-ex": {
          "command": "npx",
          "args": [
            "-y",
            "agent-ex-mcp"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • AGENT_EX_HOMEData directory holding config.json, .env and the task database (default: ~/.agent-ex). Run `agent-ex init` once before first use.

About Agent Ex

Agent Ex lets an AI client delegate self-contained coding jobs to external agent CLIs such as Claude Code and OpenCode. Each task runs in a detached background process, so a long job does not hold up the ongoing conversation. Progress is tracked in a local SQLite task store that can be polled, answered when an agent asks a question, or cancelled.

The same dispatch mechanism supports several workflows: handing off implementation, having one agent draft a design document, or having another agent review that document. Workers can be assigned to different provider profiles, each with its own environment variables, model and PATH additions. Transient API errors such as rate limits are retried automatically, and completion can trigger a Feishu (Lark) card notification.

It suits developers who already use local coding agents and want to run several of them in parallel. Workers run with permission prompts disabled, so it is intended for machines and directories the user controls.

Tools this server provides (6)

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

From the tool list in its README, going by the names, 1 of 6 tools changes data; 4 names don't say.

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

agent_ex_submit
Submit a prompt as a background task to an external agent.
agent_ex_statusName suggests: reads
Read task state and the question when input is needed.
agent_ex_cancelName suggests: changes
Cancel a running task.
agent_ex_version
Report the server version and build information.
agent_ex_doctor
Run diagnostics on the setup and notification path.
agent_ex_restart
Restart the server so the host respawns it.

What it does

Detached background execution
Tasks run in their own process tree so the calling conversation stays responsive.
Task state tracking
Tasks move through queued, running, needs input and terminal states, with up to five continuation rounds.
Multiple agent profiles
Built-in Claude Code and OpenCode executors, each with its own env, model and PATH settings.
Answer agent questions
Tasks waiting on input can be continued by submitting an answer to the same task.
Automatic retry on transient errors
Rate limits, overload responses and connection resets are retried with backoff.
Feishu notifications
Terminal task states can push a card to a Feishu bot, with a dry-run mode for testing.

Good for

  • Delegate a well-specified refactor to a background coding agent while continuing other work
  • Have one agent write a design document and a second agent review it for gaps
  • Run several coding tasks in parallel and collect their results later
  • Get notified in Feishu when a long-running agent job finishes

Pricing

Open source

Free and MIT licensed; installed via npm.

Agent Ex FAQ

What do I need to run Agent Ex?

Node.js 22.5 or newer and a local agent CLI, either claude or opencode.

Which agents are supported?

Built-in executors for Claude Code and OpenCode, with profiles that can point them at different providers.

Are permission prompts shown to the worker?

No. Workers run with the agent CLI's permission prompts skipped, so it should only be used on trusted machines and directories.

How are API keys stored?

Config files hold placeholders only; real values are kept in a .env file in the data directory with restricted permissions.

Is Agent Ex free?

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

How do I add Agent Ex to Claude Code?

Run this command in your terminal: claude mcp add agent-ex -- npx -y agent-ex-mcp

What are the best alternatives to Agent Ex?

The closest alternatives to Agent Ex are Agent Link, AgentGo, LLM Provider MCP, Agent Intern and agentchan.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers