Back to Home
bkbatchelor icon

git-mcp-server

Verified Safe

by bkbatchelor

Overview

A Model Context Protocol (MCP) server for Git, enabling AI agents to interact with repositories safely and efficiently.

Installation

Run Command
java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xms32m -Xmx128m -Dspring.main.lazy-initialization=false -Dspring.backgroundpreinitializer.ignore=true -jar build/libs/git-mcp-server-0.0.1-SNAPSHOT.jar

Security Notes

The server communicates via standard input/output (Stdio), which inherently reduces network attack surface compared to a network-exposed service. Git operations are handled by JGit, a pure Java library, which mitigates shell injection risks associated with direct native CLI execution via `ProcessBuilder` (an earlier approach that was refactored out). No hardcoded sensitive credentials were found in the provided source code. The responsibility for implementing user confirmation on potentially destructive write operations is external to the server, typically handled by the MCP client or the overall AI agent workflow, rather than within the server itself.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens200
Stars0
Forks0
Last Update2026-01-19

Tags

GitMCPAI AgentsVersion ControlJava