# Harflow MCP

> Harflow MCP is an MCP server for developer tools. Local MCP server that hands coding tasks to headless agent CLIs and tracks them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Linux
- **Repository:** https://github.com/harflow-dev/harflowmcp
- **MCP Registry name:** io.github.Harflow-Dev/harflow-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

Harflow MCP sits between your MCP client and the coding-agent command-line tools already installed on your machine. The README lists Claude Code, Codex, opencode, Vibe, Antigravity and the Cursor Agent CLI as dispatch targets. Each task gets a persistent history, so you can come back later, read bounded slices of the output, cancel it or continue it.

Permissions are a large part of the design. Callers can opt in to approving individual Bash, Read, Write and Edit requests one exact action at a time on measured Claude Code versions, and the README describes a similar path for Codex on macOS through its app-server. A task can also be granted a bounded list of specific Bash commands through `allowed_commands` instead of unrestricted access. Approval requests left unanswered for 1800 seconds are rejected, never approved.

Beyond single tasks it supports reusable workflows, with orchestrators, builders and workers that can be steered in conversation and answered by decision ID. A companion `harflow-ctl` command gives direct human callers status, cancellation, pending-launch lookup and model listing. It installs from PyPI and runs over stdio.

## Features

- **Multi-harness dispatch:** Sends coding tasks to Claude Code, Codex, opencode, Vibe, Antigravity or the Cursor Agent CLI.
- **Persistent task history:** Tasks keep their history so they can be read in bounded slices, cancelled or continued later.
- **Exact-action approvals:** Callers can approve individual Bash, Read, Write and Edit requests one action at a time on qualified versions.
- **Command grants:** `allowed_commands` gives a task a limited list of Bash commands instead of unrestricted access.
- **Reusable workflows:** Workflow graphs with orchestrators, builders and workers can be stored, previewed and re-run.
- **harflow-ctl command line:** Direct callers can check status, cancel tasks, list pending launches and list selectable models.

## Good for

- Hand a long coding task to a headless agent and poll for progress from your MCP client
- Run the same task through several agent CLIs to compare results
- Approve risky shell or file actions one at a time while an agent works
- Build and re-run multi-step coding workflows with several workers
- Resume or cancel a task after restarting your client

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add harflow-mcp -- uvx harflow-mcp
```

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

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add harflow-mcp -- uvx harflow-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.harflow-mcp]
command = "uvx"
args = ["harflow-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user harflow-mcp uvx -- harflow-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

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

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "harflow-mcp": {
      "command": "uvx",
      "args": [
        "harflow-mcp"
      ]
    }
  }
}
```

## FAQ

### Which agent CLIs can Harflow MCP dispatch to?

The README names Claude Code, Codex, opencode, Vibe, Antigravity and the Cursor Agent CLI.

### What does headless Cursor dispatch need?

Signing into the Cursor editor is not enough. The `agent` CLI needs `agent login` or a `CURSOR_API_KEY`, and `agent status` should report an access token.

### Can I limit what a dispatched task may run?

Yes. `allowed_commands` grants a bounded list of Bash commands on qualified harnesses, and caller approvals handle individual actions. Cursor refuses both.

### What happens to an approval nobody answers?

Harflow rejects it after 1800 seconds or at the node's attempt deadline; it is never approved automatically.

### How do I add Harflow MCP to Claude Code?

Run this command in your terminal: claude mcp add harflow-mcp -- uvx harflow-mcp

### What are the best alternatives to Harflow MCP?

The closest alternatives to Harflow MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/harflow-mcp
