# Git History

> Git History is an open-source MCP server for developer tools. Give AI agents Git history tools: commit search, file history, blame, contributors, ref diffs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/tonyweckstrom1987/mcp-server-git-history
- **MCP Registry name:** io.github.tonyweckstrom1987/git-history
- **Categories:** developer tools
- **Listing updated:** 2026-11-13

## About

Give AI agents Git history tools: commit search, file history, blame, contributors, ref diffs.

## Install

### Claude Code (Terminal)

```sh
claude mcp add git-history -- npx -y mcp-server-git-history
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "git-history": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-git-history"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "git-history": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-git-history"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "git-history": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-git-history"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "git-history": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-git-history"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "git-history": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-git-history"
      ]
    }
  }
}
```

## FAQ

### Is Git History free?

Yes. Git History is open source, so you can use and self-host it for free.

### How do I add Git History to Claude Code?

Run this command in your terminal: claude mcp add git-history -- npx -y mcp-server-git-history

### What are the best alternatives to Git History?

The closest alternatives to Git History are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/git-history
