by sapientpants
Enables AI assistants to retrieve SonarQube code quality metrics, issues, security hotspots, and analysis results through the Model Context Protocol.
Provides AI assistants with programmatic access to SonarQube (or SonarCloud) data, including metrics, issues, quality gates, security hotspots, source code views, and system health, all via the Model Context Protocol.
SONARQUBE_URL and SONARQUBE_TOKEN; add SONARQUBE_ORGANIZATION for SonarCloud.mcpServers.sonarqube.projects, sonarqube.issues, sonarqube.quality_gate_status, etc., to retrieve or manage data.Q: Can I use this with SonarCloud?
A: Yes. Set SONARQUBE_URL to https://sonarcloud.io and provide SONARQUBE_ORGANIZATION along with a token.
Q: What permissions does the token need?
A: The token must have at least Execute Analysis and Browse permissions for the projects you query. Admin permissions are required for tools like projects that list all projects.
Q: How do I filter issues by multiple criteria?
A: Use the issues tool and combine parameters such as severities, statuses, tags, component_keys, branch, pull_request, etc.
Q: Is there a way to run the server as a web service?
A: Yes. Set MCP_TRANSPORT_TYPE=http and optionally configure MCP_HTTP_PORT, CORS, and DNS rebinding protection.
Q: Where can I see detailed error messages?
A: Enable file logging with LOG_FILE and set LOG_LEVEL=DEBUG. Logs are written to the specified file, keeping stdio clean for MCP communication.
This project is no longer maintained. Please refer to the official version at sonarqube-mcp-server.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
{
"mcpServers": {
"sonarqube": {
"command": "npx",
"args": [
"-y",
"sonarqube-mcp-server"
],
"env": {
"SONARQUBE_URL": "<YOUR_SONARQUBE_URL>",
"SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
"SONARQUBE_ORGANIZATION": "<YOUR_ORGANIZATION_IF_USING_SONARCLOUD>"
}
}
}
}claude mcp add sonarqube npx -y sonarqube-mcp-server