Skip to main content

SonarQube

This card connects to SonarQube Cloud's hosted MCP server over streamable HTTP. It is the SonarQube card with the Official badge. Region selects the host.

RegionMCP URL
EUhttps://api.sonarcloud.io/mcp
UShttps://api.sonarqube.us/mcp

Use it for a SonarQube Cloud organization in the EU or US region. SonarQube Server's hosted MCP server is an extension an administrator installs on that instance. The Australia region (sonarqube.au) is a separate Cloud instance. Sonar's MCP server supports the EU and US regions. The hosted server leaves out Sonar Vortex, which needs a local MCP server. See SonarQube Cloud-hosted.

OAuth sign-in is limited to Sonar's approved clients. This card uses a user token. Willow sends Authorization: Bearer <token> and the organization key in the SONARQUBE_ORG header.

Region​

Sign in to SonarQube Cloud and read the address. An EU organization is on sonarcloud.io. A US organization is on sonarqube.us. Set Region to that region. The card defaults to EU. See Choosing your server region.

Organization key​

  1. In SonarQube Cloud, open the account menu in the top right.
  2. Under My Organizations, select the organization.
  3. Copy the organization key on that page.

See Retrieving your organizations.

User token​

Generate a personal access token. Sonar requires a user token for the MCP server. A project token, a global token, or a scoped organization token will not connect.

The Personal Tokens tab is available when the account is signed in with GitHub.

  1. Open the account menu and select My account → Access Tokens.
  2. On Personal Tokens, under Generate Tokens, enter a name and an expiration.
  3. Select Generate Token and copy the value. Sonar shows it once.

See Managing personal access tokens.

Connect in Willow​

  1. Go to MCP Servers → + Add MCP server, open the SonarQube card with the Official badge, and click + Use.
  2. Set Region to the organization's region.
  3. Paste the organization key in Organization.
  4. Keep API key. Each person pastes their own token the first time they connect. Paste the token itself. Willow sends Authorization: Bearer <token>.
  5. Click Check connection. Assign groups and Publish.

Troubleshooting​

The organization cannot be reached. Region is the other Cloud region. Set US when the organization is on sonarqube.us, and EU when it is on sonarcloud.io.

The token is saved and calls still fail. The value is a project token, a global token, or a scoped organization token. Generate a personal access token and paste that.

Personal Tokens is missing. The account is signed in without GitHub. Sonar shows that tab for GitHub sign-in.

Additional Resources​