MCP Git Tools
Git tool integration library for the Model Context Protocol (MCP).
Overview
MCP Git Tools is a Git tool integration library designed for the Model Context Protocol (MCP), enabling seamless interaction with Git repositories through various operations.
To use MCP Git Tools, clone the repository, build it using Cargo, and run it as a standalone server or integrate it into your own MCP server.
git_status: Get the status of a repository. -git_branches: List branch information. -git_log: Retrieve commit history. -git_time_filtered_log: Get commits within a specific time range. -git_commit: Create a new commit. -git_pull: Pull changes from remote. -git_push: Push changes to remote. -git_diff: View file differences.
- Automating Git operations in a server environment.
- Integrating Git functionalities into applications using the MCP framework.
- Managing repository states and histories programmatically.
Add to your AI client
Use these steps to connect MCP Git Tools in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-git-tools-lileeei": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-git-tools-lileeei": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-git-tools-lileeei": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-git-tools-lileeei": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-git-tools-lileeei": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-git-tools-lileeei": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-git-tools-lileeei"
]
}
}
}FAQ
Can MCP Git Tools be used with any Git repository?
Yes! MCP Git Tools can interact with any standard Git repository.
Is there a specific programming language required to use MCP Git Tools?
MCP Git Tools is built in Rust, but it can be integrated with any language that can communicate with the MCP protocol.
How do I report issues or contribute to MCP Git Tools?
You can report issues or contribute by visiting the GitHub repository and following the contribution guidelines.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1877,"uuid":"046b9919-b084-472d-b13c-85442df8e688","name":"mcp-git-tools","title":"MCP Git Tools","description":"Git tool integration library for the Model Context Protocol (MCP).","avatar_url":"https://avatars.githubusercontent.com/u/8947362?v=4","created_at":"2025-03-05T05:50:26.542Z","updated_at":"2025-03-12T10:21:41.378Z","status":"created","author_name":"lileeei","author_avatar_url":"https://avatars.githubusercontent.com/u/8947362?v=4","tags":"git,rust,mcp,mcp-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/lileeei/mcp-git-tools","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Rust\",\"is_official\":false,\"latest_commit_time\":\"2025-03-09 18:17:42\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]