NestDaddy

Sonar MCP Server

io.github.igorolv/sonar-mcp-server ยท v0.1.0

Read-only SonarQube Community Build access for AI agents: issues, hotspots, rules, code snippets

Connect Runs on your machine

Terminal
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
claude_desktop_config.json
{
  "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>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "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>"
      }
    }
  }
}
.vscode/mcp.json
{
  "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

NameDescription
SONAR_URL
Required
Base URL of the SonarQube instance, e.g. https://sonar.example.com
SONAR_TOKEN
Required, secret
SonarQube user token (My Account -> Security -> Generate Tokens)
SONAR_DEFAULT_PROJECT_KEY
Optional
Project key used when a tool call does not name one

Details

Packageghcr.io/igorolv/sonar-mcp-server:0.1.0 (OCI, stdio)
First published17 Sep 2026
Last updated17 Sep 2026
Registry nameio.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.