1. Conduid
  2. Cloud
  3. Sonar MCP Server
MCP server · Cloud

Sonar MCP Server

A MCP server implementation for the SonarQube Cloud API in Golang.

Unclaimed MIT last commit a year ago cloud
54Fair

Scored 8 days ago · breakdown

About Sonar MCP Server

Sonar MCP Server is an MCP server published by lreimer in the Cloud category: a MCP server implementation for the SonarQube Cloud API in Golang.

The repository has 2 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/lreimer/sonar-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Sonar MCP Server

Powered by Claude · Grounded in docs

I know everything about Sonar MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 22 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.10.0v0.10.0 · 9 May 2025Changelog e9dde40158352a647fe5210222f2e7b96af5bd58 Removed resource capability. 94a967563c6f4814c61408182bbd247c8486bfe6 Removed SONAR_TOKEN environment variable. 731a07d3b227c7189ad940619f05d9f6d0e9c651 Properly use Git version. Override…
v0.9.0v0.9.0 · 30 Apr 2025Changelog a9f05e6e3e87a1ee4ebea7ca3c19a33f72291e63 Added Hotspots unmarshalling. a0397b5cd1882e51bb783c41c288698fd2cf6b2c Added Hotspots. Simplified other commands. 58f5bd40375621a5738f49fef0320f7e0bb2caa3 Added README sections.…

README

Sonar MVP Server

An MCP server implementation for the SonarQube Cloud API in Golang.

Build and Release

# to quickly build the latest snapshot
goreleaser build --snapshot --clean
goreleaser release --skip=publish --snapshot --clean

Usage Instructions

If you want to use the tool locally, e.g. with Claude Desktop, use the following configuration for the MCP server.

{
    "mcpServers": {
      "sonar": {
        "command": "/Users/mario-leander.reimer/Applications/sonar-mcp-server",
        "args": ["-t", "stdio"],
        "env": {
          "SONAR_TOKEN": "<<INSERT TOKEN HERE>>"
        }
      }
    }
}

Alternatively, you can use the MCP introspector for easy local development:

# as stdio binary
npx @modelcontextprotocol/inspector go run main.go

# as SSE server using 
go run main.go --transport sse
npx @modelcontextprotocol/inspector npx mcp-remote@next http://localhost:8080/sse
npx @modelcontextprotocol/inspector

Deployment

Currently using manual Google Cloud Run deployment. Can either be deployed directly from source or using the Docker image built on Github.

# create a new secret for the SONAR_TOKEN
gcloud services enable secretmanager.googleapis.com
print $SONAR_TOKEN | gcloud secrets create sonar-token --data-file=-

# next deploy the local build from source to Cloud Run
gcloud services enable run.googleapis.com cloudbuild.googleapis.com artifactregistry.googleapis.com

gcloud secrets add-iam-policy-binding sonar-token \
  --member=serviceAccount:343509396461-compute@developer.gserviceaccount.com \
  --role=roles/secretmanager.secretAccessor

gcloud run deploy sonar-mcp-server --source=. \
  --region=europe-north1 \
  --port=8080 --allow-unauthenticated \
  --set-secrets=SONAR_TOKEN=sonar-token:latest \
  --set-env-vars=BASE_URL=https://sonar-mcp-server-343509396461.europe-north1.run.app

gcloud run services delete sonar-mcp-server --async --region=europe-north1

Maintainer

M.-Leander Reimer (@lreimer), mario-leander.reimer@qaware.de

License

This software is provided under the MIT open source license, read the LICENSE file for details.

README fetched from the repository 22 hours ago. The original is authoritative.

Questions

About Sonar MCP Server

How do I install Sonar MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Sonar MCP Server safe to use with an AI agent?

Its trust score is 54 out of 100 (fair). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Sonar MCP Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.