Skip to content
Cursor

Sonar MCP Server for Cursor

io.github.igorolv/sonar-mcp-server

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

client:Cursor transport:stdio runtime:oci

Install Sonar MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "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>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Sonar MCP Server in other clients