Provides tools for fetching SonarCloud issues related to pull requests, with the ability to filter by organization, project, PR number, and issue status, supporting authentication via API token.
SonarCloud MCP Server
An MCP server that provides tools for fetching SonarCloud issues related to pull requests.
Example prompt:
Fetch the list of OPEN or ACCEPTED issues from sonarcloud for this PR, which are assigned to __me__, fix them and push the changes to this PR.
Emphasis on the __me__ part, which is a special value in the sonarcloud API to reference the current user (token owner). You can stick this in your .claude/tools
folder as sonarcloud-issues.md
to have a shortcut which requests claude code to fetch and fix issues from SonarCloud.
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
Installation
Prerequisite: Generate a SonarCloud API token
Follow the instructions in the SonarCloud documentation to generate a SonarCloud API token.
Option 1: Docker (Recommended)
Option 2: Local Installation
Usage
Docker Usage
Run via docker:
Local Usage
Export the required environment variables and run the server:
Environment Variables
SONARCLOUD_TOKEN
: Your SonarCloud API token (required)jSONARCLOUD_ORGANISATION
: Your SonarCloud organization key (optional, can be passed as a parameter)SONARCLOUD_PROJECT_KEY
: Your SonarCloud project key (optional, can be passed as a parameter)
Claude Desktop / Claude Code Integration
Docker Configuration (Recommended)
Add to your claude_desktop_config.json
or claude.json
:
Local Configuration
Add to your claude_desktop_config.json
or claude.json
:
Available Tools
fetch_sonarcloud_issues
: Fetches SonarCloud issues for a specific pull request.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A server that enables fetching and filtering SonarCloud issues related to pull requests, making it easier to identify and fix code quality problems.
Related MCP Servers
- AsecurityAlicenseAqualityA TypeScript server that analyzes GitHub Pull Requests using the Model-Controller-Presenter pattern.Last updated -15TypeScriptMIT License
- -securityFlicense-qualityA server that integrates with Cursor IDE to provide code review functionality for Azure repositories, enabling AI-powered pull request analysis and feedback.Last updated -1TypeScript
- -securityFlicense-qualityA tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.Last updated -Python
- AsecurityAlicenseAqualityA server that enables retrieval of Sentry issues through two simple tools - get a specific issue by URL/ID or get a list of issues from a project.Last updated -4156JavaScriptMIT License