Short answer: at the commit we checked, modelcontextprotocol/git scores 90/100 (grade A): 14 of 14 tools carry an MCP safety hint, 0 of 0 destructive-like tools say they change things, and its README has at least one launch line with no pinned version. This is a hygiene grade, not a security audit.
What we checked
| Repository | modelcontextprotocol/servers (folder src/git) · NOASSERTION · Python · about 92,272 GitHub stars |
|---|---|
| Commit checked | e1dc4b1, scanned 14–15 Nov 2026, hand-checked 17 Nov 2026. The repository has had 86 commits since then (as of 26 Nov 2026), so the current code may score differently. |
| Tools the server registers | 14 |
| Tools with any MCP safety hint | 14 of 14 |
| Destructive-like tools (delete, write, run, execute…) | 0, of which 0 carry a hint |
| README install line | has at least one launch line with no pinned version |
| Config findings | none |
How the score adds up
| Start | 100 |
|---|---|
| README tells you to launch it without a pinned version | −10 |
| Score | 90 / 100 → grade A |
Rules in full: methodology. A–F: A 90+, B 80–89, C 70–79, D 60–69, F below 60.
Evidence from the code
- How tools are registered: @server.tool(name=GitTools.X.value, ...) decorators in src/mcp_server_git/server.py (14); names from the GitTools enum
- How safety hints are set: shared constant READ_ONLY and helper writes(destructive=..., idempotent=...) passed as decorator arg annotations=
src/mcp_server_git/server.py:65-80 GitTools enum: git_status, git_diff_unstaged, git_diff_staged, git_diff, git_commit, git_add, git_reset, git_log, git_create_branch, git_checkout, git_merge, git_show, git_branch, git_remotesrc/mcp_server_git/server.py:1067 READ_ONLY = ToolAnnotations(read_only_hint=True, destructive_hint=False, ...)src/mcp_server_git/server.py:1075 writes() returns ToolAnnotations(read_only_hint=False, destructive_hint=destructive, ...)src/mcp_server_git/server.py:1258-1480 14 @server.tool decorators, each with annotations=READ_ONLY or annotations=writes(...)src/mcp_server_git/server.py:1224,1235 @server.prompt entries are prompts, not counted
Using it more safely
- Pin the version in your MCP config (
package@1.2.3orpackage==1.2.3, never@latest), so an update can't change what runs without you knowing. - Give it the least access it needs: a scoped token or a test account, not your admin credentials, and only the folders or projects the task needs.
- Check your own config for unpinned servers, broad folders and hard-coded tokens with the free MCP config checker (runs in your browser).
Shipping an AI agent that uses MCP servers and facing a security review? See how to answer the MCP question, or get your agent reviewed.
Compare with similar servers
Category: Developer tools & coding agents MCP servers (all grades side by side, plus the safer setup for this kind of server).
- zzet/gortex grade A
- modelcontextprotocol/everything grade A
- sooperset/mcp-atlassian grade A
- microsoft/azure-devops-mcp grade A
- Pimzino/spec-workflow-mcp grade B
- Jpisnice/shadcn-ui-mcp-server grade B
For the maintainers
Add the badge to your README (it links back to this page, and updates when we re-check):
[](https://aireviewready.in/mcp/servers/modelcontextprotocol-server-git/)
Fixed something, or think we got it wrong? Ask for a re-check and name the commit. We reply within 7 days. Code-level security issues are never published here; they're reported privately first.