MCP server
by kjozsa
Create a local git repo easily with Git MCP: manage repositories, handle tags, and refresh repos without shell access.
Manages Git repositories through MCP operations like listing repos, handling tags, and viewing commit history without requiring direct shell access.
Git is a community-built MCP server published by kjozsa that provides AI assistants with tools and capabilities via the Model Context Protocol. Create a local git repo easily with Git MCP: manage repositories, handle tags, and refresh repos without shell access. It is categorized under developer tools.
You can install Git in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
MIT
Git is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Add new capabilities to Claude beyond text generation
Example
Access external data sources, execute code, interact with tools and services
Transform Claude from chatbot to action-taking agent
Provide Claude with access to relevant context and data
Example
Load project documentation, access knowledge bases, query databases
Get more accurate, context-aware responses
Automate multi-step workflows combining AI and external tools
Example
Research → Summarize → Create document → Send notification
Complete complex tasks end-to-end without manual steps
Share your MCP server with the developer community
We wired Git into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
Git is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
Useful MCP listing: Git is the kind of server we cite when onboarding engineers to host + tool permissions.
Strong directory entry: Git surfaces stars and publisher context so we could sanity-check maintenance before adopting.
Git is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
Git has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
Useful MCP listing: Git is the kind of server we cite when onboarding engineers to host + tool permissions.
We evaluated Git against two servers with overlapping tools; this profile had the clearer scope statement.
Git reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
Git is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
showing 1-10 of 40
MCP server for managing Git operations on local repositories.
To install Git MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kjozsa/git-mcp --client claude
uvx install git-mcp
Add the MCP server using the following JSON configuration snippet:
{
"mcpServers": {
"git-mcp": {
"command": "uvx",
"args": ["git-mcp"],
"env": {
"GIT_REPOS_PATH": "/path/to/your/git/repositories"
}
}
}
}
GIT_REPOS_PATH: Path to the directory containing your Git repositories (required)You can set this in your environment or create a .env file in the directory where you run the server.
Lists all Git repositories in the configured path.
Finds the last Git tag in the specified repository.
repo_name (Name of the Git repository)version (tag name) and date (tag creation date)Lists commit messages between the last Git tag and HEAD.
repo_name: Name of the Git repositorymax_count (optional): Maximum number of commits to returnhash, author, date, and messageCreates a new git tag in the specified repository.
repo_name: Name of the git repositorytag_name: Name of the tag to createmessage (optional): Message for annotated tag (if not provided, creates a lightweight tag)status, version (tag name), date (tag creation date), and type (annotated or lightweight)Pushes an existing git tag to the default remote repository.
repo_name: Name of the git repositorytag_name: Name of the tag to pushstatus, remote (name of the remote), tag (name of the tag), and message (success message)Refreshes a repository by checking out the main branch (or master as fallback) and pulling from all remotes.
repo_name: Name of the git repositorystatus, repository, branch, and pull_results (results for each remote)GIT_REPOS_PATH is set correctly and the repository exists# Install dependencies
uv pip install -r requirements.txt
# Run in dev mode with Inspector
mcp dev git_mcp/server.py
The project includes two test scripts:
test_git_mcp.py - Tests the underlying Git command functionality directly, without using the MCP server.test_mcp_server.py - Tests the MCP server functionality by starting a server instance and making calls to it.To run the tests:
# Test the Git command functionality
python test_git_mcp.py
# Test the MCP server (requires the git-mcp package to be installed)
python test_mcp_server.py
Prerequisites
Time Estimate
15-60 minutes depending on server complexity
Steps
Troubleshooting
✓ Do
✗ Don't
💡 Pro Tips
Architecture
Model Context Protocol standardizes how AI hosts (Claude, Cursor) communicate with external tools and data sources through server implementations.
Protocols
Compatibility
✓ Use when
Use when you need Claude to access external data, execute actions, or integrate with tools. Best for extending AI capabilities beyond conversation.
✗ Avoid when
Avoid when native integrations exist (use official APIs directly), for real-time critical systems, or when security/compliance requires zero external dependencies.