Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

SonarQube MCP Server

MCP server by SonarSource Community

SonarQube MCP Server connects AI assistants to SonarQube Server or SonarQube Cloud for code quality and security analysis. It also analyzes code snippets within the agent context. It is for developers who use SonarQube and want those results inside their AI tools.

  • Score 80
  • 697 stars
  • NOASSERTION
  • Updated

Install SonarQube MCP Server

Built from the published package, never by AI.

claude mcp add sonarqube-mcp-server -e SONARQUBE_TOKEN=YOUR_SONARQUBE_TOKEN -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install SonarQube MCP Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sonarqube-mcp-server block.

About

SonarQube MCP Server is a Model Context Protocol server from SonarSource. It lets AI assistants work with SonarQube Server or SonarQube Cloud to check code quality and security. It also supports analysis of code snippets directly within the agent context.

The server runs as a container image published on Docker Hub as sonarsource/sonarqube-mcp. Users configure it with a SonarQube token, and either an organization key for SonarQube Cloud or the URL of a SonarQube Server. The source includes setup steps for several AI clients, including Claude Code, Cursor, Codex CLI, Kiro, GitHub Copilot and VS Code. It is aimed at developers and teams that already use SonarQube.

Written from the project's README and checked against it.

What you need

  • SonarQube Server or SonarQube Cloud account
  • SonarQube user token
  • SonarQube Cloud organization key or SonarQube Server URL
  • Docker or another OCI-compatible container runtime
SettingNeededWhat it is
SONARQUBE_TOKENEnvironment variable, secretRequiredYour SonarQube USER token
SONARQUBE_ORGEnvironment variable, secretOptionalYour SonarQube Cloud organization key (if using SonarQube Cloud)
SONARQUBE_URLEnvironment variable, secretOptionalYour SonarQube Server URL (if using SonarQube Server)

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Analyze this code snippet for quality and security issues.
  • Check my SonarQube project for code quality problems.
  • Show the security findings from my latest SonarQube analysis.

Good to know

  • The SonarQube token is a sensitive credential and should not be committed to version control.
  • The Gemini CLI extension has moved to the sonarqube-agent-plugins repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Analyze code quality in AI assistants
  • Review security issues in code snippets
  • Check SonarQube results during development

Alternatives to SonarQube MCP Server

All alternatives →
Agentmesh MCP Proxy microsoft
94

Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.

AAA Local 6.6k
Bla qybaihe
94

Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.

AAA Local 7.3k
Bla Agents qybaihe
94

Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.

AAA Local 11k/wk
MCP Auth zgeoff
94

A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner

AAC Local 44k/wk
Agentos MCP Server microsoft
94

Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.

AAA Local 6.6k
Convex MCP Gateway tfohlmeister
93

Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.

AAC Local 37k/wk

Compare with Agentmesh MCP Proxy, Bla or Bla Agents

SonarQube MCP Server: common questions

Does SonarQube MCP Server work with SonarQube Cloud?

Yes. The source gives setup steps for SonarQube Cloud, which use an organization key. It also describes SonarQube Cloud US, which uses the URL https://sonarqube.us.

Can it analyze code without a SonarQube server?

The source says it supports analysis of code snippets directly within the agent context. It does not say whether this needs a connected SonarQube instance.

Where is the container image published?

The source says the container image is published at sonarsource/sonarqube-mcp on Docker Hub. Version tags are available for reproducible deployments.

How do I install SonarQube MCP Server?

In Claude Code run claude mcp add sonarqube-mcp-server -e SONARQUBE_TOKEN=YOUR_SONARQUBE_TOKEN -- docker run -i --rm -e SONARQUBE_TOKEN docker.io/sonarsource/sonarqube-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is SonarQube MCP Server the official server?

SonarQube MCP Server is a community project by SonarSource, not verified by a company domain.

Is SonarQube MCP Server free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is SonarQube MCP Server safe to use?

It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to SonarQube MCP Server?

Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.

Does SonarQube MCP Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

SonarQube MCP Server Install

Add to stack

Loading.