Skip to main content
Glama
bhayanak

SonarQube MCP Server

by bhayanak

πŸ›‘οΈ SonarQube MCP Server


πŸ“¦ 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


Related MCP server: SonarQube MCP Server

πŸ”§ 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

  1. Install SonarQube MCP from the VS Code Marketplace

  2. Set sonarqubeMcp.baseUrl and sonarqubeMcp.token in VS Code settings

  3. 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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    An MCP server for SonarQube that enables LLM agents to discover projects, analyze code quality metrics, check Quality Gate status, search issues with filters, and rank projects by worst-performing metrics. It provides read-only, safe access to SonarQube instances with structured outputs and error handling.
    5
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    A Python MCP server for SonarQube, enabling AI agents to query projects, issues, quality gates, coverage, and security hotspots.
    13
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    MCP server that exposes SonarQube data as AI agent tools, enabling project discovery, quality gates, measures, issues, hotspots, rule explanations, source code, and raw API access.
    4
    -

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bhayanak/sonarqube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server