Git MCP Server

Stablefile-system
680 starsTypeScriptAnthropic
GitHubnpm
About

Overview

The Git MCP Server enables AI agents to perform Git operations on local repositories. It provides tools for reading repository status, viewing diffs, creating commits, managing branches, and browsing commit history. Focuses on read operations and safe write operations.
Capabilities

Tools & Capabilities

status

Get the current repository status

diff

Show changes between commits or working tree

log

View commit history

show

Show the contents of a commit

branch

List or create branches

commit

Create a new commit with staged changes

Setup

Installation

bash
Install
npx -y @modelcontextprotocol/server-git
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-git", "--repository", "/path/to/repo"]
    }
  }
}

Quick Info

AuthorAnthropic
LanguageTypeScript
StatusStable
Stars 680
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.