SonarQube MCP Server

SonarQube MCP Server

sonarqube_mcp•bydhanush-dev01

A FastMCP server that bridges to SonarQube APIs, exposing tools to monitor and analyze code quality.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Checks the status and connection information of a SonarQube server.
  • •Validates the SonarQube authentication token and returns authentication status and associated user information.
  • •Fetches unresolved project issues including bugs, code smells, vulnerabilities, severity, status, and file locations.
  • •Lists accessible SonarQube projects with keys, names, and visibility settings.

BEST FOR

  • •Reviewing unresolved bugs, code smells, and vulnerabilities for a specific project.
  • •Retrieving key quality metrics such as coverage, duplication density, and reliability, security, and maintainability ratings.

ABOUT SONARQUBE_MCP

SonarQube MCP Server is cataloged as an MCP server attributed to dhanush-dev01. A FastMCP server that bridges to SonarQube APIs, exposing tools to monitor and analyze code quality. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SonarQube MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What environment variables does the server use for configuration?

It uses SONARQUBE_URL, SONARQUBE_TOKEN, and PROJECT_KEY.

What kinds of errors does the server handle?

It handles connection issues, authentication failures, permission problems, invalid project keys, and general API errors.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 160548a9554f · 采集于 2026-11-13 11:27:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

SonarQube MCP Server

This is a FastMCP server that provides a bridge to interact with SonarQube APIs. The server offers various tools to monitor and analyze code quality using SonarQube.

Features

1. Health Check

  • Endpoint: sonar_health_check
  • Checks the status of your SonarQube server
  • Returns the current health status and connection information

2. Token Validation

  • Endpoint: get_token_info
  • Validates the SonarQube authentication token
  • Returns authentication status and associated user information

3. Project Issues

  • Endpoint: get_project_issues
  • Fetches unresolved issues for a specific project
  • Returns detailed information about:
    • Bugs
    • Code smells
    • Vulnerabilities
    • Issue severity and status
    • File location and line numbers

4. Project Listing

  • Endpoint: list_projects
  • Lists all accessible SonarQube projects
  • Provides project keys, names, and visibility settings

5. Project Metrics

  • Endpoint: get_project_metrics
  • Retrieves key quality metrics for a project including:
    • Bug count
    • Vulnerability count
    • Code smell count
    • Code coverage
    • Duplicated lines density
    • Reliability rating
    • Security rating
    • Maintainability rating (SQALE)

Configuration

The server uses the following environment variables:

SONARQUBE_URL=http://localhost:9000  # Default SonarQube server URL
SONARQUBE_TOKEN=                     # Your SonarQube authentication token
PROJECT_KEY=default_project          # Default project key for operations

Requirements

Check the requirements.txt file for all dependencies. The main requirements include:

  • FastMCP
  • Requests

Usage

  1. Set up your environment variables
  2. Install the requirements
  3. Run the server using Python

The server will start and provide MCP-compliant endpoints for interacting with your SonarQube instance.

Docker Usage

Security Notice

For security reasons, sensitive environment variables like SONARQUBE_TOKEN and PROJECT_KEY should not be stored in the Dockerfile. Instead, they should be passed at runtime using environment variables or environment files.

Building the Image

To build the Docker image:

docker build -t sonarqube-mcp .

💡 How to Integrate This Tool with VS Code and Make It Smarter

  • Open your VS Code Settings alt text

  • In the search bar, type mcp alt text

  • Click on “Edit in settings.json”

  • Under the mcp section, add the following configuration:

Adding it in MCP server config

      "sonarqubemcp": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "--init",
          "-e",
          "SONARQUBE_URL",
          "-e",
          "SONARQUBE_TOKEN",
          "-e",
          "PROJECT_KEY",
          "dhanushhypervisor/sonarqube_mcp_server"
        ],
        "env": {
          "SONARQUBE_URL": "<server_url>",
          "SONARQUBE_TOKEN" : "<server_token>",
          "PROJECT_KEY": "<project_name>",
        }
      }

Environment Variables

When running the container, configure these required environment variables:

  • SONARQUBE_URL: URL of your SonarQube server
  • SONARQUBE_TOKEN: Your SonarQube authentication token
  • PROJECT_KEY: The default project key to analyze

The server runs on Python 3.10 and uses the uv package manager for dependency management and execution.

Error Handling

The server includes comprehensive error handling for:

  • Connection issues
  • Authentication failures
  • Permission problems
  • Invalid project keys
  • General API errors

Each endpoint returns detailed error messages to help diagnose issues.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SonarQube MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sonarqube_mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools