McpMux
Back to Registry

SonarQube (Docker) MCP Server

Community

Contributed by SonarSource

Official SonarQube MCP server (Docker) connecting AI agents to SonarQube Cloud and SonarQube Server for code quality and security data. Analyze code snippets, retrieve issues and security hotspots, browse projects, and inspect quality gates.

About the SonarQube (Docker) MCP Server

The SonarQube (Docker) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Official SonarQube MCP server (Docker) connecting AI agents to SonarQube Cloud and SonarQube Server for code quality and security data. Analyze code snippets, retrieve issues and security hotspots, browse projects, and inspect quality gates. This is a community-contributed MCP server by SonarSource.

Install the SonarQube (Docker) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires an API key — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "docker",
  "args": [
    "run",
    "--init",
    "--pull=always",
    "-i",
    "--rm",
    "-e",
    "SONARQUBE_TOKEN",
    "-e",
    "SONARQUBE_ORG",
    "-e",
    "SONARQUBE_URL",
    "sonarsource/sonarqube-mcp"
  ],
  "env": {
    "SONARQUBE_TOKEN": "${input:SONARQUBE_TOKEN}",
    "SONARQUBE_ORG": "${input:SONARQUBE_ORG}",
    "SONARQUBE_URL": "${input:SONARQUBE_URL}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "SONARQUBE_TOKEN",
        "label": "SonarQube Token",
        "description": "Required. Your SonarQube Cloud token, or a SonarQube Server USER token for self-hosted instances. Used to authenticate all requests.",
        "type": "text",
        "required": true,
        "secret": true,
        "placeholder": "squ_********************************",
        "obtain": {
          "url": "https://docs.sonarsource.com/sonarqube-cloud/managing-your-account/managing-tokens/",
          "instructions": "SonarQube Cloud: open your account > Security and generate a token at https://sonarcloud.io/account/security/.\nSonarQube Server (self-hosted): open My Account > Security and generate a USER token.\nCopy the token and paste it here.",
          "button_label": "Create Token"
        }
      },
      {
        "id": "SONARQUBE_ORG",
        "label": "SonarQube Cloud Organization Key",
        "description": "Required for SonarQube Cloud / SonarCloud only. Your organization key (leave empty for self-hosted SonarQube Server, where you set the Server URL instead).",
        "type": "text",
        "required": false,
        "secret": false,
        "placeholder": "my-organization"
      },
      {
        "id": "SONARQUBE_URL",
        "label": "SonarQube Server URL",
        "description": "Required for self-hosted SonarQube Server (your instance URL, e.g. https://sonarqube.example.com). For SonarQube Cloud leave empty to use https://sonarcloud.io, or set https://sonarqube.us for SonarQube Cloud US.",
        "type": "url",
        "required": false,
        "secret": false,
        "placeholder": "https://sonarqube.example.com"
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
AuthAPI Key
Capabilities
Tools

Categories

Tags

sonarqubesonarcloudcode-qualitysecuritystatic-analysiscode-reviewdocker

Supported AI Clients

The SonarQube (Docker) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install SonarQube (Docker) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.