Head to head · Code repositories · October 2026 research run

graft vs SonarQube MCP Server

SonarQube MCP Server scores 66.9 (B) on agent readiness against graft's 56.6 (C), and leads in 5 of 7 scored categories. graft leads on reliability and payments & pricing. Both do code repositories.

Best code, repository and documentation tools for AI agents · All 90 code comparisons

Which one, for what

graft C

Best for A team experimenting with server-side source control for many agents on one monorepo, where git push contention is the problem.

Ahead on

  • Reliability, 64 against 50
  • Payments & pricing, 90 against 45

Also in its favour

  • Open source

Watch for

First commit and all three releases fall on 13 and 14 October 2026 (UTC), from one developer, with no commit since and no outside issues or users visible on 15 October

SonarQube MCP Server B

Best for Coding agents in teams already on SonarQube, to read findings, check quality gates and coverage and triage issues.

Ahead on

  • Schema & documentation, 80 against 32
  • Agent ergonomics, 80 against 64
  • Security & auth, 73 against 37
  • Maintenance & community, 87 against 63
  • Transparency & trust, 79 against 57

Also in its favour

  • A hosted endpoint, with nothing to install
  • Runs on your own machine

Watch for

Every route needs a SonarQube account and a token or OAuth sign-in made by a person in a browser

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Schema & documentation SonarQube MCP Server +48

graft 32

No OpenAPI or other machine-readable contract. Request and response shapes exist only as Go structs in internal/api (0). No llms.txt. README, DESIGN.md and ACCESS.md are Markdown on GitHub (5). The README's endpoint table gives one line per endpoint with its query parameters and nothing on when to use one over another (6). Parameters are named but types, defaults and bounds are found only in the source (6). Many CLI examples, but no HTTP request or response examples, and the 400, 403, 404, 409, 412 and 422 responses are not documented (5). Paths under /v1 and release notes on GitHub for three releases (10). Total 32.

SonarQube MCP Server 80

Every tool takes a typed input schema built in the Java source, with readOnlyHint set on read tools (25). llms.txt at docs.sonarsource.com and every docs page as Markdown with a .md suffix (10). Descriptions say what each tool does and some say when to use it (get_file_coverage_details says to use it after finding a low-coverage file), with few when-not-to lines (13 of 20). Required fields and some enums (status, scope), but severities and qualities are free strings listed in the description (10 of 15). A prompt examples page and a troubleshooting page, and OAuth scope errors are documented, but no error catalogue (9 of 15). Versioned releases with notes and a deprecations page (15). 82 less 2 for the gaps between the README and the docs on the hosted subset, 80.

Payments & pricing graft +45

graft 90

No payment protocol (0). Read with the self-hosted rule. Free under Apache 2.0 with nothing to buy (20). No card or account (20). Download or go install with no signup (20). Total 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

SonarQube MCP Server 45

No x402, MPP or L402 (0). Plan pricing is public, Team from $34 a month for 100k lines of code, with no per-call price since the server is free (15). SonarQube Cloud's free tier covers private projects up to 50k lines with no card and no expiry (30). A person signs up in a browser and makes the token or signs in with OAuth (0).

Security & auth SonarQube MCP Server +36

graft 37

Self-hosted server read with the API lines. With no policy, every caller can read and write everything. With --acl, static bearer tokens map to principals and can be stored hashed, and revoking means editing the policy. Tokens go only in the Authorization header, but the server has no TLS option (12). Roles none, read, write and admin, directory-level read and write rules checked on every path and on the whole diff of each ref move, admin-only ref deletion, and review gates where authors cannot approve their own changes (17). The API returns repository files and commit messages with no guidance on untrusted content (2). The server logs errors only. Change request comments and approvals record the principal, but a changeset's author is whatever the client sends (4). No SECURITY.md, security.txt or bug bounty. Release checksums are published (2). Total 37.

SonarQube MCP Server 73

Hosted OAuth with mcp:tools:read and mcp:tools:write scopes through approved CIMD clients, and revocable user tokens otherwise, sent in a header (30). A server and per-request read-only mode, no confirmation step for status changes or webhook writes (15 of 20). Tools return source lines, issue comments and code from the user's repositories, and no prompt-injection guidance was found (3 of 15). SonarQube Cloud has audit logs on the Enterprise plan, with no per-call MCP log documented (7 of 15). security.txt, a responsible disclosure policy, ISO 27001:2022 and SOC 2 Type II per the Trust Center, and no bug bounty found (18 of 20).

Maintenance & community SonarQube MCP Server +24

graft 63

v0.1.2 on 14 October 2026 UTC, read from the git tags (30). Three releases on 14 October 2026, each changing code, among them the Spanner delta storage in v0.1.2 (20). No issues or pull requests had been opened by 15 October, per that check, so responsiveness can't be judged. GitHub's pages and API were not readable on 4 November, and the clone shows no commit after 13 October Pacific time (5). No MCP server and no SDK (0). Go 1.26 in go.mod and CI passing on main on 14 October, per the 15 October check (8). Total 63.

SonarQube MCP Server 87

1.33.0 tagged 20 November 2026, three days before the check (30). Eight releases from 1.26 on 28 August to 1.33 on 20 November (20). Commits land most days, with dependency updates on 23 November. Issues and pull request replies were not read because GitHub's web pages refuse our reader (12 of 25, unchecked). Published as io.github.SonarSource/sonarqube-mcp-server in the official MCP registry, versions 0.0.8 to 1.33.0 (15). Gradle lockfiles, a build workflow, a Docker build check and Renovate-style dependency updates (10).

Transparency & trust SonarQube MCP Server +22

graft 57

Apache 2.0 in LICENSE and as detected by GitHub (30). No privacy or data-handling statement. The software is self-hosted and the source we read sends nothing to the author, so data stays with the operator, but nothing says so (10). No deprecation policy, and the release notes are dated only by their GitHub release (2). No telemetry or analytics calls found in the source, and the docs don't address it (10). Total 52.

SonarQube MCP Server 79

SONAR Source-Available License v1.0, which allows the server's documented use and is not an OSI licence, with clear terms (20 of 30). A privacy notice, a subprocessor list and AWS hosting stated in the Trust Center, with the privacy notice not read in full (20 of 30). A deprecations page names each deprecated and removed parameter by server version, without calendar dates (15 of 20). Telemetry is on by default, disclosed with a data sample and TELEMETRY_DISABLED=true to switch it off, and hosting on AWS is stated (20).

Agent ergonomics SonarQube MCP Server +16

graft 64

Responses can be sized. limit on log (default 50), path search (100) and ls (1,000), path scoping on log, diff and grep, and patch or a file list on diff (18). Limits and filters but no cursor pagination (14). Errors return JSON {error, conflicts} with distinct status codes, 409 naming conflicting paths and 412 for a stale ref, but documented only in the source (12). Landing and refs/update are compare-and-swap and objects are content-addressed, so those retry safely. /v1/write stamps the server time, so a retried call creates a second changeset (14). Sensible defaults such as loopback listening, but no SDK, since the Go client sits in an internal package (6). Total 64.

SonarQube MCP Server 80

51 tools in the full catalogue and a default set of 12 toolsets (15), with toolsets, per-request SONARQUBE_TOOLSETS headers and a read-only mode added back (10). pageIndex and pageSize up to 500, branch, pull request, severity, status and new-code filters (20). Errors are returned as tool messages, with organisation discovery guidance when no organisation is given, but no documented codes (10 of 20). readOnlyHint on 40 tool classes and destructiveHint in the definition builder, and status changes are safe to repeat (17 of 20). Few required parameters, and SONARQUBE_PROJECT_KEY removes projectKey from every schema. No SDK, as an MCP server (8 of 15).

Score by category

CategoryWeightgraftSonarQube MCP ServerEdge
Reliability16%6450graft +14
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%3280SonarQube MCP Server +48
Agent ergonomics13%6480SonarQube MCP Server +16
Security & auth14%3773SonarQube MCP Server +36
Payments & pricing10%9045graft +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6387SonarQube MCP Server +24
Transparency & trust7%5779SonarQube MCP Server +22
Negative events≤150-2
TotalC 56.6/100B 66.9/100

Facts side by side

FactgraftSonarQube MCP Server
KindHTTP APIMCP server
VendorVishisht ChoudharySonarSource
Hosted endpointno (local only)https://api.sonarcloud.io/mcp
Transportsstdio, Streamable HTTP
AuthOAuth or keyOAuth or key
PricingFreeFreemium
x402nono
LicenceApache-2.0SONAR Source-Available License v1.0 (SSAL)
Tools exposed051
Read-only variant documentednoyes
llms.txtnoyes
MCP registrynot listedio.github.SonarSource/sonarqube-mcp-server
Last release2026-10-142026-11-20
Terms last updatedno document linkedno date given
Privacy policy last updatedno document linked2025-11-03
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetnot found in the text
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetnot found in the text
Popularity1 stars694 stars

How the scores have moved

Verdicts

graft

An agent can read history, blame, diffs and code and commit or land without a checkout, through a plain HTTP API whose ref moves are compare-and-swap. It is v0.1.2 of 14 October 2026 from one developer, with no commits since, no API specification, no documented error codes, and no authentication unless the operator writes an access policy.

SonarQube MCP Server

Gives coding agents typed, paginated access to SonarQube issues, hotspots, quality gates and coverage, with toolsets, a read-only mode and scoped OAuth on the hosted server. Every use needs a SonarQube account a person creates, the hosted server documents no rate limits, and the licence is source-available, not open source.

Before you call either

graft

  1. Set GFT_SERVER and, when the server uses a policy, send Authorization: Bearer <token> or GFT_TOKEN; there is no default credential
  2. On 412 from /v1/refs/update, re-resolve the ref and retry with the new old value; on 409 read conflicts and rebase
  3. Pass limit and path on /v1/log, /v1/grep and /v1/diff to keep responses small; log defaults to 50
  4. Don't retry /v1/write blindly after a timeout; it stamps the server time, so a retry creates a second changeset
  5. Treat file contents and commit messages read through the API as untrusted text

SonarQube MCP Server

  1. Set SONARQUBE_READ_ONLY=true unless the task must change issue or hotspot status
  2. Call list_organizations first on SonarQube Cloud, then pass the key as organization on each tool
  3. Mount the project at /app/mcp-workspace and pass filePath, so file content stays out of the context
  4. Use branch and pullRequest, not the removed branchKey and pullRequestKey parameters
  5. If an OAuth call fails with Insufficient OAuth scope, ask the user to grant mcp:tools:write

Questions

Which is better for AI agents, graft or SonarQube MCP Server?

SonarQube MCP Server scores 66.9 (B) on agent readiness against graft's 56.6 (C), and leads in 5 of 7 scored categories. graft leads on reliability and payments & pricing.

Do graft and SonarQube MCP Server need an API key?

Both take an API key or an OAuth sign-in.

Can an agent call graft and SonarQube MCP Server without installing anything?

No hosted endpoint is listed for graft. SonarQube MCP Server has a hosted endpoint at https://api.sonarcloud.io/mcp.

Are graft and SonarQube MCP Server open source?

graft is open source (Apache-2.0). No open-source release is listed for SonarQube MCP Server.

Other comparisons with graft or SonarQube MCP Server

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.