Back to Browse

Cfgit MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Git-style history, diffs, drift checks and rollback for live MongoDB and Postgres config records.

About

Git-style history, diffs, drift checks and rollback for live MongoDB and Postgres config records.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Absolute path to your project's .cfg.toml. It names the databases, collections and environments cfgit works on.Optional

Environment variable: CFG_CONFIG

Author recorded on commits, such as your email. Ignored when the env requires token identity.Optional

Environment variable: CFG_AUTHOR

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "cfgit": {
      "command": "uvx",
      "args": [
        "cfgit==0.6.7"
      ],
      "env": {
        "CFG_AUTHOR": "your-cfg-author-here",
        "CFG_CONFIG": "your-cfg-config-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

cfgit

Git-style version control for records that live in your database, without moving them.

cfgit gives history, diff, rollback, tags, promotion between environments and drift detection to the records that drive your system at runtime: agent configs, prompts, model routing, feature flags, pricing and policy tables. Your app keeps reading the same MongoDB or Postgres store, and scripts and admin tools can keep writing it. cfgit sits beside it, records every change it makes, and refuses to overwrite a change it did not record.

Try it in one command (nothing to set up: it brings its own throwaway database, about 10 seconds):

uvx --python 3.12 --from 'cfgit[demo]' cfg demo

What you get

  • Drift detection. cfg status shows records someone changed outside cfgit; cfg diff shows what changed; keep it (adopt) or throw it away (restore --discard-drift).
  • Safe writes. Every commit is transactional and compare-and-swap guarded, and confirmed by the database before it is reported. Partial edits with cfg set, previews with --dry-run.
  • Impact before you write. Which other records and which lines of code (file:line) use a record, a risk level, and optional LLM narration (Claude, OpenAI or Gemini).
  • Rollback and releases. Tags, restore to a tag or a point in time, and cfg promote between dev and prod through the target's own rules.
  • Built for agents. An MCP server with dry runs, strict arguments and self-explaining results, plus a skill for Claude Code and Codex.
  • Also: branches and PRs over live records, a local web UI, Slack/webhook notifications, write-time validation, secret stripping, and verified identity per environment.

Good for curated control-plane data edited by people and agents. Not for user content, events, logs or high-write tables.

Use it from an agent

Or from a terminal (each installs the MCP server and the cfgit skill):

# Claude Code
claude plugin install cfgit --marketplace AusafMo/cfgit

# Codex
codex plugin marketplace add AusafMo/cfgit
codex plugin add cfgit@cfgit
  • Claude Desktop: the button downloads cfgit.mcpb. Open it and pick your .cfg.toml.
  • Any other MCP client: run uvx --from 'cfgit[mcp,mongo,postgres]' cfg-mcp over stdio with CFG_CONFIG set to your .cfg.toml.
  • ChatGPT and claude.ai on the web only connect to remote MCP servers; cfgit runs locally beside your database, so they can't use it.

All the options, with copy buttons, are on the install page. What agents should know: docs/AGENTS.md.

Install

pip install 'cfgit[mongo,postgres,mcp]'      # or just [mongo] / [postgres]

Quick start

# .cfg.toml
[project]
name = "control-plane"

[[collection]]
name = "agent_configs"
id_field = "config_id"

[env.dev]
database = "mongo"
uri = "env:DEV_MONGODB_URI"
db = "my-dev-db"
cfg init && cfg doctor                  # history store; secret / size check
cfg import --all -m "initial import"    # start tracking
cfg status                              # anything changed outside cfgit?
cfg set agent_configs:planner model=fast --dry-run
cfg set agent_configs:planner model=fast -m "faster planner"
cfg log agent_configs:planner
cfg restore agent_configs:planner @1 -m "roll back"
cfg ui                                  # local web UI

Documentation

DocWhat's inside
GuideWhy cfgit, setup, everyday flows, UI, agents, impact, safety model
UsageEvery command with examples
Configuration.cfg.toml reference: collections, envs, validation, notifications, code refs
AgentsMCP server, client setup, what agents should know
IdentityIdentity modes, tokens and permissions
AdaptersMongoDB and Postgres details
History contractReading cfgit history from your own tools
UpgradingChanges between versions
IndexEverything else

License

Apache-2.0. See LICENSE, NOTICE and CREDITS.md.

Reviews

No reviews yet

Be the first to review this server!