SonarQube MCP Server
Server for SonarQube Give AI assistants direct access to your code quality, security & analysis data
README
š”ļø SonarQube MCP Server
<p align="center"> <img src="packages/sonarqube-vscode-extension/logo.png" alt="SonarQube MCP Server" width="128" /> </p>
<p align="center"> <strong>Model Context Protocol server for SonarQube</strong><br/> Give AI assistants direct access to your code quality, security & analysis data </p>
<p align="center"> <a href="https://www.npmjs.com/package/sonarqube-mcp-server"><img src="https://img.shields.io/npm/v/sonarqube-mcp-server?color=cb3837&label=npm" alt="npm" /></a> <a href="https://marketplace.visualstudio.com/items?itemName=bhayanak.sonarqube-mcp-extension"><img src="https://img.shields.io/visual-studio-marketplace/v/bhayanak.sonarqube-mcp-extension?color=007acc&label=vscode" alt="VS Code Marketplace" /></a> <a href="https://github.com/bhayanak/sonarqube-mcp-server/blob/main/LICENSE"><img src="https://img.shields.io/github/license/bhayanak/sonarqube-mcp-server?color=blue" alt="license" /></a> <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="node" /> <img src="https://img.shields.io/badge/tools-12-orange" alt="tools" /> </p>
š¦ Packages
This monorepo contains two packages:
| Package | Description | Docs |
|---|---|---|
sonarqube-mcp-server |
Standalone MCP server (npm, CLI, stdio) | š README |
sonarqube-mcp-extension |
VS Code extension with built-in MCP server | š README |
š§ 12 Tools at a Glance
| Tool | What it does |
|---|---|
sq_list_projects |
List projects with quality status |
sq_get_project |
Project overview with metrics |
sq_search_issues |
Search bugs, vulns & code smells |
sq_get_issue |
Full issue details |
sq_get_quality_gate |
Quality gate status & conditions |
sq_search_hotspots |
Security hotspots needing review |
sq_get_hotspot |
Hotspot details & remediation |
sq_get_measures |
Code quality metrics |
sq_get_measures_history |
Metric trends over time |
sq_get_rule |
Rule details & guidance |
sq_search_rules |
Search rules by language/type |
sq_get_component_tree |
File tree with metrics |
š Quick Start
Option 1 ā VS Code Extension (Recommended)
- Install SonarQube MCP from the VS Code Marketplace
- Set
sonarqubeMcp.baseUrlandsonarqubeMcp.tokenin VS Code settings - The MCP server appears automatically in VS Code's MCP panel ā start/stop/restart from there
ā Extension docs
Option 2 ā Standalone CLI
npm install -g sonarqube-mcp-server
export SONAR_MCP_BASE_URL="https://sonarcloud.io"
export SONAR_MCP_TOKEN="squ_your_token"
sonarqube-mcp-server
ā Server docs
Option 3 ā MCP Client Config (Claude Desktop, Cursor, etc.)
{
"mcpServers": {
"sonarqube": {
"command": "npx",
"args": ["sonarqube-mcp-server"],
"env": {
"SONAR_MCP_BASE_URL": "https://sonarcloud.io",
"SONAR_MCP_TOKEN": "squ_your_token"
}
}
}
}
š License
MIT Ā© bhayanak
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.