MCP server

SonarQube MCP Server

Code quality and security issues, quality gates and metrics from SonarQube Cloud or Server. Official: built and maintained by Sonar. It runs locally on your machine over stdio. Setup below for 12 clients (checked 2026-10-25). Repo and registry data checked 2026-10-24.
Maintainer
Official · Sonar
Runs
Local (stdio)
GitHub
★ 672, last push 2026-10-23 (checked 2026-10-24) star history
Registry
io.github.SonarSource/sonarqube-mcp-server
Connects to
SonarQube
SonarQube GitHub star history

Install the SonarQube MCP Server

Pick your client. Each tab starts the same local command. Config shapes checked against each client's docs on 2026-10-25.

Needs SONARQUBE_TOKEN (replace the ... with your value).

Run in a terminal. Everything after -- is the command that starts the server. docs

claude mcp add --transport stdio --env SONARQUBE_TOKEN=... sonarqube -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp

Security notes

  • The local server runs with your user's permissions (it runs in a Docker container, and only the variables passed with -e reach it).
  • Needs SONARQUBE_TOKEN. Use a key or token with the narrowest scopes (read-only if there is one), and keep it out of config files you commit (.mcp.json, .vscode/mcp.json).
  • Burp Suiteofficial · ★ 1.3k

    Use Burp Suite from an agent: send requests, read proxy history and scanner issues.

  • Socketofficial · ★ 137

    Check npm, PyPI and other packages for supply-chain risk before the agent installs them.

  • Auth0official · ★ 121

    Manage Auth0 applications, APIs, actions, logs and forms from the agent.

  • Oktaofficial · ★ 74

    Self-hosted server to manage Okta users, groups, apps, policies and system logs.

  • HashiCorp Vaultofficial · ★ 65

    Read and write Vault secrets and manage mounts in HashiCorp Vault.

  • Trivyofficial · ★ 53

    Scan filesystems, images and repos for vulnerabilities and misconfigurations with Trivy.

  • Local server in the 1Password app to manage project environment variables, with approval prompts.

  • Clerkofficial

    Hosted server to manage Clerk apps, users and domains, plus Clerk SDK snippets.

FAQ

What does the SonarQube MCP Server do?+

Code quality and security issues, quality gates and metrics from SonarQube Cloud or Server.

Is the SonarQube MCP server official?+

Official: built and maintained by Sonar.

How do I add SonarQube to Claude Code?+

Run: claude mcp add --env SONARQUBE_TOKEN=... --transport stdio sonarqube -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp. Add --scope project to share it with your team through .mcp.json.

How do I use the SonarQube MCP server in Cursor or VS Code?+

Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("stdio").

Does SonarQube work in ChatGPT and claude.ai?+

No: it runs locally over stdio, and ChatGPT and claude.ai only connect to remote servers. Use it in Claude Desktop, Claude Code, Cursor, VS Code or another client that can start a local process.

What are the alternatives to the SonarQube MCP server?+

Other security MCP servers: Burp Suite, Socket, Auth0, Okta and HashiCorp Vault.

All MCP servers · What is an MCP server? · Agent skills