MCP server
Sonarqube MCP
SonarQube MCP — projects, metrics, quality gate, issues, worst-metric ranking.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- 5 days ago
About Sonarqube MCP
Sonarqube MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add sonarqube-mcp --env SONARQUBE_URL='<SONARQUBE_URL>' --env SONARQUBE_TOKEN='<SONARQUBE_TOKEN>' -- uvx sonarqube-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"sonarqube-mcp": {
"command": "uvx",
"args": [
"sonarqube-mcp"
],
"env": {
"SONARQUBE_URL": "<SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<SONARQUBE_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sonarqube-mcp": {
"command": "uvx",
"args": [
"sonarqube-mcp"
],
"env": {
"SONARQUBE_URL": "<SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<SONARQUBE_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"sonarqube-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"sonarqube-mcp"
],
"env": {
"SONARQUBE_URL": "<SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<SONARQUBE_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sonarqube-mcp": {
"command": "uvx",
"args": [
"sonarqube-mcp"
],
"env": {
"SONARQUBE_URL": "<SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<SONARQUBE_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sonarqube-mcp": {
"command": "uvx",
"args": [
"sonarqube-mcp"
],
"env": {
"SONARQUBE_URL": "<SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<SONARQUBE_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
SONARQUBE_URLSonarQube URL (e.g. https://sonar.example.com or https://sonarcloud.io)RequiredSONARQUBE_TOKENSonarQube authentication token (Bearer). Generate in: My Account → Security → Tokens.RequiredSONARQUBE_SSL_VERIFYVerify SSL certificates (true/false). Set to 'false' for self-signed certs.
Pricing
Open source
Sonarqube MCP FAQ
Is Sonarqube MCP free?
Yes. Sonarqube MCP is open source, so you can use and self-host it for free.
How do I add Sonarqube MCP to Claude Code?
Run this command in your terminal: claude mcp add sonarqube-mcp --env SONARQUBE_URL='<SONARQUBE_URL>' --env SONARQUBE_TOKEN='<SONARQUBE_TOKEN>' -- uvx sonarqube-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.