Provides tools for interacting with SonarQube APIs, enabling token-based authentication, project listing and details retrieval, and metrics collection from SonarQube instances.
SonarQube MCP Server
A Model Context Protocol (MCP) server for interacting with SonarQube APIs, providing tools for authentication, project management, and metrics retrieval.
Features
- ✅ Token-based authentication
- 🔍 Project listing and details
- 📊 Metrics retrieval
- 🚀 Lightweight and fast
- 🔄 Standardized MCP interface
🛠️ Getting Started
Requirements
Installation CLI
Configuration
Set these environment variables:
Usage
Cursor IDE
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
Configure SonarQube MCP on Cursor
In Windsurf
Add this to your Windsurf MCP config file. See Windsurf MCP docs for more info.
In VS Code
Install in VS Code
Add this to your VS Code MCP config file. See VS Code MCP docs for more info.
Available tools (via MCP protocol):
API Endpoints
Tool | Parameters | Description |
---|---|---|
authenticate | token? | Validate SonarQube token |
list_projects | token? | List all projects |
get_project_details | token? , projectKey | Get details for specific project |
get_project_metrics | token? , projectKey , metrics | Get metrics for project |
Troubleshooting
Error: Connection refused
- Verify SonarQube server is running
- Check
SONARQUBE_URL
is correct
Error: Invalid token
- Regenerate your SonarQube token
- Ensure token has proper permissions
License
MIT © Akash Lomas
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A lightweight MCP for SonarQube reports
Related MCP Servers
- -securityFlicense-qualityA simple MCP server for creating and managing notes with support for summarization functionality.Last updated -1Python
- -securityAlicense-qualityAn MCP server that integrates with Sonar API to provide Claude with real-time web search capabilities for comprehensive research.Last updated -2JavaScriptMIT License
- TypeScript
- -securityAlicense-qualityProvides tools for retrieving analytics reports and metrics from PlainSignal through the Model Context Protocol (MCP).Last updated -21JavaScriptMIT License