Feature Request: MCP-Spec-Compliant SonarCloud Server (with OAuth 2.1)

Environment

  • SonarQube Cloud
  • Deployment type (STDIO/HTTP, Docker/JAR): -
  • Client / AI tool using MCP (if applicable): Claude Code

Description

I’d like to request that SonarSource publish an MCP server for SonarCloud that’s fully compliant with the current Model Context Protocol specification, including the OAuth 2.1 authorization flow for remote servers.

Current state

The endpoint exists at https://api.sonarcloud.io/mcp, but it doesn’t support the MCP authorization spec - connecting it to Claude.ai’s connector system fails.

Why this matters

MCP is becoming the standard for connecting AI assistants to external tools. Integration with SonarCloud is already possible (via API tokens or self-hosted MCP servers), but a spec-compliant hosted server with OAuth would make it significantly more accessible - users could connect with a single click, no token management required.

This would enable seamless integration with:

  • Claude (via Connectors Directory), also Claude Code on the web, using the centrally configured mcp
  • Cursor, Windsurf, Cline, and other AI coding tools
  • Any future MCP-compatible assistant

Request

Update the existing MCP endpoint to support MCP Authorization (OAuth 2.1) and submit to the Claude Connectors Directory.

It was mentioned here by @nicolas.quinquenel, that this is on the roadmap: SonarQube MCP server 1.23 - Simplified SonarQube Cloud setup and improved list branch tool - #3 by nicolas.quinquenel

+1 - we’re hitting exactly this.

We’re a SonarQube Cloud customer trying to add the hosted endpoint as an organization-level custom connector in Claude (Team/Enterprise), not per-developer Claude Code.

Current behaviour: https://api.sonarcloud.io/mcp authenticates via static HTTP headers (Authorization: Bearer <user token> plus SONARQUBE_ORG). Claude’s custom connector configuration accepts OAuth only, per the MCP authorization spec, and the endpoint advertises no authorization server, so the discovery handshake cannot complete either. Net result: the hosted server cannot be deployed org-wide at all - it works only in per-developer configurations where each engineer supplies and stores their own user token locally.

That is a blocker for two reasons. Distribution: no central rollout to our engineering organization. Security: SonarQube user tokens end up sitting on individual developer workstations, rather than credentials issued and revoked centrally through our identity provider.

Questions, given 1.23 is referenced above as carrying this:

(a) Is MCP-spec-compliant OAuth 2.1 support on the hosted endpoint confirmed for MCP Server 1.23, and what is the expected release timeframe?

(b) Will the implementation support organization-wide consent, or authorization per individual user?

(c) Is there a supported interim configuration for centrally managed access that does not require distributing user tokens to developer workstations?

(d) Is there an early access or beta program for this capability?

We would much rather wait for a native, supported integration than put our own authentication layer in front of your endpoint, so even a rough timeline would help us plan.

Hi @platzhersh and @davidb537,
Thank you for this feedback and sorry for the late answer.

For the exact questions,
(a) OAuth for our MCP server with SonarQube Cloud will come very soon. I can’t give an exact date but we are currently in the implementation phase. We hope also to work on SonarQube Server next.

(b) Consent will be by individual users

(c) No

(d) I think it will get directly to production but if we could test it earlier with you I’ll keep you in the loop.

Best regards,
Farah.

I was a bit confused by the docs: Sign in with OAuth suggests this works today with https://api.sonarcloud.io/mcp, but I can’t get it to work from Claude Code. The server doesn’t advertise an authorization server: www-authenticate is just Bearer realm="MCP Server" (no resource_metadata), and /.well-known/oauth-protected-resource returns 403 {"message":"Forbidden"}, both on api.sonarcloud.io and api.sonarqube.us. Claude Code then falls back to dynamic client registration on /register, which also returns 403.

Is 1.30 not rolled out to the hosted server yet, or am I missing a step?

Hello @bouke, sorry, we have a bit of delay on this. We’re still validating the deployment on the Cloud side. OAuth should become available during the week with SonarQube Cloud.

Hello, thank you for your patience. We have finally released OAuth for our MCP on SonarQube Cloud, you can read more about it in our Community announcement: SonarQube MCP server 1.31 - OAuth for hosted MCP on SonarQube Cloud & architecture tools

We are currently working on bringing this capability to SonarQube Server, although we can’t yet provide a release date for it.