Allows for the analysis of local Git repositories, providing tools to retrieve commit statistics, identify frequently changed files, and list contributor activity and metrics.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Git Analysis ServerShow me the most frequently changed files in this repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Git Analysis Server
An MCP (Model Context Protocol) server that analyzes local git repositories and provides insights about commits, contributors, and file changes.
Features
Tools
analyze_commits - Get commit statistics with optional filters
Filter by count, author, or date range
Returns detailed commit information including changes
find_hot_spots - Find most frequently changed files
Shows files with most commits
Includes number of unique authors per file
get_contributors - List all contributors with statistics
Shows commit counts, insertions, deletions
Includes first and last commit dates
Resources
git://recent-activity - Last 10 commits as structured data
git://file-history/{filepath} - Change history for a specific file
Installation
Usage
With MCP Inspector
As MCP Server
Configure in your MCP client settings:
Example Tool Calls
Analyze Recent Commits
Find Hot Spots
Get Contributors
Example Resource Access
git://recent-activity- Get recent activitygit://file-history/src/main.py- Get history for specific file
Requirements
Python 3.8+
Git repository
GitPython library
MCP SDK
Testing
Test with MCP Inspector: