git-mcp-server
Verified Safeby moor-sun
Overview
Provides a FastAPI server to expose local Git repository file system operations and build commands for AI agents or automation systems.
Installation
uvicorn main:app --reload --port 8003Environment Variables
- GIT_LOCAL_REPO
- MAVEN_CMD
Security Notes
The server implements strong path traversal prevention for file access and project paths. Crucially, it validates and whitelists extra arguments passed to build commands, mitigating command injection risks when using `subprocess.run` with `shell=False`. No hardcoded secrets or `eval` usage found. CORS is set to allow all origins, which is acceptable for an internal/local automation tool but would be a vulnerability if exposed publicly without authentication.
Similar Servers
github-mcp-server
The GitHub MCP Server enables AI agents, assistants, and chatbots to interact with GitHub's platform for repository management, issue/PR automation, CI/CD intelligence, code analysis, and team collaboration through natural language.
octocode-mcp
The Octocode Research server enables AI agents to perform expert code forensics and deep-dive research across local filesystems (LSP, ripgrep, file I/O) and external GitHub repositories (code search, repo structure, pull requests, package search). It's optimized for architectural analysis, pattern discovery, and implementation planning.
tinystruct-mcp
A modular Java server providing a JSON-RPC interface for file system and Git/GitHub operations, aimed at automation and DevOps workflows.
github-mcp-server
Comprehensive GitHub workflow automation for AI-powered development teams, including actions monitoring, PR management, intelligent code search, and complete file management.