dozzman/sonarcloud-mcp
If you are the rightful owner of sonarcloud-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
An MCP server that provides tools for fetching SonarCloud issues related to pull requests.
The SonarCloud MCP Server is designed to streamline the process of identifying and resolving code quality issues in pull requests by integrating with SonarCloud. It allows developers to fetch issues directly related to specific pull requests, enabling them to address code quality concerns efficiently. The server supports authentication via API tokens, ensuring secure access to SonarCloud data. By providing detailed information about each issue, including severity, type, and location, developers can prioritize and fix issues effectively. The server can be deployed using Docker for ease of setup or installed locally, offering flexibility in deployment options. Integration with Claude Desktop or Claude Code further enhances its utility by allowing seamless interaction with the SonarCloud MCP Server.
Features
- Fetch issues from SonarCloud for specific pull requests
- Filter by organization, project, and PR number
- Supports authentication via API token
- Returns formatted issue data with severity, type, and location information
Usages
docker with Claude Desktop
{ "mcpServers": { "sonarcloud": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "SONARCLOUD_TOKEN", "-e", "SONARCLOUD_ORGANISATION", "-e", "SONARCLOUD_PROJECT_KEY", "sonarcloud-mcp" ], "env": { "SONARCLOUD_TOKEN": "<your token here>", "SONARCLOUD_ORGANISATION": "<your organisation here>", "SONARCLOUD_PROJECT_KEY": "<your project key here>" } } } }
local with Claude Desktop
{ "mcpServers": { "sonarcloud-mcp": { "command": "node", "args": [ "/path/to/sonarcloud_mcp/dist/index.js" ], "env": { "SONARCLOUD_TOKEN": "<your token here>", "SONARCLOUD_ORGANISATION": "<your organisation here>", "SONARCLOUD_PROJECT_KEY": "<your project key here>" } } } }
Tools
fetch_sonarcloud_issues
Fetches SonarCloud issues for a specific pull request.