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
- Claude Desktop
- VS Code (Copilot)
- Development
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 optionalworkspace_root parameter for multi-project setups.
Resources
Multi-Repository Setup
Single MCP Server (Recommended)
Use one MCP server instance for all projects:- MCP server detects the beads project in your current workspace
- Routes requests to the per-project Dolt server
- Auto-starts local Dolt server if not running
- Each project gets isolated database access
Multi-Project Support
Every tool accepts an optionalworkspace_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.Lockto 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
MCP tools not loading
MCP tools not loading
Check installation:Verify PATH:Restart client:
- Claude Desktop: Quit and relaunch
- VS Code: Reload window (Cmd/Ctrl + Shift + P → “Reload Window”)
No beads database found
No beads database found
Initialize beads in your project:
Wrong database detected
Wrong database detected
Check current context:Set explicit context:
Stale connections
Stale connections
If you see connection issues, restart the Dolt server:The MCP server will automatically reconnect.
Version mismatches
Version mismatches
Ensure bd and beads-mcp are up to date:
Token Overhead Comparison
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)
- Very short conversations
- MCP-only environments (no alternative)
- 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