git-mcp-server
Verified Safeby bkbatchelor
Overview
A Model Context Protocol (MCP) server for Git, enabling AI agents to interact with repositories safely and efficiently.
Installation
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.jarSecurity 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
git-mcp-server
A Model Context Protocol (MCP) server that provides Git-specific tools and resources for AI/LLM agents to interact with version control systems.
tinystruct-mcp
A modular Java server providing a JSON-RPC interface for file system and Git/GitHub operations, aimed at automation and DevOps workflows.
MCP-Client-Host-Java
An MCP (Model Context Protocol) client that acts as a server to the MCP host, managing connections to various external MCP servers (tools) and orchestrating tool discovery and execution for AI assistants.
poly-git-mcp
Provides Model Context Protocol (MCP) tools for AI assistants to manage Git repositories, issues, pull requests, and CI/CD across GitHub, GitLab, Gitea, and Bitbucket platforms.