Git Context MCP logo

Git Context MCP

by TamiShaks-2

Reads local Git history and repository files to give coding agents structured status, structure, activity, and risk context.

Install Git Context MCP

Run the project’s own setup commands, in order.

Setup steps from the project

TamiShaks-2/git-context-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/TamiShaks-2/git-context-mcp.git
    
  2. 2. Run
    cd git-context-mcp
    
  3. 3. Configure
    python -m venv .venv
    
  4. 4. Configure
    .venv\Scripts\activate    # Windows
    
  5. 5. Install
    pip install -e .
    

Overview

The TamiShaks-2/git-context-mcp MCP server analyzes a local Git repository and exposes read-only context through MCP over STDIO. Its tools report repository status, map code structure, summarize recent development activity, highlight work progress, and identify maintenance risks. It reads Git metadata and repository files without uploading, modifying, or executing the codebase. Reach for it when an AI coding agent needs repository awareness before editing or reviewing a project.

Use cases

  • Inspect repository state before making code changes
  • Map project entry points and important modules
  • Review recent file churn before editing
  • Identify high-risk files for additional review

Key features

  • Local Git repository analysis
  • Read-only MCP tools over STDIO
  • Repository status reporting
  • Structural code mapping
  • Development churn analysis
  • Maintenance risk detection

Tools5

What Git Context MCP lets your agent do. Expand a tool for its parameters.

Self-reported~47 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/14 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
Last commit11mo agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Git Context MCP works

What TamiShaks-2/git-context-mcp MCP server does

The TamiShaks-2/git-context-mcp MCP server gives AI coding agents a structured view of a local Git repository. It focuses on context extraction rather than repository manipulation. The output is intended to help an agent determine the project’s current state, understand its layout, see which areas have been changing, and identify files that may deserve additional care.

Analysis covers both Git information and repository files. The server operates locally and exposes read-only tools, so it does not change tracked files, upload the codebase, or run the project’s code. It also does not rely on external services or APIs.

How it works

The server runs as a standalone local MCP process using STDIO transport. An MCP client connects to the process and invokes analysis tools against a local Git repository. The repository must be available on the machine where the server runs, and Git must be installed and available through the system PATH.

A practical analysis sequence starts with project_status to establish branch, cleanliness, and synchronization information. code_map can then provide a structural view of directories and important files. recent_activity shows development churn, while work_summary gives a broader progress and technical-debt view. risk_scan adds signals for files that may have elevated maintenance or bug risk.

Setup and configuration

The project requires Python 3.10 or newer and a local Git installation. The documented setup creates a virtual environment, activates it, and installs the repository in editable mode with pip install -e .. The server is then launched with the Python executable from that environment and src/server.py as its argument.

For MCP Inspector, configure the transport as STDIO. The repository documentation shows the virtual-environment Python executable as the command and src/server.py as the argument. No API keys, hosted endpoint, or service account is described. Tests can be run with pytest from the project environment.

Tools and capabilities

The TamiShaks-2/git-context-mcp MCP server exposes five read-only tools:

  • project_status: Reports repository state, including branch, cleanliness, and synchronization details.
  • code_map: Builds a structural directory view and identifies important files or entry points.
  • recent_activity: Examines Git history to surface frequently modified or actively changing areas.
  • work_summary: Produces a high-level view of recent work and open technical-debt indicators.
  • risk_scan: Flags files associated with size, complexity, or high change frequency.

Together, these tools provide high-level machine-readable context rather than raw source-code dumps. The TamiShaks-2/git-context-mcp MCP server is therefore suited to an initial repository assessment before code changes or review.

Limitations and notes

The server is local-first: it requires access to an existing Git repository and does not provide a hosted analysis service. Its documented scope is analysis, not editing, committing, synchronizing, or executing application code.

Risk and activity results are analysis signals, not guarantees that a file contains a defect or should not be changed. Agents should use the results as context alongside the repository’s own code, tests, and review practices.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Git Context MCP

Clone the repository, create and activate a Python 3.10+ virtual environment, then run `pip install -e .`.

The material states that it uses STDIO and is compatible with desktop coding agents, but it does not specifically document Claude Desktop.

It provides `project_status`, `code_map`, `recent_activity`, `work_summary`, and `risk_scan`.

No. The server is described as read-only, runs locally, does not upload the codebase, and does not modify the repository.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGit Context MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/tamishaks-2-git-context-mcp?style=directory)](https://allmcps.com/mcp/tamishaks-2-git-context-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/tamishaks-2-git-context-mcp"><img src="https://allmcps.com/api/badge/tamishaks-2-git-context-mcp?style=directory" alt="Git Context MCP on AllMCPs" /></a>