Supported platforms
Prerequisites
- A SonarQube Cloud organization or a SonarQube Server instance running version 2025.4 or newer.
- A user token generated from My Account → Security → Generate Tokens.
- Browse permission on the projects CloudThinker should analyze.
CloudThinker uses the official SonarSource MCP server, which requires SonarQube Server 2025.4+ or SonarQube Cloud.
Setup
- SonarQube Cloud
- SonarQube Server (self-hosted)
1
Generate a token
Go to SonarQube Cloud → My Account → Security → Generate Tokens:
- Name:
cloudthinker - Type:
User Token - Expires in: set an appropriate duration
2
Find your organization key
Go to My Organizations and note the organization key from the URL:
3
Add the connection in CloudThinker
Navigate to Connections → SonarQube and enter:
- Token: the token you generated
- Deployment Type: select SonarQube Cloud
- Organization: your organization key
Connection details
Required permissions
- Browse permission on projects you want CloudThinker to analyze
- Execute Analysis permission for triggering scans
Agent capabilities
Once connected, agents can query code quality data across your SonarQube projects.Verify the connection
Example prompts
Troubleshooting
Authentication failed
Authentication failed
The token is incorrect, expired, or revoked. Confirm the token type is
User Token, generate a new token if needed, and update the connection.Organization not found (Cloud)
Organization not found (Cloud)
The organization key is incorrect, or the account is not a member of that organization. Confirm the key from My Organizations in SonarQube Cloud and verify membership.
Server unreachable (self-hosted)
Server unreachable (self-hosted)
The SonarQube URL is wrong or the instance is not reachable from CloudThinker. Verify the URL, check firewall rules, and confirm the SonarQube service is running.
No projects visible
No projects visible
The token owner lacks Browse permission on the projects. Check project visibility settings (public vs. private) and grant Browse permission for the projects CloudThinker should analyze.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- HTTPS only — always use HTTPS for self-hosted instances to protect the token in transit.
- User token type — use a
User Token, not a Global Analysis Token, to limit the token’s scope to what CloudThinker needs.
Related
Elasticsearch Connection
Search code quality logs
Grafana Connection
Visualize code quality metrics