MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

SonarQube MCP

by SonarSource

AI-assisted code quality analysis and security scanning powered by SonarQube

security Node.js Intermediate Self-hostable Verified
⭐ 200 stars πŸ“… Updated: 1mo ago

Description

Official SonarQube MCP server from SonarSource providing seamless integration between AI assistants and SonarQube Server or SonarQube Cloud. Enables AI agents to retrieve code quality issues, security vulnerabilities, code smells, and hotspots directly in context. The server provides code snippets alongside findings so AI assistants can understand issues in their full context, suggest fixes, and help prioritize technical debt. Supports both SonarQube Server (self-hosted) and SonarQube Cloud instances, making it suitable for teams of any size who want to bring continuous code quality inspection into their AI-assisted development workflow.

βœ… Best for

Teams using SonarQube who want AI assistance reviewing code quality and security findings

⏭️ Skip if

You do not use SonarQube or prefer a different static analysis tool

πŸ’‘ Use cases

  • Reviewing code quality issues and security vulnerabilities with AI assistance
  • Getting AI-generated fix suggestions for SonarQube findings with full code context
  • Prioritizing technical debt by querying issue severity and effort estimates
  • Monitoring project health metrics and quality gate status from AI assistants

πŸ‘ Pros

  • βœ“ Official SonarSource project with native SonarQube integration
  • βœ“ Provides code snippets in context alongside findings for accurate AI analysis
  • βœ“ Works with both SonarQube Server (self-hosted) and SonarQube Cloud
  • βœ“ Covers security vulnerabilities, code smells, bugs, and security hotspots

πŸ‘Ž Cons

  • βœ— Requires an active SonarQube instance with analyzed projects
  • βœ— Token needs appropriate permissions to access project data
  • βœ— Large projects with many issues may produce verbose responses

πŸ”§ Exposed tools (5 tools)

ToolCategoryDescription
get_issuesanalysisRetrieve code quality issues and vulnerabilities for a project
analyze_codeanalysisTrigger and review code analysis results with contextual snippets
list_projectsdiscoveryList all projects available in the SonarQube instance
get_code_qualitymetricsGet quality metrics, coverage, and quality gate status
get_hotspotssecurityRetrieve security hotspots that need manual review

⚑ Installation

Prerequisites:

  • β€’ Node.js v18+
  • β€’ SonarQube token (Server or Cloud)
  • β€’ API key required

Check Claude Code documentation to configure this MCP server.

πŸ’‘ Tips & tricks

Generate a user token with "Browse" permission on your projects. Ask the AI to focus on critical and blocker severity issues first for maximum impact on code quality.

πŸ”„ Alternatives

Quick info

Author
SonarSource
License
LGPL-3.0
Runtime
Node.js 18+
Transport
stdio
Category
security
Difficulty
Intermediate
Self-hostable
βœ…
Auth
β€”
Docker
β€”
Version
latest
Updated
Feb 10, 2026

Client compatibility

  • βœ… Claude Code
  • βœ… Cursor
  • βœ… VS Code Copilot
  • ❓ Gemini CLI
  • ❓ Windsurf
  • ❓ Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows