# graft vs SonarQube MCP Server

> SonarQube scores 66.9 (B) to graft's 56.6 (C) for code repositories. Prices, MCP, x402, uptime and agent notes side by side.

- Canonical: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp
- Markdown: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp.md (~4,350 tokens)
- Slim: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp.min.md (~1,130 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

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.

- graft: grade C, 56.6/100, rank #994 of 1654. Markdown https://www.anchorterminal.com/tools/graft.md · JSON https://www.anchorterminal.com/api/v1/tools/graft.json
- SonarQube MCP Server: grade B, 66.9/100, rank #498 of 1654. Markdown https://www.anchorterminal.com/tools/sonarqube-mcp.md · JSON https://www.anchorterminal.com/api/v1/tools/sonarqube-mcp.json
- Best code, repository and documentation tools for AI agents: https://www.anchorterminal.com/best/code/index.md
- All 90 code comparisons: https://www.anchorterminal.com/compare/code/index.md

## Which one, for what

### graft (C)

Good 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)

Good 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

### 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

| Category | Weight | graft | SonarQube MCP Server | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 64 | 50 | graft +14 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 32 | 80 | SonarQube MCP Server +48 |
| Agent ergonomics | 13% | 64 | 80 | SonarQube MCP Server +16 |
| Security & auth | 14% | 37 | 73 | SonarQube MCP Server +36 |
| Payments & pricing | 10% | 90 | 45 | graft +45 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 63 | 87 | SonarQube MCP Server +24 |
| Transparency & trust | 7% | 57 | 79 | SonarQube MCP Server +22 |
| Negative events | ≤15 | 0 | -2 | |
| **Total** | | **56.6 · C** | **66.9 · B** | |

## Facts side by side

| Fact | graft | SonarQube MCP Server |
| --- | --- | --- |
| Kind | HTTP API | MCP server |
| Vendor | Vishisht Choudhary | SonarSource |
| Hosted endpoint | no (local only) | `https://api.sonarcloud.io/mcp` |
| Transports |  | stdio, Streamable HTTP |
| Auth | OAuth or key | OAuth or key |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | Apache-2.0 | SONAR Source-Available License v1.0 (SSAL) |
| Tools exposed | 0 | 51 |
| Read-only variant documented | no | yes |
| llms.txt | no | yes |
| MCP registry | not listed | `io.github.SonarSource/sonarqube-mcp-server` |
| Last release | 2026-10-14 | 2026-11-20 |
| Terms last updated | no document linked | no date given |
| Privacy policy last updated | no document linked | 2025-11-03 |
| Customer content may train models | not read yet | not found in the text |
| Terms restrict automated access | not read yet | not found in the text |
| Terms restrict benchmarking | not read yet | not found in the text |
| Terms or service can change without notice | not read yet | not found in the text |
| Arbitration or class-action waiver | not read yet | not found in the text |
| Popularity | 1 stars | 694 stars |

## How the scores have moved

### graft

- +3.7 on 13 November 2026 (D to C): checklist
- +0.4 on 27 October 2026: checklist

### SonarQube MCP Server

No score change since it was listed.

## 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.


## For agents

- This comparison as JSON: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp.json, and with the fewest tokens: https://www.anchorterminal.com/compare/graft-vs-sonarqube-mcp.min.md
- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "graft", "b": "sonarqube-mcp"}`. From a terminal: `anchor compare graft sonarqube-mcp`
- Each listing in full: https://www.anchorterminal.com/api/v1/tools/graft.json and https://www.anchorterminal.com/api/v1/tools/sonarqube-mcp.json

## Other comparisons with graft or SonarQube MCP Server

- [Azure DevOps MCP Server vs graft](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-graft.md)
- [Azure DevOps MCP Server vs SonarQube MCP Server](https://www.anchorterminal.com/compare/azure-devops-mcp-vs-sonarqube-mcp.md)
- [Entire vs graft](https://www.anchorterminal.com/compare/entire-vs-graft.md)
- [Entire vs SonarQube MCP Server](https://www.anchorterminal.com/compare/entire-vs-sonarqube-mcp.md)
- [GitHub MCP Server vs graft](https://www.anchorterminal.com/compare/github-mcp-server-vs-graft.md)
- [GitHub MCP Server vs SonarQube MCP Server](https://www.anchorterminal.com/compare/github-mcp-server-vs-sonarqube-mcp.md)
- [GitLab MCP Server vs graft](https://www.anchorterminal.com/compare/gitlab-mcp-vs-graft.md)
- [GitLab MCP Server vs SonarQube MCP Server](https://www.anchorterminal.com/compare/gitlab-mcp-vs-sonarqube-mcp.md)
- [GitMCP vs graft](https://www.anchorterminal.com/compare/gitmcp-vs-graft.md)
- [GitMCP vs SonarQube MCP Server](https://www.anchorterminal.com/compare/gitmcp-vs-sonarqube-mcp.md)
- [graft vs Snyk MCP Server (Snyk Studio)](https://www.anchorterminal.com/compare/graft-vs-snyk-mcp.md)
- [graft vs TokenEconomizer](https://www.anchorterminal.com/compare/graft-vs-tokeneconomizer.md)
- [Graphify vs SonarQube MCP Server](https://www.anchorterminal.com/compare/graphify-vs-sonarqube-mcp.md)
- [Snyk MCP Server (Snyk Studio) vs SonarQube MCP Server](https://www.anchorterminal.com/compare/snyk-mcp-vs-sonarqube-mcp.md)
- [SonarQube MCP Server vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/sonarqube-mcp-vs-sourcegraph-mcp.md)
- [SonarQube MCP Server vs TokenEconomizer](https://www.anchorterminal.com/compare/sonarqube-mcp-vs-tokeneconomizer.md)
- [Git (MCP reference server) vs graft](https://www.anchorterminal.com/compare/git-reference-server-vs-graft.md)
- [graft vs Graphify](https://www.anchorterminal.com/compare/graft-vs-graphify.md)
- [graft vs Sourcegraph MCP Server](https://www.anchorterminal.com/compare/graft-vs-sourcegraph-mcp.md)
- [graft vs Superpowers](https://www.anchorterminal.com/compare/graft-vs-superpowers.md)
- [Momentic MCP server vs SonarQube MCP Server](https://www.anchorterminal.com/compare/momentic-mcp-vs-sonarqube-mcp.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
