Skip to main content
Glama

mcp-git - Git MCP Server

NPM Version Bun Version License

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"]
    }
  }
}

Related MCP server: Git Workflow MCP Server

Installation Options

From Source

  1. Clone this repository

  2. Install dependencies:

    bun install
  3. Build:

    bun run build
  4. Run:

    bun run start

Available Git Tools

The server provides these MCP-accessible Git operations:

Repository Operations

  • git_status - Show working tree status

  • git_init - Initialize new repository

  • git_log - View commit history (with max_count parameter)

Change Management

  • git_diff_unstaged - View unstaged changes

  • git_diff_staged - View staged changes

  • git_diff - Compare with branch/commit

  • git_add - Stage files

  • git_reset - Unstage changes

  • git_commit - Create commit

Branch Operations

  • git_create_branch - Create new branch

  • git_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 build

Testing

bun test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss proposed changes.

License

MIT

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Enables AI agents to fetch, search, and retrieve markdown content from remote Git repositories. Supports both public and private repositories with authentication, allowing AI assistants to access documentation and notes stored in Git.
    Last updated
    MIT
  • F
    license
    -
    quality
    -
    maintenance
    Enables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.
    Last updated
  • A
    license
    -
    quality
    C
    maintenance
    Enables AI agents to perform full Git operations including branching, committing, pushing, stashing, rebasing, and more, with safety features and support for advanced workflows like Git Flow and LFS.
    Last updated
    29
    MIT

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

View all MCP Connectors

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