productivitydeveloper-tools

Git Commit Generator

by theoklitosbam7

Generate conventional commit messages from staged git changes. Streamline your git amend commit message process with aut

Generates conventional commit messages from staged git changes by analyzing diffs and file status to create properly formatted commits with optional type and scope parameters.

github stars

8

Works with any MCP-compatible clientCross-platform supportDocker and PyPI installation options

best for

  • / Developers who want consistent commit message formatting
  • / Teams enforcing conventional commit standards
  • / Automating commit message creation in CI/CD workflows

capabilities

  • / Generate conventional commit messages from staged changes
  • / Analyze git diffs and file modifications
  • / Check current git repository status
  • / Auto-detect commit type and scope
  • / Format commits following conventional standards

what it does

Analyzes your staged git changes and automatically generates properly formatted conventional commit messages. Works by examining diffs and file status to suggest appropriate commit types and scopes.

about

Git Commit Generator is a community-built MCP server published by theoklitosbam7 that provides AI assistants with tools and capabilities via the Model Context Protocol. Generate conventional commit messages from staged git changes. Streamline your git amend commit message process with aut It is categorized under productivity, developer tools. This server exposes 2 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install Git Commit Generator in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

Git Commit Generator is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

MCP Git Commit Generator

PyPI GitHub Release Publish Python 🐍 package to PyPI Create and Publish Docker 🐳 image License

Generate conventional commit messages from your staged git changes using Model Context Protocol (MCP).

✨ Features

  • 🤖 Automatic commit message generation based on staged git diffs
  • 📝 Conventional Commits support with auto-detection of type and scope
  • 🔄 Multiple transport options - stdio (default) and SSE for different use cases
  • 🔍 Inspector UI for interactive testing and debugging
  • 🐳 Docker support with pre-built images for easy deployment
  • ⚡ Cross-platform - works on macOS, Linux, and Windows

📦 Requirements

  • For Docker usage: Docker (for running the server in a container)
  • For PyPI/uvx usage: Python >= 3.13.5 and uv (recommended) or pip
  • Git (for version control)
  • An MCP-compatible client (VS Code with MCP extension, Claude Desktop, Cursor, Windsurf, etc.)

🚀 Installation

You can install and use the MCP Git Commit Generator in multiple ways:

Option 1: Using uvx (Recommended)

The easiest way to use the package is with uvx, which automatically manages the virtual environment:

uvx mcp-git-commit-generator

Option 2: Install from PyPI

pip install mcp-git-commit-generator

Or with uv:

uv pip install mcp-git-commit-generator

Option 3: Using Docker

Use the pre-built Docker image from GitHub Container Registry (no installation required):

docker run -i --rm --mount type=bind,src=${HOME},dst=${HOME} ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest

🛠️ Available Tools

This MCP server provides the following tools to help you generate conventional commit messages:

generate_commit_message

Generates a conventional commit message based on your staged git changes.

Parameters:

  • repo_path (string, optional): Path to the git repository. If omitted, uses the current directory.
  • commit_type (string, optional): Conventional commit type (e.g., feat, fix, docs, style, refactor, perf, build, ci, test, chore, revert). If omitted, the type will be auto-detected.
  • scope (string, optional): Scope of the change (e.g., file or module name). If omitted, the scope will be auto-detected based on changed files.

Usage:

  1. Stage your changes: git add <files>
  2. Use the tool through your MCP client to generate a commit message
  3. The tool will analyze your staged changes and generate an appropriate conventional commit message

check_git_status

Checks the current git repository status, including staged, unstaged, and untracked files.

Parameters:

  • repo_path (string, optional): Path to the git repository. If omitted, uses the current directory.

Usage:

Use this tool to get an overview of your current git repository state before generating commit messages.

🧩 MCP Client Configuration

Configure the MCP Git Commit Generator in your favorite MCP client. You have multiple options:

  1. Using uvx (recommended - automatically manages dependencies)
  2. Using Docker (no local Python installation required)
  3. Using local Python installation (for development)

VS Code

Add one of the following configurations to your VS Code mcp.json file (usually located at .vscode/mcp.json in your workspace):

Using uvx (Recommended)

{
  "servers": {
    "mcp-git-commit-generator": {
      "command": "uvx",
      "args": ["mcp-git-commit-generator"]
    }
  }
}

Using Docker

{
  "servers": {
    "mcp-git-commit-generator": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount",
        "type=bind,src=${userHome},dst=${userHome}",
        "ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest"
      ]
    }
  }
}

If you want to put the configuration in your user settings.json file, you can do so by adding:

{
  "mcp": {
    "servers": {
      "mcp-git-commit-generator": {
        "command": "uvx",
        "args": ["mcp-git-commit-generator"]
      }
    }
  }
}

Cursor

Add one of the following to your Cursor MCP configuration file (usually located at ~/.cursor/mcp.json):

Cursor with uvx (Recommended)

{
  "mcpServers": {
    "mcp-git-commit-generator": {
      "command": "uvx",
      "args": ["mcp-git-commit-generator"]
    }
  }
}

Cursor with Docker

{
  "mcpServers": {
    "mcp-git-commit-generator": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount",
        "type=bind,src=${userHome},dst=${userHome}",
        "ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest"
      ]
    }
  }
}

Windsurf

Configure Windsurf with one of the following MCP server settings (usually located at ~/.codeium/windsurf/mcp_config.json):

Windsurf with uvx (Recommended)

{
    "mcpServers": {
      "mcp-git-commit-generator": {
        "command": "uvx",
        "args": ["mcp-git-commit-generator"]
      }
    }
}

Windsurf with Docker

{
    "mcpServers": {
      "mcp-git-commit-generator": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "--mount",
          "type=bind,src=${userHome},dst=${userHome}",
          "ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest"
        ]
      }
    }
}

Claude Desktop

Add one of the following to your Claude Desktop configuration file (usually located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

Claude Desktop with uvx (Recommended)

{
  "mcpServers": {
    "mcp-git-commit-generator": {
      "command": "uvx",
      "args": ["mcp-git-commit-generator"]
    }
  }
}

Claude Desktop with Docker

{
  "mcpServers": {
    "mcp-git-commit-generator": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--mount",
        "type=bind,src=${userHome},dst=${userHome}",
        "ghcr.io/theoklitosbam7/mcp-git-commit-generator:latest"
      ]
    }
  }
}

Note: The --mount option in Docker configurations allows the Docker container to access your home directory, enabling it to work with git repositories located anywhere in your file system. When using uvx or pip installations, this mounting is not needed as the tool runs directly on your system. Adjust the mount path if your repositories are located elsewhere when using Docker.

🚀 Quick Start Guide

  1. Install the package using one of the methods above:

    • Recommended: uvx mcp-git-commit-generator (or configure in your MCP client)
    • Alternative: pip install mcp-git-commit-generator
    • Docker: Use the configurations above with Docker
  2. Configure your MCP client using one of the configurations above

  3. Stage some changes in a git repository:

    git add <files>
    
  4. Use the tools through your MCP client:

    • Use check_git_status to see your current repository state
    • Use generate_commit_message to create a conventional commit message
  5. Commit your changes with the generated message


👨‍💻 Developer Guidelines

The following sections are intended for developers who want to contribute to or modify the MCP Git Commit Generator.

Local Development Setup 🛠️

If you prefer not to use Docker for development, you can run the server locally:

Requirements:

Note: The MCP CLI dependency is automatically installed via uv.lock when using uv sync.

Installation:

  1. Clone the repository:

    git clone https://github.com/theoklitosBam7/mcp-git-commit-generator.git
    cd mcp-git-commit-generator
    
  2. Prepare environment:

    There are two approaches to set up the environment for this project. You can choose either one based on your preference.

    Note: Reload VSCode or terminal to ensure the virtual environment python is used after creating the virtual environment.

    ApproachSteps
    Using uv (Recommended)1. Create virtual environment and install dependencies: uv sync --group dev <br>2. Run VSCode Command "Python: Select Interpreter" and select the python from .venv directory <br>3. The project is installed in editable mode automatically by uv sync.
    Using pip1. Create virtual environment: python -m venv .venv <br>2. Run VSCode Command "Python: Select Interpreter" and select the python from created virtual environment <br>3. Install dependen

FAQ

What is the Git Commit Generator MCP server?
Git Commit Generator is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for Git Commit Generator?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    Git Commit Generator is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated Git Commit Generator against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: Git Commit Generator is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    Git Commit Generator reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend Git Commit Generator for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: Git Commit Generator surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    Git Commit Generator has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, Git Commit Generator benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired Git Commit Generator into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    Git Commit Generator is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.