Home › Development › Sonar MCP Server

Sonar MCP Server

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

Java Local macOSWindowsLinux
★ 0 stars Last pushed 2026-09-18 License: MIT

Topics: Developer Tools

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (oci)

docker run -i --rm ghcr.io/igorolv/sonar-mcp-server:0.1.0

Or add to your MCP client config:

{
  "mcpServers": {
    "sonar-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/igorolv/sonar-mcp-server:0.1.0"
      ],
      "env": {
        "SONAR_URL": "<YOUR_VALUE>",
        "SONAR_TOKEN": "<YOUR_VALUE>",
        "SONAR_DEFAULT_PROJECT_KEY": "<YOUR_VALUE>"
      }
    }
  }
}
  • 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 — Project key used when a tool call does not name one

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry