SO

SonarQube

Created 4 months ago

SonarQube MCP Server for seamless integration with SonarQube Server or Cloud.

development documentation public

What is SonarQube?

Enables seamless integration with [SonarQube](https://www.sonarsource.com/) Server or Cloud and allows for code snippet analysis within the agent context.

Documentation

SonarQube MCP Server

Quick setup

The simplest method is to rely on our Docker image hosted at mcp/sonarqube.

Installation Instructions# VS Code

You can use the following buttons to simplify the installation process within VS Code.

Manual installation

You can manually install the SonarQube MCP server by copying the following snippet in the MCP servers configuration file:

Configuration

Depending on your environment, you should provide specific environment variables.

Tools

  • analyze_code_snippet - Analyze a code snippet with SonarQube analyzers to find SonarQube issues in it.

Troubleshooting

Applications logs will be written to the STORAGE_PATH/logs/mcp.log file.

License

Copyright 2025 SonarSource. Licensed under the SONAR Source-Available License v1.0

Server Config

{
  "mcpServers": {
    "sonarqube-server": {
      "command": "npx",
      "args": [
        "sonarqube"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: Yes

Project Info

Hosted Featured
Created At: Jul 07, 2025
Updated At: Aug 07, 2025
Author: SonarSource
Category: official
License: SONAR Source-Available License v1.0
Tags:
development documentation public