SonarQube MCP Server
About
Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
SONARQUBE_TOKEN SONARQUBE_ORG SONARQUBE_URLClaude Code
claude mcp add --env SONARQUBE_TOKEN= --env SONARQUBE_ORG= --env SONARQUBE_URL= sonarqube-mcp-server -- docker docker.io/sonarsource/sonarqube-mcp
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"sonarqube-mcp-server","command":"docker","args":["docker.io/sonarsource/sonarqube-mcp"],"env":{"SONARQUBE_TOKEN":"","SONARQUBE_ORG":"","SONARQUBE_URL":""}}'
JSON
{
"mcpServers": {
"sonarqube-mcp-server": {
"command": "docker",
"args": [
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "",
"SONARQUBE_ORG": "",
"SONARQUBE_URL": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.