Read-only SonarQube Community Build access for AI agents: issues, hotspots, rules, code snippets
Connect Runs on your machine
claude mcp add sonar-mcp-server -e SONAR_URL=<SONAR_URL> -e SONAR_TOKEN=<SONAR_TOKEN> -e SONAR_DEFAULT_PROJECT_KEY=<SONAR_DEFAULT_PROJECT_KEY> -- docker run -i --rm ghcr.io/igorolv/sonar-mcp-server:0.1.0
{
"mcpServers": {
"sonar-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/igorolv/sonar-mcp-server:0.1.0"
],
"env": {
"SONAR_URL": "<SONAR_URL>",
"SONAR_TOKEN": "<SONAR_TOKEN>",
"SONAR_DEFAULT_PROJECT_KEY": "<SONAR_DEFAULT_PROJECT_KEY>"
}
}
}
}
{
"mcpServers": {
"sonar-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/igorolv/sonar-mcp-server:0.1.0"
],
"env": {
"SONAR_URL": "<SONAR_URL>",
"SONAR_TOKEN": "<SONAR_TOKEN>",
"SONAR_DEFAULT_PROJECT_KEY": "<SONAR_DEFAULT_PROJECT_KEY>"
}
}
}
}
{
"servers": {
"sonar-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/igorolv/sonar-mcp-server:0.1.0"
],
"env": {
"SONAR_URL": "<SONAR_URL>",
"SONAR_TOKEN": "<SONAR_TOKEN>",
"SONAR_DEFAULT_PROJECT_KEY": "<SONAR_DEFAULT_PROJECT_KEY>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
SONAR_URLRequired | Base URL of the SonarQube instance, e.g. https://sonar.example.com |
SONAR_TOKENRequired, secret | SonarQube user token (My Account -> Security -> Generate Tokens) |
SONAR_DEFAULT_PROJECT_KEYOptional | Project key used when a tool call does not name one |
Details
| Package | ghcr.io/igorolv/sonar-mcp-server:0.1.0 (OCI, stdio) |
| First published | 17 Sep 2026 |
| Last updated | 17 Sep 2026 |
| Registry name | io.github.igorolv/sonar-mcp-server |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
