# MCP Server

- [About the MCP Server](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/about-the-mcp-server.md): The SonarQube MCP Server is a Model Context Protocol (MCP) server that connects your AI coding agent to SonarQube's code quality and security data.
- [Setup](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup.md): This section contains guides for setting up the SonarQube MCP Server with your favorite IDE and CLI.
- [Prerequisites](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/prerequisites.md): Prerequisites for setting up the SonarQube MCP Server.
- [Environment considerations](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/environment-considerations.md): This page outlines the various setups and transport modes available when running the SonarQube MCP Server, which allows its integration with a variety of clients.
- [IDE/CLI quickstart guides](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides.md): Quickstart guides for setting up the SonarQube MCP Server with your favorite IDE or CLI.
- [Claude Code](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/claude-code.md): Set up the SonarQube MCP Server in Claude Code to use Sonar tools in terminal-based AI workflows.
- [Codex CLI](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/codex-cli.md): Set up the SonarQube MCP Server with Codex CLI and start using Sonar tools with your agent.
- [Cursor](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/cursor.md): Set up the SonarQube MCP Server in Cursor and start using Sonar tools with your agent.
- [Gemini CLI](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/gemini-cli.md): Set up the SonarQube MCP Server with Gemini CLI and start using Sonar tools with your agent.
- [VS Code with GitHub Copilot](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/vs-code.md): Set up the SonarQube MCP Server in VS Code with GitHub Copilot and start using Sonar tools with your agent.
- [GitHub Copilot CLI](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/github-copilot-cli.md): Set up the SonarQube MCP Server with GitHub Copilot CLI and start using Sonar tools with your agent.
- [GitHub Copilot cloud agent](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/github-copilot-cloud-agent.md): Set up the SonarQube MCP Server with the GitHub Copilot cloud agent and start using Sonar tools in your CI/CD environment.
- [Kiro](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/kiro.md): Set up the SonarQube MCP Server in Kiro and start using Sonar tools with your agent.
- [Windsurf](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/windsurf.md): Set up the SonarQube MCP Server in Windsurf and start using Sonar tools with your agent.
- [Zed](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/quickstart-guides/zed.md): Set up the SonarQube MCP Server in Zed and start using Sonar tools with your agent.
- [SonarQube Cloud-hosted](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/sonarqube-cloud-hosted.md): The SonarQube Cloud-hosted configuration ensures you use the most up to date version of the SonarQube MCP Server and gives you access to a subset of tools.
- [Self-hosted](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/self-hosted.md): This page provides information on self-hosted SonarQube MCP Server setups and the associated transport modes Stdio, HTTPS, and HTTP including examples for each deployment.
- [Prompt examples](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/prompt-examples.md): Examples of prompts to use when working with an agent and the SonarQube MCP Server.
- [Build](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/build.md): The SonarQube MCP Server can be launched using our container image, installed using our JAR, and you can build your own server if needed. This page covers all three options.
- [Integrate with SonarQube for IDE](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/setup/integrate-with-sonarqube-for-ide.md): Integrate the SonarQube MCP Server with SonarQube for IDE to get code analysis and insights directly in your IDE.
- [Reference](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/reference.md): Find all environment variables and tools for the SonarQube MCP Server.
- [Environment variables](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/reference/environment-variables.md): Environment variables reference for the SonarQube MCP Server.
- [Tools](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/reference/tools.md): Reference for the SonarQube MCP Server tools, toolsets, and supported parameters.
- [Resources](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/resources.md): Resources for the SonarQube MCP Server, including community help and troubleshooting guidance for logs, connectivity, and common setup issues.
- [Help](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/resources/help.md): How to ask questions or give feedback, and how to contribute to the future of SonarQube MCP Server.
- [Troubleshooting](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/resources/troubleshooting.md): What to do when you have problems engaging with the SonarQube MCP Server.
- [Deprecations and removals](https://docs.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server/deprecations-and-removals.md): This page contains information on the deprecation and removal of SonarQube MCP Server features and parameters.


---

# 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.sonarsource.com/agent-centric-development-cycle/developer-tools/mcp-server.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.
