Skip to content

Best Git and code hosting MCP servers compared: what each can reach

3 Git and code hosting MCP servers compared by who maintains them, how they sign in, what they can write and what can’t be undone.

MCP servers for hosting repositories, reviewing pull requests and searching code across a team’s repositories. This page compares 3 of them. Every figure comes from the record on that server’s page, checked against the vendor’s or repository’s own documentation, and nothing is added from outside it. Records were checked up to November 25, 2026.

Which Git and code hosting MCP server should you use

There is no single answer, so the table lists every server and the labels below name each one that passes a stated test. No server is ranked overall, and a community server can fit a job that an official one doesn’t.

Compare them

ServerMaintained byRunsSigns in withRead-only or scopingWrite toolsCan’t be undone
BitbucketOfficialRemoteOAuthScopes, Other limits112
ForgejoCommunityLocalTokenOther limits5341
SourcegraphOfficialRemoteOAuthScopes, Other limits00

How to read it. Maintained by is the first implementation on the server’s page. Read-only or scoping names a documented read-only control, documented scopes, or other documented limits. Write tools and Can’t be undone count the tools the documentation names, as listed on each page. A server whose tools take an action parameter can do more than its count suggests, so open its page before you rely on a number.

Best for

Each label is a test over the table above. A label lists every server that passes it, in A to Z order, and is not a score.

  • Fewest tools that can’t be undone. Sourcegraph. Test: the lowest count of tools listed as unable to be undone (0 here).
  • Read tools only. Sourcegraph. Test: its documented tool list has no write tools and no tools that can’t be undone.
  • Official and remote with OAuth. Bitbucket, Sourcegraph. Test: run by the vendor, offered as a hosted endpoint, and signs in with OAuth.
  • Runs only on your machine. Forgejo. Test: no hosted endpoint is documented, so requests go through a process you run.

How to choose

  1. Check who maintains it. 2 of the 3 servers here are run by the vendor and 1 are community projects. None is marked archived or deprecated.
  2. Check where it runs. 2 servers offer a hosted endpoint and 1 run only as a process on your machine.
  3. Check whose rights it uses. Each server’s page says whether it acts with your own account, an API key or a token, and what that credential can reach. Prefer the narrowest credential the server accepts.
  4. Count the tools that can’t be undone. Here the count runs from 0 to 41. These are the tools to deny, or to set to ask, before an agent uses the server.
  5. Turn on any limit the server offers. Use a read-only option when you only need to look, and scopes when the vendor documents them.

Limit them in Claude Code and Codex

Each server’s page generates the Claude Code permission rules and the Codex configuration from its documented tool names, so a rule never names a tool that doesn’t exist. Start from the page of the server you pick: Bitbucket, Forgejo, Sourcegraph.

1 more server in this category has a record that doesn’t list tool names yet, so it isn’t compared here.

All MCP servers · How to vet any MCP server