# GitLab MCP Server vs Sourcegraph MCP Server (slim)

> GitLab scores 67.3 (B) to Sourcegraph's 61.5 (C) for code repositories. Prices, MCP, x402, uptime and agent notes side by side.

- Full: https://www.anchorterminal.com/compare/gitlab-mcp-vs-sourcegraph-mcp.md (~4,600 tokens) · this version ~2,730 tokens · JSON https://www.anchorterminal.com/compare/gitlab-mcp-vs-sourcegraph-mcp.json · canonical https://www.anchorterminal.com/compare/gitlab-mcp-vs-sourcegraph-mcp
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-11-07
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

GitLab MCP Server scores 67.3 (B) on agent readiness against Sourcegraph MCP Server's 61.5 (C), and leads in 5 of 7 scored categories. Sourcegraph MCP Server leads on agent ergonomics and security & auth. Both do code repositories.

- GitLab MCP Server: B 67.3, rank #334 of 1486 · https://www.anchorterminal.com/tools/gitlab-mcp.min.md
- Sourcegraph MCP Server: C 61.5, rank #608 of 1486 · https://www.anchorterminal.com/tools/sourcegraph-mcp.min.md
- GitLab MCP Server, good for Agents working in GitLab projects, merge requests and pipelines, including self-managed instances. github-mcp-server and azure-devops-mcp are the closest listings; teams on GitHub should use GitHub's server. Ahead on Schema & documentation, 85 against 71; Payments & pricing, 30 against 15; Transparency & trust, 87 against 78. Also A hosted endpoint, with nothing to install; No incidents deducted, where Sourcegraph MCP Server loses 3 points for them.
- Sourcegraph MCP Server, good for A company that already runs Sourcegraph and wants agents to search and navigate many repositories with compiler-accurate definitions and references. Ahead on Agent ergonomics, 72 against 66; Security & auth, 76 against 66.

| Category | GitLab MCP Server | Sourcegraph MCP Server |
| --- | --- | --- |
| Reliability (16%) | 62 | 60 |
| Performance (10%) | pending | pending |
| Schema & documentation (13%) | 85 | 71 |
| Agent ergonomics (13%) | 66 | 72 |
| Security & auth (14%) | 66 | 76 |
| Payments & pricing (10%) | 30 | 15 |
| Task success (10%) | pending | pending |
| Maintenance & community (7%) | 85 | 83 |
| Transparency & trust (7%) | 87 | 78 |

| Fact (where they differ) | GitLab MCP Server | Sourcegraph MCP Server |
| --- | --- | --- |
| Vendor | GitLab Inc. | Sourcegraph, Inc. |
| Hosted endpoint | `https://gitlab.com/api/v4/mcp` | no (local only) |
| Auth | OAuth | OAuth or key |
| Pricing | Freemium | Paid |
| Licence | none | Proprietary. The server is part of the Sourcegraph Enterprise product under the Sourcegraph Terms of Service |
| Tools exposed | 47 | 16 |
| Read-only variant documented | no | yes |
| llms.txt | yes | no |
| MCP registry | `com.gitlab/mcp` | `io.github.sourcegraph/mcp` |
| Last release | 2026-10-15 | 2026-10-14 |
| Terms last updated | no date given | 2026-07-22 |
| Privacy policy last updated | 2026-04-23 | 2026-06-12 |
| Customer content may train models | not found in the text | yes, with an opt-out |
| Arbitration or class-action waiver | not found in the text | yes |

Why the edge:
- Payments & pricing, GitLab MCP Server +15: GitLab MCP Server 30 (No x402, MPP or L402 (0). Plan prices are public for Free and Premium, Ultimate is by quote and GitLab Credits are $1 each, but the MCP server has no per-call price (10). GitLab.com Free needs no card, and the MCP server is on every tier (20). A person signs up, and an administrator must enable MCP and a user must authorise in a browser (0). 0 + 10 + 20 + 0 = 30.); Sourcegraph MCP Server 15 (No x402, MPP or L402 (0). The pricing page publishes a starting figure, a $16K minimum annual contract, with no per-user or per-call price and a contact-sales button, so half of the plan-pricing credit (5). A free Sourcegraph Cloud trial exists by request, with eligibility reviewed and a wait of up to an hour in business hours. No card is mentioned, so half credit (10). An agent cannot gain access alone. A company needs a contract or an approved trial, and a user approves OAuth in a browser (0).)
- Schema & documentation, GitLab MCP Server +14: GitLab MCP Server 85 (The tools reference documents every parameter with its type, required flag and enum values, and the server exposes JSON Schema through MCP; we read the reference, not the source (22). docs.gitlab.com/llms.txt is served (10). Each tool says what it does, and superseded tools name their replacement (`Use get_merge_request with include: commits`), though few say when not to use one (14). Enums for include facets, states, scopes and methods, with documented maximums such as first up to 100 and byte_limit up to 1 MB (13). The docs cover 403 insufficient_scope, 400 for an unknown toolset, 429 headers and troubleshooting for Windows and Claude Code, but give few example responses (11). Per-tool version history and monthly release notes (15). 22 + 10 + 14 + 13 + 11 + 15 = 85.); Sourcegraph MCP Server 71 (The docs list each tool's parameters with required and optional marks, defaults and maximums. We could not read the tool definitions themselves, because every endpoint needs an Enterprise instance, so the machine-readable contract earns partial credit (15). /llms.txt and /docs/llms.txt return 404, but every docs page is served as Markdown at its URL plus .md (10). Tool entries state use cases, `code_finder` has best practices and a contrast with `deepsearch`, and a matrix shows which endpoint carries which tool (14). Required fields, defaults and bounds are documented, while search filters travel inside one query string and `evaluator` takes a free Lua script (9). `list_refs` has JSON examples and the authentication page has a troubleshooting table for `invalid_scope`, 401, 403 and 404, with no catalogue of tool errors (8). Versioned releases with dated MCP entries in the changelog (15).)
- Security & auth, Sourcegraph MCP Server +10: GitLab MCP Server 66 (OAuth with dynamic registration and a single `mcp` scope that carries the user's own GitLab permissions, or fine-grained personal access tokens scoped to the MCP tool resource. The docs say GitLab doesn't verify which client uses a client ID and that REST-created apps don't enforce PKCE (22). Toolset and tool headers narrow the surface, an administrator must enable MCP for the group or instance, 19.4 governance defaults writes to Always Ask in Duo settings and 19.6 adds group rules enforced for every client, in beta (16). The docs leave prompt injection to the user ("use MCP tools only on GitLab objects you trust") (5). GitLab audit events exist on paid tiers, but we didn't read whether MCP calls are recorded (8). security.txt is valid until 31 January 2027 and points at a public HackerOne programme; certifications weren't read this run (15). 22 + 16 + 5 + 8 + 15 = 66.); Sourcegraph MCP Server 76 (OAuth 2.0 with PKCE, dynamic client registration held to the `mcp` scope, one-hour access tokens, a revocation endpoint and bearer tokens in the header only. Access tokens can also carry the `mcp` scope and default to a 90-day expiry (30). Every documented tool reads, repository permissions apply to each call, and admins can gate MCP by RBAC role or disable single tools. There is no per-repository grant narrower than the user's own access (18). The tools return repository content, which is untrusted input. The consent screen warns that the `mcp` scope grants read access to private code, and no prompt-injection guidance was found (4). The audit log records access token use, repository access and API requests as structured logs for a SIEM. No MCP-specific call log is documented (9). SOC 2 and ISO/IEC 27001:2022 on the security portal, annual third-party penetration tests, CVE fixes named in release notes and an invite-only HackerOne programme reached through security@sourcegraph.com. security.txt returned 404 again on 4 November 2026 (15).)
- Transparency & trust, GitLab MCP Server +9: GitLab MCP Server 87 (GitLab's code is public in gitlab-org/gitlab, with the core under MIT and enterprise functions under GitLab's own licence; we didn't establish which licence covers the MCP server code (20). The privacy statement and a sub-processor page of 63 entries name AI providers and their purposes, but that page shows no update date and links no DPA (20). A dated deprecations and removals page and per-tool version history, with superseded tools kept as callable aliases (20). Sub-processors and their locations are disclosed, and Dedicated customers choose their AWS region (18). 20 + 20 + 20 + 18 = 78.); Sourcegraph MCP Server 78 (Closed source under the Sourcegraph Terms of Service, last modified 22 July 2026, with supplemental terms listed in one index (15). The terms, the DPA, the security page and the privacy policy describe data handling. Cloud logs are kept up to 365 days, partner LLMs keep inputs only for abuse detection, and the privacy policy excludes customer code, which falls under the customer agreement. No retention period for code or search queries on Cloud was found (22). The current and previous major versions are supported, and release notes date removals such as the end of GitHub Enterprise Server 3.3 support, but no deprecation policy with a notice period for MCP tools was found (10). Sub-processors are listed with locations and purposes, last modified 21 August 2026, with email notice of changes, and instance telemetry is documented (18).)
- Agent ergonomics, Sourcegraph MCP Server +6: GitLab MCP Server 66 (About 47 tools by default, plus 5 Duo tools where Duo is on, so more than 30 (5), with toolset and single-tool headers to cut the list (plus 10). Cursor pagination with first and after on most list tools, include facets one at a time, byte offsets and limits on files, jobs and artifacts (20). Documented error cases and a structured rate_limited result (15). The docs don't say whether tools carry readOnlyHint or destructiveHint; accept_merge_request has a SHA guard, and 19.4 governance sets write and delete tools to Always Ask for Duo (8). Sensible default toolsets, but no official SDKs for the REST API in two languages were found on the pages read (8). 15 + 20 + 15 + 8 + 8 = 66.); Sourcegraph MCP Server 72 (Sixteen documented tools on /.api/mcp/all, nine on the default endpoint and two on /.api/mcp/deepsearch, and admins can remove tools with `mcp.tools.disabled`. Definition sizes are unread (23). Result limits on every list and search tool, an `after` cursor on `compare_revisions`, `count` on searches and line ranges on `read_file` (17). Search tools report incomplete results with retry advice per the 8.0.0 notes, and 8.1.0 (14 October 2026) reports timeouts as errors and query-planning failures as invalid-argument errors rather than server errors, and HTTP 401, 403 and 404 causes are documented, but no tool error list was found (10). No tool writes to a repository, so repeating a call is safe. `deepsearch` creates a conversation each time, and we could not read the readOnlyHint or destructiveHint annotations (10). Most tools need one to three parameters with stated defaults. There is no SDK to count, as the surface is MCP only (12).)
