SonarQube MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SONARQUBE_URL | No | Base URL of your SonarQube instance | http://localhost:9000 |
| SONARQUBE_TOKEN | Yes | User token for authentication | |
| SONARQUBE_REQUEST_TIMEOUT_SEC | No | HTTP request timeout in seconds | 30 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
} |
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| check_statusA | Verify SonarQube connectivity and return server version/status. |
| list_projectsA | List or search SonarQube projects with pagination. Args: query: Optional search string to filter project names/keys. page: Page number (1-indexed). page_size: Results per page (1–500). |
| search_issuesA | Search SonarQube issues with filters. Args: project_key: Project key to scope issues. severities: Comma-separated: INFO,MINOR,MAJOR,CRITICAL,BLOCKER. types: Comma-separated: CODE_SMELL,BUG,VULNERABILITY,SECURITY_HOTSPOT. statuses: Comma-separated: OPEN,CONFIRMED,REOPENED,RESOLVED,CLOSED. tags: Comma-separated tag names. assigned: Filter by assignment (true=assigned, false=unassigned). page: Page number (1-indexed). page_size: Results per page (1–500). |
| get_issueB | Get detailed information for a single SonarQube issue by key. Args: issue_key: The issue key (e.g., AXy1k...). |
| get_project_metricsB | Get quality metrics for a SonarQube project. Args: project_key: The project key. metric_keys: Comma-separated metric keys. Defaults to a standard quality dashboard set (bugs, coverage, smells, ratings, etc.). |
| get_ruleB | Get the description and metadata for a SonarQube rule. Args: rule_key: Rule key (e.g., python:S1192, java:S106). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/anggakawa/sonarqube-ce-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server