# Harness MCP server

> Start Claude Code and Codex agents you can watch, wait for them and read their answers.

- Listing: https://mcp.tc/i/harness
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [Developer Tools](https://mcp.tc/c/developer-tools)
- Vendor: Autonomous
- Homepage: <https://harness.autonomous.ai/agents>
- Repository: <https://github.com/autonomous-ai/openharness>
- Package: npm `@autonomous-ai/harness-mcp`

## About

Harness lets one coding agent start other agents, such as Claude Code and Codex, in their own tmux sessions. It can wait for them to finish and read their answers while the person watches each one in the Harness app or terminal.

It runs locally over stdio from the npm package @autonomous-ai/harness-mcp (also available as an MCPB bundle). The Harness CLI must be installed, and the person must sign in with harness login. Each harness started uses the person's own agent tokens.

## What it can do

- Start Claude Code and Codex agents in parallel sessions
- Wait for started agents to finish
- Read the answers from other agents
- Let the person watch every agent session
- Work with agents across linked machines

## Example prompts

- "Start a Codex agent to write tests for this module and tell me what it finds."
- "Run a Claude Code agent on a separate branch to refactor the parser, then read its answer."
- "Start two agents in parallel to review these files and wait for both results."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio harness -- npx -y @autonomous-ai/harness-mcp
```

2. Start Claude Code and type `/mcp`. **harness** should show as connected.

Add `--scope user` to make it available in every project.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
```

2. Save the file and restart Claude Desktop.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=harness&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBhdXRvbm9tb3VzLWFpL2hhcm5lc3MtbWNwIl19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=harness&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40autonomous-ai%2Fharness-mcp%22%5D%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"harness","type":"stdio","command":"npx","args":["-y","@autonomous-ai/harness-mcp"]}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "harness": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
```

2. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add harness -- npx -y @autonomous-ai/harness-mcp
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.harness]
command = "npx"
args = ["-y", "@autonomous-ai/harness-mcp"]
```

Needs Node.js on your computer.

### Gemini CLI

```bash
gemini mcp add harness npx -- -y @autonomous-ai/harness-mcp
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "harness": {
      "command": "npx",
      "args": [
        "-y",
        "@autonomous-ai/harness-mcp"
      ]
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer.

## Recent changes

- 2026-10-19 07:24 UTC: Tracking started: version 0.2.0. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/harness#history (Atom feed: https://mcp.tc/i/harness/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.2.0
- Last checked: 2026-10-19
- Listed: 2026-10-19
- Updated: 2026-10-19

---
Source: https://mcp.tc/i/harness (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
