Skip to content
Claude Code

Sonar MCP Server for Claude Code

io.github.igorolv/sonar-mcp-server

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

client:Claude Code transport:stdio runtime:oci

Install Sonar MCP Server in Claude Code

run in your project directory

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

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

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Sonar MCP Server in other clients