sonarqube-mcp-server

sapientpants/sonarqube-mcp-server

3.5

If you are the rightful owner of sonarqube-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that integrates with SonarQube to provide AI assistants with access to code quality metrics, issues, and analysis results.

Tools

Functions exposed to the LLM to take actions

projects

List all SonarQube projects with metadata (requires admin permissions)

metrics

Get available metrics from SonarQube

issues

Search and filter SonarQube issues by severity, status, assignee, tag, file path, directory, scope, and more. Critical for dashboards, targeted clean-up sprints, security audits, and regression testing. Supports faceted search for aggregations.

markIssueFalsePositive

Mark an issue as false positive

markIssueWontFix

Mark an issue as won't fix

markIssuesFalsePositive

Mark multiple issues as false positive (bulk operation)

markIssuesWontFix

Mark multiple issues as won't fix (bulk operation)

addCommentToIssue

Add a comment to a SonarQube issue

assignIssue

Assign a SonarQube issue to a user or unassign it

confirmIssue

Confirm a SonarQube issue

unconfirmIssue

Unconfirm a SonarQube issue

resolveIssue

Resolve a SonarQube issue

reopenIssue

Reopen a SonarQube issue

system_health

Get the health status of the SonarQube instance

system_status

Get the status of the SonarQube instance

system_ping

Ping the SonarQube instance to check if it is up

measures_component

Get measures for a specific component

measures_components

Get measures for multiple components

measures_history

Get measures history for a component

quality_gates

List available quality gates

quality_gate

Get quality gate conditions

quality_gate_status

Get project quality gate status

source_code

View source code with issues highlighted

scm_blame

Get SCM blame information for source code

hotspots

Search for security hotspots with filtering options

hotspot

Get detailed information about a specific security hotspot

update_hotspot_status

Update the status of a security hotspot (requires appropriate permissions)

components

Search and navigate SonarQube components (projects, directories, files). Supports text search, filtering by type/language, and tree navigation

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources