SonarQube MCP Server
local MCP serverSonarQube MCP Server is a local MCP server: Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants. Install it from oci as docker.io/sonarsource/sonarqube-mcp.
Installation
Terminal
claude mcp add sonarqube-mcp-server -e SONARQUBE_TOKEN=... -e SONARQUBE_ORG=... -e SONARQUBE_URL=... -- docker run -i --rm docker.io/sonarsource/sonarqube-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"sonarqube-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "...",
"SONARQUBE_ORG": "...",
"SONARQUBE_URL": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Docker.
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
SONARQUBE_TOKEN,SONARQUBE_ORG,SONARQUBE_URL
Summary
Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.
SonarQube MCP Server vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| SonarQube MCP Server | 655 | Local | Yes | oci |
| mcp-ssh-manager | 493 | Local | Yes | npm |
| codacy | 31 | Local | No | pypi |
| ha-mcp | 4,868 | Local | No | pypi |
| DBHub | 3,574 | Local | Yes | npm |
Questions
It reads 3 environment variables: SONARQUBE_TOKEN, SONARQUBE_ORG, SONARQUBE_URL. Set them in your MCP config before starting the server.
Docker, plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
SonarQube MCP Server is a local MCP server distributed as the oci package docker.io/sonarsource/sonarqube-mcp.
Run: claude mcp add sonarqube-mcp-server -e SONARQUBE_TOKEN=... -e SONARQUBE_ORG=... -e SONARQUBE_URL=... -- docker run -i --rm docker.io/sonarsource/sonarqube-mcp
Run: codex mcp add sonarqube-mcp-server --env SONARQUBE_TOKEN=... --env SONARQUBE_ORG=... --env SONARQUBE_URL=... -- docker run -i --rm docker.io/sonarsource/sonarqube-mcp
Similar MCP servers
NameStars
- mcp-ssh-managerio.github.bvisible/mcp-ssh-manager493
- codacycom.mcparmory/codacy31
- ha-mcpio.github.homeassistant-ai/ha-mcp4,868
- DBHubio.github.bytebase/dbhub3,574
- Figma MCP Servercom.figma.mcp/mcp2,027
- jshookmcpio.github.vmoranv/jshookmcp2,021
- testkube-mcpio.github.kubeshop/testkube-mcp1,661
- ChiR24-unreal_mcp_serverai.smithery/ChiR24-unreal_mcp_server891