Skip to main content
The Beads MCP (Model Context Protocol) server enables AI agents to manage issues through native tool calls. This is ideal for MCP-only environments like Claude Desktop.
For environments with shell access (Claude Code, Cursor, Windsurf), the CLI + hooks approach is recommended over MCP. It uses ~1-2k tokens vs 10-50k for MCP schemas, resulting in lower compute cost and latency.

When to Use MCP

Use MCP

  • Claude Desktop (no shell access)
  • VS Code with GitHub Copilot
  • MCP-only environments
  • Natural language interfaces

Use CLI + Hooks

  • Claude Code
  • Cursor
  • Windsurf
  • Any environment with shell access

Installation

1

Install beads-mcp

Install from PyPI using uv (recommended):
Alternative installation methods:
2

Configure your AI client

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
3

Initialize Beads in your project

4

Restart your AI client

Restart Claude Desktop or reload VS Code window for configuration to take effect.

Available Tools

All tools support an optional workspace_root parameter for multi-project setups.

Resources

Multi-Repository Setup

Use one MCP server instance for all projects:
How it works:
  1. MCP server detects the beads project in your current workspace
  2. Routes requests to the per-project Dolt server
  3. Auto-starts local Dolt server if not running
  4. Each project gets isolated database access
Architecture:

Multi-Project Support

Every tool accepts an optional workspace_root parameter:

Connection Pool

The MCP server maintains a connection pool keyed by canonical workspace path:
  • Each workspace gets its own Dolt server connection
  • Paths are canonicalized (symlinks resolved, git toplevel detected)
  • Concurrent requests use asyncio.Lock to prevent race conditions
  • No LRU eviction (keeps all connections open for session)

Environment Variables

All optional:

Usage Examples

Natural Language Queries

Creating Issues

Updating Issues

Tracking Dependencies

Completing Work

Troubleshooting

Check installation:
Verify PATH:
Restart client:
  • Claude Desktop: Quit and relaunch
  • VS Code: Reload window (Cmd/Ctrl + Shift + P → “Reload Window”)
Initialize beads in your project:
Check current context:
Set explicit context:
If you see connection issues, restart the Dolt server:
The MCP server will automatically reconnect.
Ensure bd and beads-mcp are up to date:

Token Overhead Comparison

MCP adds significant token overhead compared to CLI + hooks.
Why the difference?
  • MCP requires full tool schemas in context
  • Each tool adds 1-5k tokens for schema definition
  • CLI just injects workflow instructions (~1-2k total)
When context doesn’t matter:
  • Very short conversations
  • MCP-only environments (no alternative)
When to prefer CLI:
  • Long conversations or coding sessions
  • Any environment with shell access
  • Multi-editor workflows

Development

Run MCP Inspector

Type Checking

Linting and Formatting

Testing

See Also

Claude Code

Recommended CLI + hooks integration

GitHub Copilot

Use MCP with VS Code Copilot

Aider Integration

Human-in-the-loop AI pair programming

Quick Start

Learn Beads basics