mcp-git
Provides tools for Git repository interaction and automation, including status, commit, branch, diff, and log operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-gitShow me the status of the current repository."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-git - Git MCP Server
A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
MCP Server Usage
This package is designed to be used as an MCP server with clients like Claude Desktop. Here's how to configure it:
Basic Configuration
Add this to your MCP client configuration:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "mcp-git"]
}
}
}Advanced Configuration
For custom settings:
{
"mcpServers": {
"git": {
"command": "npx",
"args": ["-y", "mcp-git"]
}
}
}Installation Options
From Source
Clone this repository
Install dependencies:
bun installBuild:
bun run buildRun:
bun run start
Available Git Tools
The server provides these MCP-accessible Git operations:
Repository Operations
git_status- Show working tree statusgit_init- Initialize new repositorygit_log- View commit history (withmax_countparameter)
Change Management
git_diff_unstaged- View unstaged changesgit_diff_staged- View staged changesgit_diff- Compare with branch/commitgit_add- Stage filesgit_reset- Unstage changesgit_commit- Create commit
Branch Operations
git_create_branch- Create new branchgit_checkout- Switch branches
Content Inspection
git_show- View commit contents
Development
Prerequisites
Bun v1.2.8 or later
Git installed system-wide
Building
bun run buildTesting
bun testContributing
Pull requests are welcome. For major changes, please open an issue first to discuss proposed changes.
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kwanLeeFrmVi/mcp-git'
If you have feedback or need assistance with the MCP directory API, please join our Discord server