Koskamo

SonarQube MCP Server

The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables seamless integration with SonarQube Server or Cloud for code quality and security. It also supports the analysis of code snippet directly within the agent context.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

SonarQube MCP Server logo, by SonarSourceCommunity listingLocal stdioSource reviewed; not executedPublished by SonarSource
You need:Your SonarQube token is a sensitive credentialProvide the required SonarQube User tokenUse environment variables – set tokens in environment variables before running commands
Vendor documentation

What you can do with it

  • Analyze code quality and security with SonarQube Server or Cloud
  • Analyze code snippets directly within the agent context
  • Integrate SonarQube with AI agents via MCP

Source and maintenance

Community listingRegistry 1.30.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

docker.io/sonarsource/sonarqube-mcp

oci
docker.io/sonarsource/sonarqube-mcp package definition
{
  "transport": "stdio",
  "identifier": "docker.io/sonarsource/sonarqube-mcp",
  "registryType": "oci",
  "environmentVariables": [
    {
      "name": "SONARQUBE_TOKEN",
      "format": "string",
      "isRequired": true,
      "description": "Your SonarQube USER token"
    },
    {
      "name": "SONARQUBE_ORG",
      "format": "string",
      "description": "Your SonarQube Cloud organization key (if using SonarQube Cloud)"
    },
    {
      "name": "SONARQUBE_URL",
      "format": "string",
      "description": "Your SonarQube Server URL (if using SonarQube Server)"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "sonarqube-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
        "-e",
        "SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
        "-e",
        "SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
        "docker.io/sonarsource/sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
        "SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
        "SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "sonarqube-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
        "-e",
        "SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
        "-e",
        "SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
        "docker.io/sonarsource/sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
        "SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
        "SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "sonarqube-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
        "-e",
        "SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
        "-e",
        "SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
        "docker.io/sonarsource/sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
        "SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
        "SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "sonarqube-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SONARQUBE_TOKEN=<YOUR_SONARQUBE_TOKEN>",
        "-e",
        "SONARQUBE_ORG=<YOUR_SONARQUBE_ORG>",
        "-e",
        "SONARQUBE_URL=<YOUR_SONARQUBE_URL>",
        "docker.io/sonarsource/sonarqube-mcp"
      ],
      "env": {
        "SONARQUBE_TOKEN": "<YOUR_SONARQUBE_TOKEN>",
        "SONARQUBE_ORG": "<YOUR_SONARQUBE_ORG>",
        "SONARQUBE_URL": "<YOUR_SONARQUBE_URL>"
      }
    }
  }
}

Let your agent find its tools

Find servers like SonarQube MCP Server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.