IdeaCredIdeaCred

SonarSource/sonarqube-mcp-server

85

SonarQube MCP Server

What's novel

SonarQube MCP Server

Code Analysis

15 files read · 5 rounds

An MCP (Model Context Protocol) server that exposes SonarQube's code quality and security APIs as tools for AI agents, and also performs local code analysis via SonarLint Core for analyzing code snippets directly within the agent context.

Strengths

Well-structured architecture with clean separation between transport (stdio/HTTP), tool definitions, SonarQube API client, and SonarLint backend. The tool framework with schema generation, argument validation, enum checking, and per-request entitlement gating is production-grade. The AnalyzeCodeSnippetTool demonstrates real depth — it fetches quality profiles from SonarQube, configures SonarLint rules, runs local analysis, and filters results by snippet location.

Weaknesses

The main entry point (SonarQubeMcpServer.java at 41.7kb) is a god-class that orchestrates too many concerns (transport setup, tool registration, organization resolution, instruction composition, analytics). The serverapi package with 122 files is essentially a hand-rolled REST client that could be more DRY. The snippet-finding algorithm in AnalyzeCodeSnippetTool is a naive O(n*m) line-by-line comparison that would be slow on large files.

Score Breakdown

Innovation
5 (25%)
Craft
79 (35%)
Traction
62 (15%)
Scope
86 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci+5
Tests+8
Polish+2
Releases+4
Has License+5
Code Quality+24
Readme Quality+15
Recent Activity+7
Structure Quality+4
Commit Consistency+5
Has Dependency Mgmt+0

Traction

Forks+20
Stars+27
Hn Points+0
Watchers+10
Early Traction+0
Devto Reactions+0
Community Contribs+5

Scope

Commits+8
Languages+8
Subsystems+10
Bloat Penalty+0
Completeness+6
Contributors+8
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

321

Contributors

16

Files

395

Active weeks

40

TestsCI/CDREADMELicenseContributing

Repository

Language

Java

Stars

425

Forks

68

License

NOASSERTION