# nexus-mcp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/j7an/nexus-mcp  
**GitHub Stars:** 3  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nexus-mcp-2

## Description
Invoke CLI agents (Gemini, Codex, Claude, OpenCode) as MCP tools with parallel execution

## Tools
Capabilities this server exposes over MCP:

- **prompt** — Run one turn with a coding agent and return its final answer.

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

```json
"mcpServers": {
  "nexus-mcp": {
    "command": "uvx",
    "args": ["--with","nexus-mcp[all]","nexus-mcp"]
  }
}
```

## Documentation

## What nexus-mcp does

The nexus-mcp MCP server exposes coding agents through MCP so a connected client can send work to Claude Code, Codex, or Antigravity. Its main v2 interface is the `prompt` tool, which runs one agent turn and returns the backend name, session ID, output, and usage data.

Each request specifies a backend and an absolute project directory. Optional settings select a permission profile, model, timeout, existing session, or fork. This makes the server suitable for repository inspection, code changes, and review tasks performed by one of the supported coding-agent backends.

The repository also documents an earlier job-oriented interface with tools such as `agent_start`, `agent_status`, `agent_result`, `agent_continue`, and `agent_fork`. The migration notes identify those tools as v1 behavior and map their main use cases to the synchronous `prompt` interface in v2.

## How it works

The nexus-mcp MCP server launches through a command such as `uvx` and loads optional backend packages. Claude Code uses the Claude Agent SDK, Codex uses the Codex App Server, and Antigravity uses its SDK. Backend credentials remain with the corresponding agent: Claude can use an authenticated `claude` login or `ANTHROPIC_API_KEY`; Codex uses `codex login`; and Antigravity uses `GEMINI_API_KEY` or Vertex AI with Google application credentials.

A `prompt` call can use `read_only`, `workspace_write`, or `full_access`. Read-only mode permits repository reading and restricted Git inspection. Workspace-write mode adds edits inside the selected directory and sandboxed Bash, while full access removes those profile restrictions. Codex applies equivalent OS sandbox modes, and Antigravity requires an available OS sandbox for workspace-write operation.

Sessions are stored by the underlying agents rather than by the MCP process. A session ID can therefore be reused after the server restarts. Antigravity does not support forking.

## Setup and configuration

Install the extras for the backends you plan to use:

- `nexus-mcp[claude]` for Claude Code
- `nexus-mcp[codex]` for Codex
- `nexus-mcp[antigravity]` for Antigravity
- `nexus-mcp[all]` for every backend

You can run the server directly with `uvx --with 'nexus-mcp[all]' nexus-mcp`, or install an extra with `pip`.

`NEXUS_CLAUDE_SETTINGS_PROFILE` controls which Claude settings are loaded. Its supported values are `isolated`, `project`, and `inherit`, with `isolated` as the default. On Windows, Claude Code must be installed separately and available on `PATH` because recent Claude Agent SDK releases do not bundle a Windows CLI wheel.

## Tools and capabilities

The current README documents these primary capabilities:

- Run a single backend turn with `prompt`.
- Continue a conversation using `session_id`.
- Fork a session with `fork=true` when the backend supports it.
- Select a model, permission profile, working directory, and timeout.
- Inspect backend availability through the `nexus://backends` resource.
- Run parallel work by issuing multiple `prompt` calls from the client.

## Limitations and notes

Backend packages are optional and add their respective CLI or SDK dependencies. Antigravity does not provide a model list and does not support session forking. Workspace-write execution through Antigravity fails when its required OS sandbox is unavailable.

The v2 migration notes say that OpenCode runners, elicitation, preferences, model tiers, and the earlier asynchronous job tools were removed. They also replace the former `batch_prompt` behavior with parallel `prompt` calls made by the client. The project is MIT licensed.

_Full upstream README: https://allmcps.com/mcp/nexus-mcp-2/readme_

