Skip to content
SonarQube MCP Server logo
MCP server
Registry

SonarQube MCP Server

Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.

SonarQube MCP Server scores 28 (Limited), licensed Other and written in Java. It installs as a local process. It declares 40 tools. Filed under Developer tools. GitHub shows 697 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by sonarsourceOtherJava697 stars
Trust score
28Limited
Trust score 28 of 100, Limited

Limited trust

28 of 100 from six public signals. Nobody can buy a point.

  • License present: other.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 28 comes from

0 + 6 + 9 + 6 + 4 + 3 = 28. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity9 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 9 of 20 points.
License6 / 10

A clear, OSI-style open-source license.

License: 6 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs3 / 10

A real summary, a README with depth, listed tools.

Docs: 3 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "sonarsource-sonarqube-mcp-server": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "docker.io/sonarsource/sonarqube-mcp"      ],      "env": {        "SONARQUBE_TOKEN": "YOUR_SONARQUBE_TOKEN",        "SONARQUBE_ORG": "YOUR_SONARQUBE_ORG",        "SONARQUBE_URL": "YOUR_SONARQUBE_URL"      }    }  }}

Environment variables

NameRequiredNotes
SONARQUBE_TOKENSecretRequiredYour SonarQube USER token
SONARQUBE_ORGSecretOptionalYour SonarQube Cloud organization key (if using SonarQube Cloud)
SONARQUBE_URLSecretOptionalYour SonarQube Server URL (if using SonarQube Server)

Tools40Tool docs quality grade C

All capabilities
  • Analyze file content with SonarQube analyzers to identify code quality and security issues. Always analyzes the complete file content for accuracy. Optionally filter results to a specific code snippet.

  • Analyze files in the current working directory using SonarQube for IDE. This tool connects to a running SonarQube for IDE instance to perform code quality analysis on a list of files.

  • Review a Security Hotspot by changing its status. When marking as REVIEWED, you must specify a resolution (FIXED, SAFE, or ACKNOWLEDGED).

  • Change the status of a SonarQube issue to "accept", "falsepositive" or to "reopen" an issue.

  • Code snippet to filter issues (must match content in fileContent) - String

  • Enterprise uuid. Can be omitted only if 'favorite' parameter is supplied with value true - String

  • Optional enterprise key to filter results - String

  • Complete file content as a string. Required when workspace is not mounted - String

  • Project-relative path of the file to analyze (e.g., src/main/java/MyClass.java). Used when the workspace is mounted at /app/mcp-workspace - String

  • Defines in which scope the file originates from: 'MAIN' or 'TEST' (default: MAIN) - String

  • List of absolute file paths to analyze - Required String[]

  • Get SonarQube measures for a component (project, directory, file).

About

Interact with SonarQube Cloud, Server and Community build over the web API. Analyze code to identify quality and security issues.

Frequently asked questions

What is SonarQube MCP Server?

Analyze code quality and security with SonarQube Server or Cloud directly in AI assistants.

How do I install SonarQube MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. SonarQube MCP Server runs locally from the Docker image docker.io/sonarsource/sonarqube-mcp with the command docker run -i --rm docker.io/sonarsource/sonarqube-mcp.

Is SonarQube MCP Server free and open source?

SonarQube MCP Server is released under the Other license, which is not on MCPpedia's list of OSI-approved open-source licenses. Read the license terms before using it, especially commercially.

Does SonarQube MCP Server support remote (HTTP) connections?

No remote endpoint is listed for SonarQube MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does SonarQube MCP Server provide?

SonarQube MCP Server provides 40 tools, including analyze_code_snippet, analyze_file_list, change_security_hotspot_status, and change_sonar_issue_status. See the full tool list for descriptions and parameters.

How is SonarQube MCP Server's trust score calculated?

SonarQube MCP Server scores 28 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server