Task Graph MCP logo

Task Graph MCP

Structures single- and multi-agent work with task phases, dependencies, quality gates, coordination, and SQLite-backed tracking.

Install Task Graph MCP

Run the project’s own setup commands, in order.

Setup steps from the project

task-graph-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo install task-graph-mcp
    
  2. 2. Install
    git clone https://github.com/Oortonaut/task-graph-mcp.git
    
  3. 3. Run
    cd task-graph-mcp
    
  4. 4. Install
    cargo build --release
    

Overview

The task-graph-mcp MCP server gives agents structured task workflows with phases, transition prompts, quality gates, dependencies, and coordination primitives. It stores task data in SQLite with WAL mode and exposes operations for connecting workers, finding and claiming tasks, updating progress, recording live thoughts, and attaching results. Reach for it when agent work needs enforceable steps, parallel coordination, task accounting, or configurable workflow topologies.

Use cases

  • Coordinate parallel agents working on related tasks
  • Enforce review, test, and commit requirements before transitions
  • Track task cost, token usage, and elapsed work time
  • Route claimable work with tags and dependency rules
  • Search tasks and store agent outputs as attachments

Key features

  • Configurable phases, states, prompts, and gates
  • Nested tasks with typed DAG dependencies
  • Atomic claiming and advisory file coordination
  • SQLite storage with WAL mode
  • Token, cost, and time tracking
  • Full-text search and configurable attachments

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/20 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Task Graph MCP works

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:

config.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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Task Graph MCP

task-graph-mcp is an MCP server that connects AI agents to SQLite-backed task workflows and provides tools for joining workflows, listing and claiming tasks, updating phases and states, publishing current thoughts, and attaching results. It supports configurable gates, dependencies, prompts, and coordination for solo or multi-agent execution.

Install it with `cargo install task-graph-mcp`, download a platform binary from GitHub Releases, or build it from source with Cargo. Add `task-graph-mcp` as the `command` in your MCP client's server configuration.

Configure it with a YAML file passed using `--config`, or select the database directly with `--database`. Configuration can define database and media paths, states, dependencies, workflows, prompts, gates, roles, tags, auto-advance behavior, and attachment handling.

Yes. The README explicitly shows Claude Code as an MCP client example. Configure Claude Code to launch the `task-graph-mcp` executable over stdio, optionally passing configuration or database arguments.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTask Graph MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/task-graph-mcp?style=directory)](https://allmcps.com/mcp/task-graph-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/task-graph-mcp"><img src="https://allmcps.com/api/badge/task-graph-mcp?style=directory" alt="Task Graph MCP on AllMCPs" /></a>