The SonarQube MCP Server is a Model Context Protocol (MCP) server that enables integration with SonarQube Server or Cloud for code quality and security analysis.
From the registry: An MCP server that enables integration with SonarQube Server or Cloud for code quality and security.
Please install the `sonarqube-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Docker** — Docker required to run the container image (https://www.docker.com)
- **SonarQube token** — SonarQube User Token from SonarQube Cloud or Server (https://sonarcloud.io)
Canonical MCP server config (stdio transport):
- command: `docker`
- args: ["run","--init","--pull=always","-i","--rm","-e","SONARQUBE_TOKEN","-e","SONARQUBE_ORG","mcp/sonarqube"]
- required environment variables:
- `SONARQUBE_TOKEN`: SonarQube User Token for authentication (example: `<your_sonarqube_token>`)
- optional environment variables:
- `SONARQUBE_ORG`: SonarQube Cloud organization key (required for Cloud, not needed for Server) (example: `<your_org_key>`)
- `SONARQUBE_URL`: SonarQube Server URL (for self-hosted) or https://sonarqube.us for Cloud US (example: `https://your-sonarqube-server.com`)
Note: Official SonarQube MCP server by SonarSource. Supports SonarQube Cloud and Server. For SonarQube Server: replace -e SONARQUBE_ORG with -e SONARQUBE_URL. Image: mcp/sonarqube on Docker Hub.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.SONARQUBE_TOKENrequiredYour SonarQube token for authentication.SONARQUBE_ORGrequiredYour organization key for SonarQube Cloud.SONARQUBE_URLThe URL for SonarQube Server or Cloud.Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.