Commit Check MCP logo

Commit Check MCP

Validates Git commit policies, branch names, author metadata, repository state, and push safety through MCP tools.

Install Commit Check MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "commit-check-mcp": {
      "command": "uvx",
      "args": [
        "commit-check-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

commit-check MCP connects AI coding agents to Commit Check policies for validating Git commits and repository state. It checks commit messages, branch names, author information, force-push safety, and the rules currently in effect, returning structured pass, fail, warning, or skip results. Most checks are read-only, while push-related validation may fetch Git refs to resolve commit SHAs. Reach for it when an agent should apply the same commit conventions and safety checks enforced by a team's configuration before committing or pushing.

Use cases

  • Validate a commit message before creating a commit
  • Check a branch name before creating or pushing it
  • Inspect author metadata against allowed names and email domains
  • Verify a repository before pushing its latest commit
  • Learn the effective rules before generating commit text

Key features

  • Commit message and branch policy validation
  • Author name and email checks
  • Force-push safety validation
  • Combined pre-commit context checks
  • Merged rule and configuration inspection
  • Structured fixes, suggestions, and rule results

Tools8

What Commit Check MCP lets your agent do. Expand a tool for its parameters.

Verified live~5.0k 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.

17/17 checks healthy over the last 79d

What it can do

From the 8 tools this server returned when we ran it; 8 declare their own safety hints.

Makes network requests · 2Read-only tools · 8
Network at startup2 connections
Files written at startup15

Observed 2026-11-01 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · commit-check-mcp (PyPI)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit18d agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.

How Commit Check MCP works

What commit-check MCP does

commit-check MCP exposes Commit Check's policy validation through the Model Context Protocol. It lets an AI agent check values before they are committed, or inspect the latest commit and checked-out branch in an existing local Git repository.

Validation can cover Conventional Commits formatting, subject length and capitalization, required bodies and sign-offs, WIP or fixup markers, AI attribution, branch naming patterns, configured merge-base requirements, and author name or email rules. Push validation checks whether a proposed update would rewrite remote history through a force push.

The server also reports the effective validation configuration and provides a health check containing the server, Commit Check, and MCP SDK versions.

How it works

Each validation call returns a common result containing an overall status, a warning count, and individual checks. fail means a rule rejected the input; warn reports a finding without failing the run; pass means the applicable checks passed; and skip means every check was skipped, not that the input was approved.

Checks include stable rule IDs, the checked value, an explanation, guidance, an optional unambiguous replacement, and a documentation URL. An agent can apply a non-empty fix exactly, or follow suggest when no automatic correction is available, then run validation again.

Use validate_commit_context to check a proposed message, branch, and author in one call. Use validate_repository_state for the latest commit, current branch, author, and optionally its upstream push. describe_validation_rules resolves built-in defaults, repository configuration, a selected configuration file, and inline overrides so an agent can learn the rules before generating a value.

Setup and configuration

The server runs over stdio. With uv installed, register it using:

bash
uvx commit-check-mcp

MCP client configurations use uvx as the command and commit-check-mcp as its argument. Installation through pip install commit-check-mcp is an alternative when a client cannot launch uvx; the installed commit-check-mcp executable can then be used directly.

Validation tools accept repo_path, config_path, and config. repo_path identifies the repository whose cchk.toml or commit-check.toml should apply. A plain directory is sufficient when all values are supplied directly, but Git state requires a repository. config_path selects another configuration file, with relative paths resolved from repo_path; config supplies inline overrides merged above the selected configuration.

The server can be configured in Claude Code, Claude Desktop, Cursor, VS Code Copilot agent mode, Cline, Roo Code, Windsurf, Continue, and Zed. Each client has its own MCP configuration location and, in some cases, a different top-level configuration key.

Tools and capabilities

  • server_health reports server and dependency versions without side effects.
  • validate_commit_message checks one message against the active rules.
  • validate_branch_name checks a supplied branch or the currently checked-out branch.
  • validate_author_info checks supplied author fields or reads them from Git configuration and, if needed, the latest commit.
  • validate_commit_context combines message, branch, and author checks for values supplied in the request.
  • validate_push_safety rejects force-push updates by checking whether the remote commit is an ancestor of the local commit.
  • validate_repository_state inspects committed message and author data, the current branch, and optionally upstream push safety.
  • describe_validation_rules returns the merged configuration, supported checks, and enabled rule details.

Limitations and notes

The validation tools do not modify the working tree or commits. Push-related checks can run git fetch to resolve SHAs, which may update FETCH_HEAD and remote-tracking refs. An unresolved SHA produces a tool error rather than a passing result.

validate_push_safety only checks the no-force-push rule, and configuration cannot enable force pushes through this tool. At least one validation target is required for combined or repository-state checks. Empty messages, invalid configurations, missing paths, and repository requirements are reported as tool errors rather than successful validation.

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 Commit Check MCP

commit-check MCP is an MCP server that connects AI coding agents to Commit Check policies and local Git repositories. Its main tools validate commit messages, branch names, author information, combined commit context, repository state, validation rules, and push safety, returning structured results with warnings, fixes, and suggestions.

Run `uvx commit-check-mcp` from the MCP client configuration. If the client cannot launch `uvx`, install the package with `pip install commit-check-mcp` and configure the installed `commit-check-mcp` executable as the command.

Yes. Configure it in Cursor's project `.cursor/mcp.json` or global `~/.cursor/mcp.json`, using `uvx` as the command and `commit-check-mcp` as its argument. Cursor can also add the server through its MCP settings.

Call `validate_push_safety` before pushing, or set `include_push` to true with `validate_repository_state`. The check rejects updates where the remote SHA is not an ancestor of the local SHA; it may fetch refs to resolve missing SHAs.

Call `describe_validation_rules`. It returns the merged built-in defaults, repository or selected configuration, inline overrides, supported checks, and enabled rule details, allowing an agent to inspect the expected format before validating a message or branch.

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 PreviewCommit Check MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/commit-check-mcp?style=directory)](https://allmcps.com/mcp/commit-check-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/commit-check-mcp"><img src="https://allmcps.com/api/badge/commit-check-mcp?style=directory" alt="Commit Check MCP on AllMCPs" /></a>