This Git MCP server provides AI assistants with capabilities to interact with Git repositories. Developed as an open-source project, it integrates with the simple-git library to enable core Git operations like cloning, committing, and managing branches. The server exposes a standardized interface for Git interactions, abstracting the complexities of version control operations. By leveraging TypeScript and following modern JavaScript practices, it offers a robust and type-safe implementation. This server is particularly useful for developers and DevOps teams looking to incorporate AI-driven Git operations into their workflows, such as automated code reviews, commit analysis, or intelligent branching strategies.
Initialize a new Git repository at the specified path with options for bare repositories.
Clone a Git repository from a remote URL to a local path with branch and depth options.
Get the current status of a Git repository including working directory and staging area changes.
List all branches in a repository with options to include remote branches.
Create a new branch with options for specifying the starting point and automatic checkout.
Checkout a branch, tag, or commit with options to create a new branch during checkout.
Delete a branch with options for force deletion of unmerged branches.
Merge a branch into the current branch with customizable commit messages and merge strategies.
Stage files for commit with support for individual files or entire directories.
Unstage files from the staging area with options for specific files or all staged changes.
Commit staged changes with customizable commit messages, author information, and amend options.
Get a diff of all unstaged changes in the working directory with options for specific files.
Get a diff of all staged changes in the index with options for specific files.
Reset the repository to a specific reference with options for hard, soft, or mixed mode.
Remove untracked files from the working tree with options for directories and force cleaning.
Add a new remote repository with a name and URL.
List all configured remote repositories and their URLs.
Fetch updates from a remote repository with options for specific branches.
Pull changes from a remote repository with options for rebase strategy.
Push local changes to a remote repository with options for force push and upstream tracking.
Create a new tag with options for annotated tags with messages.
List all tags in the repository with their references.
Stash changes in the working directory with options for untracked files and descriptions.
List all stashes in the repository with their descriptions.
Apply a stashed change without removing it from the stash list.
Apply a stashed change and remove it from the stash list.
Apply changes from specific commits to the current branch.
Rebase the current branch onto another branch with interactive mode options.
Get commit history with customizable output format and depth.
Show detailed information about a specific commit including diff changes.
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!