# task-graph-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Oortonaut/task-graph-mcp  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/task-graph-mcp

## Description
MCP server for agent task workflows with phases, prompts, gates, and multi-agent coordination

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Oortonaut/task-graph-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
cargo install task-graph-mcp
```

2. Install:

```sh
git clone https://github.com/Oortonaut/task-graph-mcp.git
```

3. Run:

```sh
cd task-graph-mcp
```

4. Install:

```sh
cargo build --release
```

## Documentation

## What task-graph-mcp does

task-graph-mcp MCP server organizes agent work into task graphs rather than leaving execution order entirely to the model. Tasks can have parent-child relationships, typed dependencies, phases such as explore, implement, review, test, and deploy, and configurable state transitions. The server supports both individual workflows and multi-agent arrangements, including solo work, parallel swarms, specialist relays, and hierarchical delegation.

Workflow behavior can include prompts when a task changes status or phase, plus gates that must be satisfied before a transition. Gates can represent requirements such as passing tests, committing code, or completing a review. States and dependency rules are configurable, so teams can define their own lifecycle and determine whether a dependency blocks starting or completing work.

## How it works

Agents connect through MCP and can receive an automatically generated worker ID when one is not supplied. A typical flow is to connect with a workflow and optional tags, list ready tasks, claim a task atomically, update its phase, publish a current thought, and complete the task with attachments such as a commit identifier. Tag-based routing and claim limits help direct work to suitable agents and reduce duplicate ownership.

The task graph supports dependency cycle detection and several relationship types, including blocking, sequencing, containment, duplication, reference, and general association. Advisory file locks and change polling provide coordination around shared files. Feedback between agents is available when enabled by configuration. Runtime overlays can add or remove workflow customizations through overlay tools.

The task-graph-mcp MCP server also records token use and estimated USD cost per task, accumulates time from state transitions, and provides full-text search across tasks and attachments. Live status lets other agents see an agent's current thought. Attachments can hold inline content, file references, or media, with configurable storage and attachment-key behavior.

## Setup and configuration

Install the binary from crates.io with `cargo install task-graph-mcp`, download a platform-specific release, or build it from source with Cargo. Add the executable as a stdio MCP server using a client configuration such as:

```json
{
  "mcpServers": {
    "task-graph": {
      "command": "task-graph-mcp"
    }
  }
}
```

The command accepts `--config` for a configuration file and `--database` to select a database path directly; `--database` takes precedence over the configured path. `--verbose` enables verbose logging. A YAML configuration can set the SQLite database path, media and skills directories, stale-worker timeout, default output format, auto-advance behavior, states, dependency definitions, and attachment definitions. The documented default database layout is `.task-graph/tasks.db`, with media stored under `.task-graph/media`.

## Tools and capabilities

The documented workflow examples use these MCP operations:

- `connect` to join a workflow and obtain or provide a worker identity.
- `list_tasks` to find ready or claimable work.
- `claim` to take ownership atomically.
- `update` to change task state, phase, and completion data.
- `thinking` to publish a current thought for other agents.

Additional supported capabilities include nested tasks, DAG dependencies, transition prompts, quality gates, atomic claiming, advisory file coordination, cost and time tracking, full-text search, attachments, conditional inter-agent feedback, and runtime workflow overlays. The server is intended for agents that need compact queries and structured outputs within limited context windows.

## Limitations and notes

The server uses a local SQLite database with WAL mode, so no separate database service is required. Coordination behavior depends on the configured workflow, states, gates, tags, and dependency definitions. Auto-advance is disabled in the example configuration and requires a suitable target state when enabled. The `disconnect_state` must be an untimed state, while only states marked as timed contribute to accumulated task time. Full configuration details are in the repository's configuration and schema documentation.

_Full upstream README: https://allmcps.com/mcp/task-graph-mcp/readme_

