Quickstart guide
This page lays out the process of getting your SonarQube MCP Server up and running in the most simple way possible. Three different user configurations are outlined below.
We've prepared three user guides to help get you going with the SonarQube MCP Server in the fastest way possible. Each guide is designed for a different configuration that should fit most user's requirements. If you're having troubles with a unique configuration (or for any reason, really), check out the Help page to get in touch with us, or review the Troubleshooting page for some common issues experiened by other users.
General user guide
The General user guide is designed for users who are operating independently and need a quick setup designed around your specific IDE or CLI.
Check your Prerequisites
Review the Prerequisites and make sure that you’ve got everything you need to get going.
Gather your variables
You will need a few Common variables to authenticate your server.
If you’re using SonarQube Cloud, retrieve your token and organization name.
For SonarQube Server and SonarQube Community Build, retrieve your user token and server URL.
Find your IDE or CLI and connect
Have a look at the MCP Server setup in your IDE instructions below. Find your IDE or CLI in the list and adjust the code samples using your variables. The Stdio transport mode will be deployed.
Start using the MCP tools
Check out the Tools to get going using the server while you code.
Configuration guide
The Configuration guide is designed for setting up a central server that multiple users will
Check your deployment
Depending on how you want to deploy the server, you might If you need a unique configuration. First, figure out which Transport mode you want to use, then grab the correct Environment variables you'll need.
Deploy your server
Using the Environment variables you grabbed in step 1, deploy your SonarQube MCP Server using the Transport mode you want to use.
Find your IDE or CLI and connect
Have a look at the MCP Server setup in your IDE instructions below. Find your IDE or CLI in the list and adjust the code samples using your variables. Each user will connect to the server using their own Common variables.
Start using the MCP tools
Check out the Tools to get going using the server while you code.
Build your own server guide
The Build your own server guide is designed for users who need to either use the provided JAR file, or want to build their own from scratch.
Review your options
Our Docker image provides the easiest way to get going, but it's possible that it won't work for you. To build your MCP server locally, check out the instructions to Build locally.
Set up your installation
Because you're building your own server locally, you'll need to complete the setup with a Manual installation.
Start using the MCP tools
Finally, check out the Tools to get going using the server while you code.
MCP Server setup in your IDE
Launch the server with Docker
The SonarQube MCP Server can be launched in two ways: With a Docker container (recommended), or from a JAR file built locally. The full details about building your server is on the Build your SonarQube MCP Server page.
The recommended method is to rely on the official Docker image found on the mcp/sonarqube Docker Hub page, then follow the Quick configuration or Manual configuration instructions inside of each IDE/CLI expandable below.
IDE setup
The setup instructions below contain code samples for both SonarQube Cloud and SonarQube Server. If you're using SonarQube Community Build, use the code samples for SonarQube Server.
The SonarQube MCP Server tools
Once you’ve set up the Sonar MCP Server with your IDE, you can start using the SonarQube MCP Server Tools that are available.
Last updated
Was this helpful?

