SonarQube MCP Server
The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server or Cloud for code quality and security. It also supports the analysis of code snippet directly within the agent context.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Analyze code quality and security with SonarQube Server or Cloud
- Analyze code snippets directly within the agent context
- Integrate SonarQube with AI agents via MCP
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
docker.io/sonarsource/sonarqube-mcp
{
"transport": "stdio",
"identifier": "docker.io/sonarsource/sonarqube-mcp",
"registryType": "oci",
"environmentVariables": [
{
"name": "SONARQUBE_TOKEN",
"format": "string",
"isRequired": true,
"description": "Your SonarQube USER token"
},
{
"name": "SONARQUBE_ORG",
"format": "string",
"description": "Your SonarQube Cloud organization key (if using SonarQube Cloud)"
},
{
"name": "SONARQUBE_URL",
"format": "string",
"description": "Your SonarQube Server URL (if using SonarQube Server)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"sonarqube-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
"-e",
"SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
"-e",
"SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
"SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
"SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
}
}
}
}Cline
{
"mcpServers": {
"sonarqube-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
"-e",
"SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
"-e",
"SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
"SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
"SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
}
}
}
}VS Code
{
"servers": {
"sonarqube-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
"-e",
"SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
"-e",
"SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
"SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
"SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"sonarqube-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
"-e",
"SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
"-e",
"SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
"docker.io/sonarsource/sonarqube-mcp"
],
"env": {
"SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
"SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
"SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
}
}
}
}Let your agent find its tools
Find servers like SonarQube MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.