devin-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@devin-mcp Implement a new login feature using OAuth2"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Devin MCP Server
An MCP server that enables Claude Code to delegate implementation tasks to Devin.
Installation
Option 1: Install from Local Path (Development)
If you have the devin-mcp repository cloned locally:
# Navigate to the devin-mcp directory
cd /path/to/devin-mcp
# Install with uv (creates venv automatically)
uv pip install -e .Option 2: Install from Git Repository
# Install directly from git (if repository is public)
uv pip install git+https://github.com/iainmck29/devin-mcp.git
# Or from a specific branch/tag
uv pip install git+https://github.com/iainmck29/devin-mcp.git@mainOption 3: Install as a Published Package
# If published to PyPI (future)
uv pip install devin-mcpNote: The MCP server needs to be installed in a location where uv can find it. If installing from a local path, use an absolute path or ensure the path is accessible.
Related MCP server: handoff-mcp
Configuration
Set your Devin API key and playbook ID as environment variables:
export DEVIN_API_KEY="your-api-key-here"
export DEVIN_PLAYBOOK_ID="your-playbook-id-here"Usage
Running the Server
# Via module (using uv run to automatically use project venv)
uv run python -m devin_mcp.server
# Or via CLI entry point
uv run devin-mcpClaude Code Configuration
Step 1: Get Your Devin API Key
Sign in to Devin
Navigate to your account settings or API section
Generate or copy your API key
Step 2: Locate Claude Code Settings File
The MCP settings file location depends on your OS:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Step 3: Configure the MCP Server
Open the settings file and add the devin server configuration. If the file doesn't exist or is empty, create it with this structure:
{
"mcpServers": {
"devin": {
"command": "uv",
"args": ["run", "python", "-m", "devin_mcp.server"],
"env": {
"DEVIN_API_KEY": "your-api-key-here",
"DEVIN_PLAYBOOK_ID": "your-playbook-id-here"
}
}
}
}Important Notes:
Replace
"your-api-key-here"with your actual Devin API keyReplace
"your-playbook-id-here"with your Devin playbook IDIf you installed from a local path, ensure
uvis in your PATHThe
uvcommand must be able to find the installeddevin_mcppackageIf you installed in a specific virtual environment, you may need to use the full path to
uvor activate that environment
Step 4: Restart Claude Code
After saving the configuration file:
Completely quit Claude Code (not just close the window)
Reopen Claude Code
The MCP server should automatically start and connect
Step 5: Verify It's Working
Open Claude Code in any project
Check the MCP status indicator (usually in the bottom status bar)
Try asking Claude: "What MCP tools are available?" or "List the devin tools"
You should see the four Devin tools:
devin_run_phase,devin_await_completion,devin_get_status,devin_send_message
Troubleshooting
Server won't start:
Verify
uvis installed:which uvoruv --versionCheck that
devin_mcpis installed:uv run python -c "import devin_mcp; print('OK')"Check Claude Code logs for error messages
API key errors:
Verify the API key is correct in the config file
Ensure there are no extra quotes or whitespace around the key
Test the API key manually:
export DEVIN_API_KEY="your-key" && uv run python -c "from devin_mcp.client import DevinClient; print('OK')"
Tools not appearing:
Restart Claude Code completely
Check the MCP connection status in Claude Code
Verify the config JSON is valid (no trailing commas, proper quotes)
Available Tools
devin_run_phase
Create a new Devin session with a playbook and prompt.
Parameters:
prompt(string, required): The task promptplaybook_id(string, optional): The Devin playbook ID. UsesDEVIN_PLAYBOOK_IDenv var if not provided.
Returns: { success, session_id, url } or { success: false, error }
devin_await_completion
Poll a session until it reaches a terminal state.
Parameters:
session_id(string, required): The session to monitortimeout(integer, optional): Max wait in seconds (default: 600)
Returns: Full session details or raises DevinTimeoutError
devin_get_status
Quick, non-blocking status check.
Parameters:
session_id(string, required): The session to check
Returns: { success, session_id, url, status_enum } or { success: false, error }
devin_send_message
Send a follow-up message to a session.
Parameters:
session_id(string, required): The session to messagemessage(string, required): The message content
Returns: { success, detail } or { success: false, error }
Example Workflow
# 1. Start a phase (uses DEVIN_PLAYBOOK_ID from environment)
result = devin_run_phase(
prompt="thoughts/shared/plans/2024-01-15-auth.md, phase 1, branch feature/auth"
)
# Or override with a specific playbook:
# result = devin_run_phase(prompt="...", playbook_id="pb_abc123")
session_id = result["session_id"]
# 2. Wait for completion
session = devin_await_completion(session_id, timeout=600)
# 3. Check result
if session["status_enum"] == "finished":
print("Phase completed successfully!")
elif session["status_enum"] == "blocked":
# Send clarification if needed
devin_send_message(session_id, "Use the existing User model from src/models/user.py")Development
# Install dev dependencies
uv pip install -e ".[dev]"
# Run tests (using uv run to ensure correct environment)
uv run pytest
# Type check
uv run mypy src/Available Tools
4 toolsdevin_await_completionA
Poll a Devin session until it reaches a terminal state.
Args: session_id: The session ID to monitor timeout: Maximum seconds to wait (default: 600 = 10 minutes)
Returns: Full session details if completed within timeout. Raises DevinTimeoutError if timeout exceeded.
The tool polls every 5 seconds and returns when status_enum is one of: blocked, finished, expired, stopped, suspend_requested, suspend_requested_frontend
Inputs: session_id (required), timeout. Returns: object
devin_get_statusB
Quick, non-blocking status check on a Devin session.
Args: session_id: The session ID to check
Returns: dict with keys: - success: bool indicating if status was retrieved - session_id: The session ID - url: The session URL (if success) - status_enum: Current status (if success) - error: Error message (if not success)
Inputs: session_id (required). Returns: object
devin_run_phaseB
Create a new Devin session with a playbook and prompt.
Args: prompt: The task prompt (e.g., "thoughts/shared/plans/2024-01-15-auth.md, phase 1, branch feature/auth") playbook_id: The Devin playbook ID to use. Optional if DEVIN_PLAYBOOK_ID env var is set.
Returns: dict with keys: - success: bool indicating if session was created - session_id: The created session ID (if success) - url: The session URL (if success) - error: Error message (if not success)
Inputs: prompt (required), playbook_id. Returns: object
devin_send_messageA
Send a follow-up message to a Devin session.
Use this when Devin is blocked and needs clarification to continue.
Args: session_id: The session ID to message message: The message content to send
Returns: dict with keys: - success: bool indicating if message was sent - detail: Confirmation message (if success) - error: Error message (if not success)
Inputs: message (required), session_id (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct lifecycle operation: run creates a session, get_status checks state, await_completion polls to terminal state, and send_message sends a follow-up. No two tools overlap in purpose, and even the two status-related tools are clearly differentiated (one is a quick snapshot, the other blocks until completion).
All four tools follow a consistent devin_verb_noun pattern: run_phase, get_status, await_completion, send_message. The verb style (run, get, await, send) and noun targets are uniformly clear and predictable.
Four tools is a well-scoped surface for a Devin session MCP server. Each tool covers a distinct part of the lifecycle (create, check, wait, interact) without extraneous duplication or missing essentials.
The core session lifecycle is well covered: create/run, check status, await terminal state, and send a follow-up message. The only potential minor gap is the absence of a direct cancel/stop operation, which is likely handled via suspend_requested state, but it's a reasonable gap agents can work around.
Maintenance
Related MCP Connectors
Hand off work between AI agents in any tool. Start Devin or Cursor cloud and share memory.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
One identity across Claude Code, Codex, Cursor, Gemini, Windsurf: shared inbox and handoffs.
Your AI mind directs coding agents; work reviewed against your memories: Claude Code, Codex, Cursor
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Codex to delegate tasks to Claude Code, allowing Claude to investigate, edit, and verify changes in the repository with background job management.MIT
- AlicenseAqualityCmaintenanceEnables Claude to delegate tasks to external coding agents (Codex or Antigravity) for independent reviews, separate quota usage, and async processing.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code to delegate implementation tasks to Antigravity CLI and OpenCode, run them fully autonomously, and then review and gate the results.1MIT
- AlicenseAqualityBmaintenanceEnables Claude Code to delegate software-engineering tasks to OpenCode agents working in the same workspace.727 npm1MIT