Chat with your SonarQube data: explore metrics, compare trends, and track issues—effortlessly.
Chat with your SonarQube data: explore metrics, compare trends, and track issues—effortlessly.
This project provides a set of tools for retrieving information about SonarQube projects using the FastMCP (Fast Model Context Protocol) framework. It serves as an interface to SonarQube, allowing users to programmatically access metrics, historical data, and component tree metrics for specified projects. This automated access enables reporting, analysis, and integration of SonarQube data with other systems.
pip install fastmcp) * httpx installed (pip install httpx) * pydantic installed (pip install pydantic) * python-dotenv installed (pip install python-dotenv)Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| get_status | Performs a health check on the configured SonarQube instance. |
| create_sonarqube_project | Creates a new SonarQube project. Requires administrator privileges. |
| delete_sonarqube_project | Deletes a SonarQube project. Requires administrator privileges. **USE WITH CAUTION!** |
| list_projects | Lists all accessible SonarQube projects, optionally filtered by name or key. |
| get_sonarqube_metrics | Retrieves specified metrics (bugs, vulnerabilities, code smells, coverage, duplication density) for a given SonarQube project key. |
| get_sonarqube_metrics_history | Retrieves historical metrics (bugs, vulnerabilities, code smells, coverage, duplication density) for a given SonarQube project using /api/measures/search_history. Optional date filters can be applied. |
| get_sonarqube_component_tree_metrics | Retrieves metric values for all components (e.g., files or directories) in a project using /api/measures/component_tree Automatically handles pagination to retrieve all results. |
| get_project_issues | Fetch SonarQube issues for a given project, optionally filtered by type, severity, and resolution status. Returns up to *limit* results (default: 10). |
| project_key | the SonarQube project key |
{
"mcpServers": {
"fastmcp-sonarqube-metrics": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/fastmcp-sonarqube-metrics",
"run",
"server.py"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
pip install fastmcp) * httpx installed (pip install httpx) * pydantic installed (pip install pydantic) * python-dotenv installed (pip install python-dotenv)| Variable | Description | Required |
|---|---|---|
| SONARQUBE_URL | Endpoint or connection string the server talks to. | Yes |
| SONARQUBE_TOKEN | Credential the server authenticates with. | Yes |
| GEMINI_API_KEY | Credential the server authenticates with. | Yes |
| AZURE_OPENAI_API_KEY | Credential the server authenticates with. | Yes |
Give your coding agent the full DevTools toolbox: traces, network, console, heap snapshots and Lighthouse.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Agentry is agent-native analytics and logging for coding agents. It covers product analytics, error logging, and deploy attribution through one HTTP API so agents can answer what users did, what…
A Model Context Protocol (MCP) Server for interacting with a Stardog Knowledge Graph.
MCP server for interacting with honeycomb API
Track and query EzStat metrics from Claude, Cursor, or any MCP agent. StatHat-compatible.