git-mcp-server
Verified Safeby surajfale
Overview
Automates conventional Git commits, changelog updates, and optional pushes, primarily for AI assistants to generate commit messages based on code changes.
Installation
git-commit-mcpEnvironment Variables
- OPENAI_API_KEY
- ENABLE_AI
- AI_MODEL
- FORCE_SSH_ONLY
- LOG_LEVEL
- AI_PROVIDER
- AI_TEMPERATURE
- AI_MAX_TOKENS
- AI_TIMEOUT_SECONDS
- AI_BASE_URL
- DEFAULT_REPO_PATH
- MAX_BULLET_POINTS
- MAX_SUMMARY_LINES
- CHANGELOG_FILE
- WORKSPACE_DIR
- GIT_SSH_KEY_PATH
- GIT_USERNAME
- GIT_TOKEN
Security Notes
The server's Git operations disable SSH host key checking (`StrictHostKeyChecking=no`, `UserKnownHostsFile=/dev/null`), which makes it vulnerable to Man-in-the-Middle (MITM) attacks if the remote Git server is compromised or spoofed. Sensitive credentials like `OPENAI_API_KEY` and Git authentication details are loaded from environment variables, which is a good practice, but still requires secure management by the user. The `RepositoryManager` creates temporary workspaces for cloning remote repositories and performs file system operations (`shutil.rmtree`) within its designated `workspace_dir`.
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-server-for-Github
Provides comprehensive GitHub workflow automation for AI-powered development teams, including Actions monitoring, advanced PR management, intelligent code search, and complete file management.
logicstamp-mcp
Provides AI assistants with structured access to React/TypeScript codebases through LogicStamp Context's analysis engine, enabling safe analysis, modification, and verification of code.