Skip to content
Book demo

SonarQube

Remote MCP·Local·STDIO

Official SonarQube MCP for code quality, code security, quality gates, issues, and SonarQube Cloud or Server context.

Good for:Code qualityQuality gatesSecurity issues

Installation path

Open AugmentGo to ConfigurationSelect MCP RegistryClick "Add Server"

Choose Add Server, select Local MCP, use docker as the command, run the mcp/sonarqube image over stdio, and pass SONARQUBE_TOKEN plus SONARQUBE_ORG for Cloud or SONARQUBE_URL for Server.

Setup steps

  1. 01

    Install Docker

    Make sure Docker is installed and running locally.

  2. 02

    Open Add Server

    Configuration → MCP Registry → Add Server in Cosmos.

  3. 03

    Pick the Local MCP tab

  4. 04

    Set the command

    Command

    docker
  5. 05

    Add the arguments

    Args

    run --init --pull=always -i --rm -e SONARQUBE_TOKEN -e SONARQUBE_ORG mcp/sonarqube
  6. 06

    Set environment variables

    Use SONARQUBE_URL instead of SONARQUBE_ORG for SonarQube Server.

    SONARQUBE_TOKEN

    SONARQUBE_TOKEN=<sonarqube_token>

    SONARQUBE_ORG

    SONARQUBE_ORG=<org_key>
  7. 07

    Click Add, then enable

    Toggle on Cosmos Agent or CLI.

Local command

Suggested name: sonarqube

docker run --init --pull=always -i --rm -e SONARQUBE_TOKEN -e SONARQUBE_ORG mcp/sonarqube

For SonarQube Server, replace SONARQUBE_ORG with SONARQUBE_URL in the environment and command.

Authentication

API token via env (SONARQUBE_TOKEN). Add SONARQUBE_ORG for SonarQube Cloud or SONARQUBE_URL for SonarQube Server.

VariableExampleRequired
SONARQUBE_TOKEN<sonarqube_token>Yes
SONARQUBE_ORG<org_key>Yes
Official documentation →