# Git [Verified] [Health: Active]

**Category:** 🛠️ Other Tools and Integrations  
**Repository:** https://github.com/modelcontextprotocol/servers/tree/main/src/git  
**GitHub Stars:** 90510  
**npm Downloads (last month):** 461437  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/git

## Description
Tools to read, search, and manipulate Git repositories.

## Tools
Capabilities this server exposes over MCP:

- **create_entities** — Create multiple new entities in the knowledge graph
- **create_relations** — Create multiple new relations between entities in the knowledge graph. Relations should be in active voice
- **add_observations** — Add new observations to existing entities in the knowledge graph
- **delete_entities** — Delete multiple entities and their associated relations from the knowledge graph
- **delete_observations** — Delete specific observations from entities in the knowledge graph
- **delete_relations** — Delete multiple relations from the knowledge graph
- **read_graph** — Read the entire knowledge graph
- **search_nodes** — Search for nodes in the knowledge graph based on a query
- **open_nodes** — Open specific nodes in the knowledge graph by their names

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "git": {
    "command": "npx",
    "args": ["-y","@modelcontextprotocol/server-memory"]
  }
}
```

## Documentation

## What Git MCP server does

The Git MCP server gives an MCP client access to a local Git repository. The repository description identifies its purpose as reading, searching, and manipulating Git repositories. It is intended for workflows where an agent needs to work with repository contents through MCP instead of receiving direct, unrestricted shell access.

The implementation is part of the official MCP servers repository, which contains reference implementations maintained by the MCP steering group. That context matters when evaluating the Git MCP server: the project is presented as an educational example of MCP features and SDK usage, not as a production-ready service.

## How it works

The Git MCP server runs locally and communicates with an MCP client over the client’s configured process connection. The README documents a Python distribution named `mcp-server-git`. You can launch it with `uvx`, or install it with pip and start it as a Python module.

A repository is selected by passing its path with `--repository`. The client configuration example uses `uvx` as the command and supplies the package name followed by that option and a repository path. The path must be set for the environment where the MCP process runs; the README does not document remote repository hosting or a Git provider API connection.

The supplied tool inventory lists knowledge-graph operations including `create_entities`, `create_relations`, `add_observations`, `delete_entities`, `delete_observations`, `delete_relations`, `read_graph`, `search_nodes`, and `open_nodes`. These names do not describe Git actions, so verify the installed package and exposed tool set before building an automation around them.

## Setup and configuration

The documented direct launch command is:

```sh
uvx mcp-server-git
```

For a client configuration, use the `uvx` executable and provide `mcp-server-git`, `--repository`, and the local repository path as arguments. The README also documents a pip-based route:

```sh
pip install mcp-server-git
python -m mcp_server_git
```

No API token, OAuth flow, or required environment variable is documented for the Git MCP server. The example is configured for Claude Desktop, and the README notes that `uvx` entries remain unchanged on Windows.

## Tools and capabilities

Based on the project description, use the Git MCP server to support agents that need to:

- Read information from a local Git repository.
- Search repository data.
- Manipulate repository data through MCP.
- Select the repository available to the process with `--repository`.

The provided tool list should be treated separately from these capabilities until confirmed against the package version you install, because its operations are named for knowledge-graph entities, observations, relations, and nodes.

## Limitations and notes

This Git MCP server is a reference implementation. The repository explicitly advises developers to evaluate security requirements and add safeguards for their own threat model and use case. Access to a local repository should therefore be scoped carefully, especially when an agent can manipulate repository data.

The material does not document hosted Git services, GitHub authentication, branch-management details, commit semantics, or a complete per-tool argument reference. It also does not establish compatibility with MCP clients beyond showing a Claude Desktop configuration example. The repository uses Apache-2.0 for new contributions while existing code is under MIT, so review the included license information when redistributing code.

_Full upstream README: https://allmcps.com/mcp/git/readme_

