Git Summary MCP server

Lightweight git commit message summary generator that analyzes repository histories by filtering commits and producing human-readable markdown summaries highlighting key changes and business impact.
Back to servers
Setup instructions
Provider
Cybersiddhu
Release date
Mar 26, 2025
Language
Go

This MCP server implements the Model Control Protocol using the mcp-go library, allowing you to run a simple MCP server with built-in tools such as the Git Summary tool for analyzing commit messages.

Installation

Prerequisites

  • Go 1.23 or later

Setting Up the Server

To run the MCP server, use the following command:

go run cmd/server/main.go

By default, the server runs on port 8080. You can configure a different port by setting the DCR_MCP_PORT environment variable:

export DCR_MCP_PORT=9000
go run cmd/server/main.go

Using the Git Summary Tool

The Git Summary tool is a built-in feature that analyzes git commit messages and generates concise, categorized summaries using OpenAI.

Tool Features

  • Clones any git repository by URL and branch
  • Filters commits by date range and author
  • Generates human-readable summaries using OpenAI
  • Formats output as markdown with categorized bullet points

Request Parameters

The Git Summary tool accepts the following JSON parameters:

{
  "repo_url": "https://github.com/username/repo",
  "branch": "main",
  "start_date": "2023-01-01",
  "end_date": "2023-12-31",
  "author": "author-name",
  "api_key": "your-openai-api-key"
}

Parameter Details

  • repo_url (required): URL of the git repository to analyze
  • branch (required): Branch to analyze
  • start_date (required): Start date for commit analysis (in any standard format)
  • end_date (optional): End date for commit analysis (defaults to current date)
  • author (required): Filter commits by author name (case-insensitive contains match)
  • api_key (required): Your OpenAI API key (defaults to OPENAI_API_KEY environment variable)

Example Response

The tool returns a formatted markdown summary of commits organized by categories, for example:

# Work Summary

**Feature Enhancements**
- Added support for filtering commits by author name. Users can now specify an optional author parameter to focus on contributions from specific team members.

**Bug Fixes**
- Fixed date parsing issues that were causing incorrect commit ranges. The system now correctly handles various date formats and timezone considerations.

**Documentation**
- Added comprehensive README with usage examples and parameter descriptions. New users will find it easier to understand how to use the tool effectively.

Testing the Server

You can verify your installation is working correctly by running the tests:

go test ./...

Alternatively, for a more readable output format:

gotestum --format-hide-empty-pkg --format testdox --format-icons hivis

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "git-summary" '{"command":"go","args":["run","cmd/server/main.go"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "git-summary": {
            "command": "go",
            "args": [
                "run",
                "cmd/server/main.go"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "git-summary": {
            "command": "go",
            "args": [
                "run",
                "cmd/server/main.go"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later