MCP servers · cloudcorprecords

gitcleanplan: planning cleanup of stale and merged git branches

An MCP server that takes branch data and returns a plan marking each branch as keep, review or delete, with the reason for each decision.

This text was machine-translated from the publisher's own information and has not been checked by a human editor. The publisher's original text is the reference.

This resource was imported automatically from the sources listed below and has not been reviewed by the AI Gate team yet. The description is the publisher's own, as published. Check the repository before installing.

What it does

gitcleanplan is an MCP server for planning cleanup of stale and merged branches. You supply branch data (name, days since the last commit, and flags for merged, upstream gone, protected and current), and it returns a plan that sorts each branch into keep, review or delete, with the reason for each decision. It deletes nothing.

It suits a repository whose branch list has grown and where you want a reviewed cleanup rather than deletions made on a guess. Decisions follow a fixed rule order: the default branch, protected branches and the checked-out branch are kept; merged branches whose upstream is gone, or that have been stale for at least stale_days (default 90), are marked for deletion; merged-but-recent branches and unmerged candidates go to review. The output groups branch names by action, gives counts, and lists a git branch -d command for each branch planned for deletion, in name order.

Running it means exposing the plan_branch_cleanup tool through an MCP client configuration. The tool requires a branches array with at least one entry, and accepts optional stale_days and default_branch values (default "main"). The computation is local, with no network access and no files read beyond the input. Malformed input returns a validation error naming the offending path, and no partial plan is produced. The listed commands are never executed; you decide what to run.

Limitations and requirements

The server does not read repositories or run git, so the caller must supply the branch data. Malformed input is rejected: empty or duplicate branch names, missing or negative day counts, wrongly typed flags, and invalid stale_days or default_branch values all cause a validation error and no partial plan. The tool never executes the suggested delete commands.

Safety

Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.

  • Runs code or changes an assistant's behaviour

Sources

  • Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
    io.github.CloudCorpRecords/gitcleanplan

    Plan stale and merged branch cleanup: keep / review / delete per branch, with reasons.

    v0.1.0
    As shown on registry.modelcontextprotocol.io when we last read it
MCP servers
hashicorp

Terraform MCP Server (HashiCorp)

HashiCorp's MCP server that gives an assistant current Terraform Registry information on providers, modules and policies, and can manage HCP Terraform workspaces.

1.6K GitHub starsCloud & DevOpsSoftware development
Updated 17 Nov 2026
MCP servers
neondatabase

Neon MCP Server (Postgres)

Neon's MCP server for managing Neon Postgres in plain language: create projects and branches, run queries and prepare schema migrations from your editor.

663 GitHub starsData & databasesSoftware development
Updated 17 Nov 2026
MCP servers
redis

Redis MCP Server

Redis's official MCP server that lets an AI assistant store, read and search data in a Redis database, including streams, JSON documents and vector indexes.

642 GitHub starsData & databasesSoftware development
Updated 17 Nov 2026
MCP servers
supabase-community

Supabase MCP Server

Supabase's MCP server that connects an AI assistant to your Supabase project to design tables, run queries, read configuration and look up documentation.

Data & databasesSoftware development
Updated 17 Nov 2026