Skip to main content
Glama
SonarSource

SonarQube MCP Server

Official
by SonarSource

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STORAGE_PATHNoAbsolute path to a writable directory where the server stores files. Automatically provided when using the Docker image; required when running from a JAR.
SONARQUBE_ORGNoYour SonarQube Cloud organization key. Required when connecting to SonarQube Cloud.
SONARQUBE_URLNoThe SonarQube Server URL. Required when connecting to SonarQube Server. For SonarQube Cloud, this is optional and defaults to 'https://sonarcloud.io' (use 'https://sonarqube.us' for Cloud US).
SONARQUBE_TOKENNoYour SonarQube token. Required for both SonarQube Cloud and SonarQube Server. For SonarQube Cloud, use a user token; for SonarQube Server, use a USER token.
SONARQUBE_IDE_PORTNoOptional port number between 64120 and 64130 used to connect with SonarQube for IDE.
SONARQUBE_TOOLSETSNoComma-separated list of toolsets to enable. If not set, default important toolsets are enabled. Example: 'analysis,issues,quality-gates'.
SONARQUBE_HTTP_HOSTNoHost to bind for HTTP/HTTPS transport. Default: '127.0.0.1'.127.0.0.1
SONARQUBE_HTTP_PORTNoPort number for HTTP/HTTPS transport. Default: '8080'.8080
SONARQUBE_READ_ONLYNoSet to 'true' to enable read-only mode, which disables all write operations. Default: 'false'.false
SONARQUBE_TRANSPORTNoTransport mode. Leave unset for stdio (default), or set to 'http' or 'https' for Streamable HTTP transport.
SONARQUBE_PROJECT_KEYNoOptional default project key. When set, all tools that require a project key use this value automatically.
SONARQUBE_DEBUG_ENABLEDNoSet to 'true' to enable debug logging. Default: 'false'.false
SONARQUBE_MCP_IN_CONTAINERNoSet to 'true' when running inside a container (not automatically set by the Docker image). Default: 'false'.false
SONARQUBE_HTTP_ALLOWED_ORIGINSNoComma-separated browser origins allowed for CORS in HTTP/HTTPS transport.
SONARQUBE_LOG_TO_FILE_DISABLEDNoSet to 'true' to disable writing logs to disk. Default: 'false'.false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/SonarSource/sonarqube-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server