SonarQube MCP Server

io.github.SonarSource/sonarqube-mcp-server

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "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
  • SONARQUBE_TOKENrequiredsecretYour SonarQube USER token
  • SONARQUBE_ORGsecretYour SonarQube Cloud organization key (if using SonarQube Cloud)
  • SONARQUBE_URLsecretYour SonarQube Server URL (if using SonarQube Server)

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
1.31.0
Registry
active
Published
11/2/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that SonarQube MCP Server is listed here — it’s also the link we check for a free listing.

SonarQube MCP Server — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-sonarsource-sonarqube-mcp-server?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="SonarQube MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![SonarQube MCP Server — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-sonarsource-sonarqube-mcp-server?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.