OfficialLocalFree server, account needed

SonarQube MCP server

SonarSource/sonarqube-mcp-server

Provides seamless integration with SonarQube Server or Cloud, and enables analysis of code snippets directly within the agent context

677 GitHub stars102 forks

Install SonarQube in Claude Code

Claude Code
claude mcp add sonarqube -e SONARQUBE_TOKEN=... -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "sonarqube": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN",
        "docker.io/sonarsource/sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_TOKEN": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the SonarQube MCP server do?

Provides seamless integration with SonarQube Server or Cloud, and enables analysis of code snippets directly within the agent context

Is the SonarQube MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does SonarQube run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add SonarQube to Claude Code?

Run: claude mcp add sonarqube -e SONARQUBE_TOKEN=... -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp

More ai agents & coding agents MCP servers

View all