Back to Home
SonarSource icon

sonarqube-mcp-server

Verified Safe

by SonarSource

Overview

The SonarQube MCP Server enables seamless integration with SonarQube Server or Cloud for code quality and security analysis, including direct code snippet analysis within an agent context.

Installation

Run Command
docker run -i --rm -e SONARQUBE_TOKEN -e SONARQUBE_ORG mcp/sonarqube

Environment Variables

  • SONARQUBE_TOKEN
  • SONARQUBE_ORG
  • SONARQUBE_URL
  • STORAGE_PATH
  • SONARQUBE_TRANSPORT
  • SONARQUBE_HTTP_PORT
  • SONARQUBE_HTTP_HOST
  • SONARQUBE_HTTP_AUTH_MODE
  • SONARQUBE_IDE_PORT

Security Notes

The server demonstrates robust security practices including session-to-token mapping with TTL, explicit token validation to prevent hijacking, and comprehensive CORS/Origin header checks to mitigate DNS rebinding attacks. It gracefully handles unimplemented authentication modes (e.g., OAuth). A minor concern is the use of 'sonarlint' as a default hardcoded keystore password for HTTPS, though it is configurable and a warning is logged when binding to all interfaces.

Similar Servers

Stats

Interest Score75
Security Score8
Cost ClassLow
Stars266
Forks34
Last Update2025-12-10

Tags

SonarQubeCode QualitySecurity AnalysisMCPDevTools