
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server built on the RMCP SDK that exposes Git operations as tools over stdio.
MCP Git Tools server is cataloged as an MCP server attributed to lileeei. An MCP server built on the RMCP SDK that exposes Git operations as tools over stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Git Tools server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It uses the RMCP stdio transport for standard input/output communication.
Yes, git_log supports an author parameter matching name or email.
Yes, it offers an optional hard reset that discards local changes.
README.md · ce1501a504c8 · Fetched 2026-11-13 12:37:42 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Git tools implementation for the Model Context Protocol (MCP).
This library provides a set of Git operations that can be called through the Model Context Protocol:
git_status - Get the status of a repositorygit_branches - List branch informationgit_log - Get commit history with flexible filtering options (by time, author, branch, count)git_commit - Create a new commitgit_pull - Pull changes from remotegit_push - Push changes to remotegit_diff - View file differencesgit_add - Add file contents to the staging areagit_reset - Reset the staging area or working tree to a specified stategit_worktree_list - List all worktreesgit_worktree_add - Create a new worktreegit_worktree_remove - Remove a worktreegit_worktree_prune - Prune expired worktree files# Clone the repository
git clone https://gitcode.com/lileeei/mcp-git-tools.git
# Navigate to the directory
cd mcp-git-tools
# Build
cargo build --release
cargo run --release --bin mcp-git-server
This starts an MCP server that interacts with clients through standard input/output.
cargo build --release
./target/release/mcp-git-server
/path/to/mcp-git-server/target/release/mcp-git-serverThis project uses the modern RMCP SDK (v0.14.0) with a clean architecture:
GitToolsHandler
ServerHandler trait from RMCP SDKServerHandler Implementation
get_info() - Provides server metadata and capabilitieslist_tools() - Lists all available tools with their schemascall_tool() - Routes tool calls to appropriate handler methodsEach tool is implemented as a method on GitToolsHandler:
impl GitToolsHandler {
#[tool(description = "Get the status of a git repository")]
pub async fn git_status(
&self,
repo_path: String,
) -> Result<CallToolResult> {
// Implementation
}
}
All tool parameters use derive macros for automatic schema generation:
#[derive(serde::Deserialize, schemars::JsonSchema)]
struct GitStatusParams {
repo_path: String,
}
This provides:
Uses RMCP's stdio() transport for standard input/output communication.
Get the status of a repository.
Parameters:
repo_path - Path to the Git repositoryReturns:
{
"status": ["M file1.txt", "?? file2.txt"],
"is_clean": false
}
List all branches.
Parameters:
repo_path - Path to the Git repositoryReturns:
{
"branches": ["* main", "develop", "feature/new-feature"],
"current": "main"
}
Get commit history with flexible filtering options.
Parameters:
repo_path - Path to Git repositorymax_count - (optional) Maximum number of commits to returnbranch - (optional) Branch namesince - (optional) Start date (e.g., "2023-01-01", "1 week ago", "yesterday")until - (optional) End date (e.g., "2023-01-31", "today")author - (optional) Filter by specific author (matches name or email)Returns:
{
"commits": [
{
"hash": "abcd1234",
"author": "User Name",
"author_date": "Mon Aug 1 10:00:00 2023 +0800",
"message_title": "Initial commit"
}
]
}
Examples:
{"repo_path": ".", "max_count": 10}{"repo_path": ".", "since": "1 week ago"}{"repo_path": ".", "author": "John"}{"repo_path": ".", "since": "2023-01-01", "until": "2023-12-31"}Create a new commit.
Parameters:
repo_path - Path to the Git repositorymessage - Commit messageall - (optional) Whether to automatically stage modified filesReturns:
{
"success": true,
"hash": "abcd1234",
"message": "feat: Add new feature",
"output": "[main abcd1234] feat: Add new feature\n 1 file changed, 10 insertions(+), 2 deletions(-)"
}
Pull changes from remote.
Parameters:
repo_path - Path to the Git repositoryremote - (optional) Remote name, defaults to "origin"branch - (optional) Branch nameReturns:
{
"success": true,
"remote": "origin",
"output": "Updating abcd1234..efgh5678\nFast-forward\n file1.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)"
}
Push changes to remote.
Parameters:
repo_path - Path to the Git repositoryremote - (optional) Remote name, defaults to "origin"branch - (optional) Branch nameforce - (optional) Whether to force pushReturns:
{
"success": true,
"remote": "origin",
"output": "To github.com:user/repo.git\n abcd1234..efgh5678 main -> main"
}
View file differences.
Parameters:
repo_path - Path to the Git repositorypath - (optional) Path to file or directorystaged - (optional) Whether to show staged changescommit - (optional) Commit to compare againstReturns:
{
"changes": "diff --git a/file.txt b/file.txt\nindex 1234567..abcdefg 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,4 @@\n Line 1\nLine 2\nLine 3\n+New line\nLine 4"
}
Add file contents to the staging area.
Parameters:
repo_path - Path to the Git repositorypath - Path(s) to add, or patterns to match. Use '.' for all files.update - (optional) Whether to update, rather than addall - (optional) Whether to add all changes, including untracked filesReturns:
{
"success": true,
"message": "Files staged successfully",
"status": ["M file1.txt", "A file2.txt"]
}
Reset the staging area or working tree to a specified state.
Parameters:
repo_path - Path to the Git repositorypath - Path(s) to reset, or patterns to match. Use '.' for all files.hard - (optional) Whether to perform a hard reset (WARNING: discards all local changes)target - (optional) The commit or branch to reset to (defaults to HEAD)Returns:
{
"success": true,
"message": "Files unstaged successfully",
"status": ["?? file1.txt", "?? file2.txt"]
}
List all worktrees in a repository.
Parameters:
repo_path - Path to the Git repositoryReturns:
{
"worktrees": [
{
"id": "worktree-name",
"path": "/path/to/worktree",
"locked": false,
"lock_reason": null
}
]
}
Create a new worktree.
Parameters:
repo_path - Path to the Git repositorypath - Path for the new worktreebranch - (optional) Branch name to createcommit_ref - (optional) Commit reference to check outcheckout - (optional) Whether to check out files, defaults to trueReturns:
{
"success": true,
"path": "/path/to/new/worktree",
"branch": "feature-branch",
"output": "Preparing worktree (checking out 'feature-branch')"
}
Remove a worktree.
Parameters:
repo_path - Path to the Git repositorypath - Path to the worktree to removeforce - (optional) Force removal even if worktree is dirtyReturns:
{
"success": true,
"path": "/path/to/worktree",
"force": false,
"output": "Removing worktrees/feature-branch"
}
Prune working tree files in $GIT_DIR/worktrees.
Parameters:
repo_path - Path to the Git repositoryverbose - (optional) Report all removalsdry_run - (optional) Do not remove, show onlyReturns:
{
"success": true,
"verbose": false,
"dry_run": false,
"output": "Pruning worktrees/feature-branch"
}
mcp-git-tools/
├── Cargo.toml # Dependencies and project configuration
├── src/
│ ├── lib.rs # Core library with GitToolsHandler
│ └── bin/
│ └── server.rs # Server entry point
├── tests/
│ └── lib_tests.rs # Unit tests
# Debug build
cargo build
# Release build
cargo build --release
# Run tests
cargo test
# Run server
cargo run --release --bin mcp-git-server
To add a new Git tool:
src/lib.rs:#[derive(serde::Deserialize, schemars::JsonSchema)]
struct GitMyToolParams {
repo_path: String,
// other parameters...
}
GitToolsHandler impl block:#[tool(description = "Description of your tool")]
pub async fn git_my_tool(
&self,
repo_path: String,
// other parameters...
) -> Result<CallToolResult> {
// Implementation
}
list_tools() method to include your new tool in the returned listrmcp v0.14.0 - The official RMCP SDKtokio - Async runtimeserde - Serialization frameworkserde_json - JSON implementationanyhow - Error handlingtracing - Logging frameworktempfile - Testing utilitiesMIT License
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Git Tools server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-git-tools)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.