Skip to main content

Sonar MCP Server

io.github.igorolv/sonar-mcp-server

v0.1.0Updated Sep 17, 2026stdio · Docker

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

Install

Needs 1 secret. Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add sonar-mcp-server -e 'SONAR_URL=<your-sonar-url>' -e 'SONAR_TOKEN=<your-sonar-token>' -- docker run -i --rm -e SONAR_URL -e SONAR_TOKEN ghcr.io/igorolv/sonar-mcp-server:0.1.0

Configuration

3 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.

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

Listed in the official MCP Registry since Sep 17, 2026. Mirrored daily; last checked Nov 26, 2026.