Chat with your SonarQube data: explore metrics, compare trends, and track issues—effortlessly.
FastMCP SonarQube Metrics MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. 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.
Once FastMCP SonarQube Metrics is connected, these are the calls the assistant has available:
get_status — Performs a health check on the configured SonarQube instancecreate_sonarqube_project — Creates a new SonarQube project. Requires administrator privilegesdelete_sonarqube_project — Deletes a SonarQube project. Requires administrator privileges. USE WITH CAUTION!list_projects — Lists all accessible SonarQube projects, optionally filtered by name or keyget_sonarqube_metrics — Retrieves specified metrics (bugs, vulnerabilities, code smells, coverage, duplication density) for a given SonarQube project keyget_sonarqube_metrics_history — Retrieves historical metrics (bugs, vulnerabilities, code smells, coverage, duplication density) for a given SonarQube project usingget_sonarqube_component_tree_metrics — Retrieves metric values for all components (e.g., files or directories) in a project using /api/measures/component_tree Automatically handlesget_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 keyPrerequisites — The Prerequisites tool exposed by this serverBeing a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
You will need 4 environment variables: SONARQUBE_URL, SONARQUBE_TOKEN, GEMINI_API_KEY, AZURE_OPENAI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
pip install fastmcp) * httpx installed (pip install httpx) * pydantic installed (pip install pydantic) * python-dotenv installed (pip install python-dotenv)Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. FastMCP SonarQube Metrics's toolset — get_status, create_sonarqube_project, delete_sonarqube_project and 7 more — is a fair guide to whether it matches your workflow. It is maintained by ArchAI-Labs; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| 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 |
| Prerequisites | The Prerequisites tool exposed by this server. |
{
"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 |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.