Exposes SonarQube project metrics, history, component data, health checks, projects, and issues through MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Fastmcp Sonarqube Metrics.
ArchAI-Labs/fastmcp-sonarqube-metrics MCP server connects an MCP client to a configured SonarQube instance. Its tools expose project quality data without requiring the client to construct SonarQube HTTP requests directly. The available data includes current measures such as bugs, vulnerabilities, code smells, coverage, and duplication density, along with historical values for those measures.
The server can also report the health of the SonarQube instance, list accessible projects, retrieve issues, and return metrics for components within a project. Issue queries support optional filters for issue type, severity, and resolution status, with a configurable result limit. Project creation and deletion are available as administrative operations; deletion should be treated as a destructive action.
The implementation is written in Python and uses FastMCP to define the MCP server and its tools. HTTP communication with SonarQube is handled through the project’s API client code, with libraries including httpx and pydantic. The component-tree operation handles pagination so it can collect all returned component results rather than stopping at the first response page.
A local MCP client can connect to the server over the configured transport and invoke tools by name. The repository includes test, graphical, and LangChain-based clients, but the test client is intended for experimentation rather than as the primary user interface. Claude Desktop or a custom MCP client can connect to the server instead.
ArchAI-Labs/fastmcp-sonarqube-metrics MCP server requires Python 3.7 or newer, a reachable SonarQube instance with API access, and a SonarQube API token with suitable permissions. Install the documented Python dependencies, including FastMCP, httpx, pydantic, and python-dotenv. Create a .env file in the project directory or otherwise provide the configuration through the environment.
Set SONARQUBE_URL to the SonarQube base URL and SONARQUBE_TOKEN to the API token. The README also documents TRANSPORT with stdio or sse values. Run the server with python server.py. The repository describes additional LLM-related variables for its example clients, including Gemini and Azure OpenAI settings; those are client configuration rather than the SonarQube connection itself.
The server provides these named tools:
get_status checks the configured SonarQube instance.create_sonarqube_project creates a project and requires administrator privileges.delete_sonarqube_project removes a project and requires administrator privileges.list_projects lists accessible projects, with optional name or key filtering.get_sonarqube_metrics retrieves selected current measures for a project key.get_sonarqube_metrics_history returns historical measures and supports optional date filters.get_sonarqube_component_tree_metrics returns measures for project components such as files or directories.get_project_issues retrieves project issues with optional filters and a result limit.The repository is marked as a work in progress, so some behavior may not be complete. Access to projects and issue data depends on the permissions of the configured SonarQube token. Administrative permissions are explicitly required for project creation and deletion. The included clients are mainly examples or testing tools, and the README recommends using Claude Desktop or building a custom client for regular MCP interaction. A hosted deployment is listed through Fronteir AI, but its operational details are not specified in the provided material.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/archai-labs-fastmcp-sonarqube-metrics)<a href="https://allmcps.com/mcp/archai-labs-fastmcp-sonarqube-metrics"><img src="https://allmcps.com/api/badge/archai-labs-fastmcp-sonarqube-metrics?style=directory" alt="Fastmcp Sonarqube Metrics on AllMCPs" /></a>