# Sonarqube

**Type:** Community

**Source Type:** Repository

**Source:** [GitHub](https://github.com/SonarSource/sonarqube-mcp-server)

**Description:** SonarQube MCP server enables AI assistants to interact with SonarQube's code quality and security analysis platform. It provides capabilities for code quality metrics, security vulnerability detection, and technical debt management for both SonarQube Cloud and self-hosted instances.

**Configuration Parameters:**

* **SonarQube API token** - Authentication token for API access (optional)
* **URL of the SonarQube instance, to provide only for SonarQube Server or Community Build** - Service instance URL (optional)
* **Organization key for SonarQube Cloud, not required for SonarQube Server or Community Build** - Configuration value (optional)

**Setup Steps:**

1. Log in to your Sonarqube account
2. Navigate to Settings → API Settings → API Keys
3. Generate a new API token or key
4. Copy the token for configuration
5. Ensure your account has appropriate permissions for Sonarqube API access

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natoma.ai/apps/sonarqube.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
