MCP Integration
The Model Context Protocol (MCP) lets AI coding tools access your Corbulo data — health scores, analysis issues, architecture reviews, PR analyses — so they have full context about your codebase quality when helping you write code.Supported Tools
Any MCP-compatible tool can connect to the Corbulo MCP server.
Setup
1. Create an API Key
Go to Settings > API Keys in your Corbulo project and create a new key. Give it a descriptive name like “MCP Server”. Copy the key immediately — it will not be shown again. See API Keys for details on key management.2. Configure Your Tool
The Corbulo MCP server communicates over stdio and requires two environment variables:CORBULO_API_KEY— Your API key from step 1CORBULO_BASE_URL— Your Corbulo instance URL (defaults tohttps://api.corbulo.dev)
- Claude Code
- Cursor
- Windsurf
- Claude Desktop
Add to your MCP configuration (
.mcp.json in your project root or ~/.claude/mcp.json globally):The
corbulo-mcp binary is available from your Corbulo dashboard under Settings > Downloads, or as part of the self-hosted deployment package.Available Tools
The Corbulo MCP server exposes 17 tools organized by domain.Project
Code Health
Analysis
Architecture
Pull Requests
Example Usage
With the MCP server connected, your AI coding assistant can answer questions about your codebase using real data from Corbulo. You: “What is the current state of our code health? Are there any critical issues I should focus on?” Your AI assistant will callget_health_dashboard to retrieve the overall score and category breakdown, then list_analysis_issues filtered by critical severity to find the most important issues. The response includes specific file locations, issue descriptions, and which health categories are most affected.
You: “I am about to refactor the authentication module. What conventions does the codebase follow for error handling?”
Your AI assistant will call list_conventions to find error handling patterns detected in the codebase, and get_architecture_review for structural context about the module. This ensures the refactor follows established project patterns.
You: “Show me the drift alerts from the last week. What is causing our health score to drop?”
Your AI assistant will call list_drift_alerts to retrieve recent regressions, showing exactly which PRs introduced which issues and how they affected category scores.
Security
MCP access through the Corbulo server is read-only. API keys used for MCP cannot:- Modify project settings
- Trigger analyses or assessments
- Access raw source code
- Delete or dismiss issues
- Manage team members or permissions