S

Sonarqube MCP

by lahma · io.github.lahma/sonarqube-mcp

Enables coding agents to inspect SonarQube Cloud quality gates, analysis status, issues, security hotspots, measures, and per-line coverage, and to perform gated triage and review actions. It provides structured read tools plus optional restricted write tools for transitioning, assigning, commenting on, and bulk-updating findings.

nuget Local · stdio GlamaOfficial MCP Registry High confidence

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
SONARQUBE_TOKEN secret Yes User token, sent as Bearer. Absent is legal: public projects stay readable, everything else fails with a message naming this variable.
SONARQUBE_ORG No Organization key — the last segment of sonarcloud.io/organizations/{key}. Required by listProjects and getRule only.
SONARQUBE_URL No Base URL. Only sonarcloud.io and sonarqube.us over https are accepted; anything else is ignored with a warning on stderr. Default: https://sonarcloud.io
SONARQUBE_MCP_DEFAULT_PROJECT No Default for the projectKey tool argument. The id in a project URL, not the repository name.
SONARQUBE_MCP_READ_ONLY No 1 registers only the eighteen read tools; the five write tools are absent from tools/list. Accepts 1/true/yes/on and 0/false/no/off. Default: 0
SONARQUBE_MCP_LOG_LEVEL No Minimum level for the stderr logger: Trace, Debug, Information, Warning, Error, Critical, None. Default: Information
SONARQUBE_MCP_MAX_PAGE_SIZE No Ceiling on a tool's pageSize, 1–500. 500 is the API's own hard limit. Default: 100
SONARQUBE_MCP_MAX_SOURCE_LINES No Cap on getFileCoverage's from–to span, 1–20000. Default: 2000
SONARQUBE_MCP_DEFAULT_PAGE_SIZE No The pageSize a tool uses when the call omits it. Clamped to the ceiling above. Default: 50
SONARQUBE_MCP_HTTP_TIMEOUT_SECONDS No Whole-request timeout, 5–600. Default: 100

Similar servers