sonarqube-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SONARQUBE_URL | Yes | SonarQube URL (no trailing slash) | |
| SONARQUBE_TOKEN | Yes | Bearer token. Generate in: My Account → Security → Tokens | |
| SONARQUBE_SSL_VERIFY | No | true/false. Default: true. | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sonarqube_list_projectsA | List SonarQube projects (components with qualifier Use this first to discover which project keys exist before calling
Pagination: if Examples:
- Use when: "What SonarQube projects contain 'backend' in the name?"
→ Returns:
dict with keys |
| sonarqube_project_metricsA | Fetch measures for a single project. Wraps To find valid metric keys, call with the default set first — SonarQube ignores unknown metric keys and returns what it knows. Examples:
- Use when: "What's the code coverage of |
| sonarqube_quality_gate_statusA | Fetch the Quality Gate status for a project. Wraps
Examples:
- Use when: "Is |
| sonarqube_get_issuesA | Search issues for a SonarQube project. Wraps Pagination: if Examples:
- Use when: "Triage top BLOCKER / CRITICAL bugs in |
| sonarqube_worst_metricsA | Rank projects by the worst value of a single metric. Algorithm:
For fine-grained metrics ( Examples:
- Use when: "Top 10 worst-coverage services across the org"
→ |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct SonarQube operation: listing projects, searching issues, fetching single-project metrics, checking quality gate status, and ranking projects by a metric. No overlap in purpose.
All tools have a 'sonarqube_' prefix, but the suffix pattern is inconsistent: 'get_issues' and 'list_projects' follow verb_noun, while 'project_metrics', 'quality_gate_status', and 'worst_metrics' use noun-based names. This mixed convention may cause confusion.
With 5 tools, the server is well-scoped for SonarQube interaction. Each tool earns its place without redundancy or clutter.
The set covers essential read operations (projects, issues, metrics, quality gate, ranking). Minor gaps exist, such as no tool for listing all metric keys or performing write operations, but these are reasonable omissions for a focused MCP server.