Argon logo

Argon

Versioned MongoDB sandboxes for AI agents with branching, time travel, merges, undo, and MCP tools.

Install Argon

Run the project’s own setup commands, in order.

Setup steps from the project

argon installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    brew install argon-lab/tap/argonctl      # macOS
    
  2. 2. Install
    npm install -g argonctl --allow-scripts=argonctl # cross-platform
    
  3. 3. Add to Claude Code
    claude mcp add argon -- argon mcp        # 13 tools: sandbox, diff, merge, undo, pins
    

Overview

The argon MCP server gives AI agents versioned MongoDB sandboxes for branching, reviewing, merging, undoing, and restoring data. It runs against a real MongoDB replica set, with checkout exposing a database that standard drivers can use and watch capturing document changes into history. Reach for it when agent experiments need isolated data changes, reviewable merge plans, reproducible datasets, or recovery from an agent session. The repository also provides a CLI, local web console, REST API, and Python agent integrations.

Use cases

  • Create isolated MongoDB sandboxes for agent experiments
  • Review and merge agent-generated document changes
  • Undo writes from a labeled agent session
  • Reproduce evaluations from pinned datasets
  • Restore a branch to retained history

Key features

  • Branch and checkout versioned MongoDB states
  • Capture document writes with actor labels
  • Preview and apply three-way data merges
  • Time-travel, undo, restore, and rewind data
  • Create TTL sandboxes and protected dataset pins
  • Expose MCP tools, a CLI, and a local console

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.

26/30 checks healthy over the last 94d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10/3/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars177Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Argon works

What argon does

The argon MCP server adds version control workflows to MongoDB for AI-agent development and operations. It can create branches without copying the database, materialize a branch as a real MongoDB database, capture document writes, inspect retained history, and combine approved changes with a three-way merge.

Agent work can run in disposable sandboxes with time-to-live settings. Developers can compare a sandbox with its source branch, undo changes by actor or range, restore a branch to a retained point, or create a new branch from retained history. Named dataset pins protect captured states from garbage collection and resets while the pin exists.

The system covers document inserts, updates, replacements, and deletes. It is intended for workflows where an agent can modify data first and a person or controller can inspect the resulting plan before applying it.

How it works

A branch begins as metadata rather than a copied database. Running checkout materializes that branch for use through normal MongoDB clients, including drivers, mongosh, indexes, aggregation, and transactions. The proxy option can provide stable MongoDB connection URIs based on a project and branch.

Write capture runs separately through argon watch. It uses MongoDB change-stream images and associates captured writes with an actor label. Native writes are asynchronous, while control operations drain capture before proceeding. A typical workflow imports an existing database, creates a branch, checks it out, starts capture, performs agent writes, reviews a diff, and then applies or rejects a merge plan.

The argon MCP server is started with argon mcp. A local console can also supervise capture, expose a UI and REST API, and remove expired sandboxes.

Setup and configuration

MongoDB must run as a replica set; a single-node replica set is sufficient. The documented setup uses MongoDB 7 in Docker, initializes the replica set, and then runs argon doctor. Installation is available through Homebrew or the npm package argonctl. The npm path requires Node.js 24 LTS, npm 11.16 or newer, and the package-script approval shown in the project documentation.

A basic import uses a MongoDB URI, database name, project name, and a source-quiesced option when source writers and DDL have been stopped. Branch, checkout, watch, diff, merge, restore, and console are then available as CLI operations. The project also documents a Python package, argon-agents, with a LangGraph checkpoint adapter.

Tools and capabilities

The argon MCP server supports these workflow areas:

  • Creating and managing MongoDB branches and sandboxes.
  • Checking out real databases for normal MongoDB clients.
  • Capturing writes with a branch-specific actor label.
  • Querying retained document states by logical sequence number or timestamp.
  • Previewing and applying reviewable three-way merge plans.
  • Undoing changes and restoring or forking retained history.
  • Creating pins and starting sandboxes from pinned datasets.
  • Serving a local console with UI and REST access.

Limitations and notes

History retention uses snapshots and a retention window, so it does not preserve every write indefinitely. Existing pins protect their referenced states only while those pins remain; garbage collection can remove other audit and undo history. Independent backups are still recommended.

Collection drops and renames degrade capture. Indexes and collection options are not versioned. Writers should be stopped before releasing changes, and capture guarantees apply only while capture is healthy. Use a current supported MongoDB patch release in production and consult the project’s operations and architecture documentation for recovery and consistency details.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Argon

argon is an MCP server that connects AI agents to versioned MongoDB sandboxes. Its main tools cover sandbox creation, database diffs, merge previews and applications, undo operations, and dataset pins. It works with a real MongoDB replica set, allowing agent workflows to use ordinary MongoDB drivers while changes are captured for review and recovery.

Install it with Homebrew or npm, then start MongoDB as a replica set and run `argon doctor`. Homebrew uses `brew install argon-lab/tap/argonctl`; npm uses `npm install -g argonctl --allow-scripts=argonctl`. The documented npm setup requires Node.js 24 LTS and npm 11.16 or newer.

Run `claude mcp add argon -- argon mcp`. This registers the local `argon mcp` command as an MCP server for Claude. MongoDB and the Argon project setup must be available separately before the agent can use sandbox, diff, merge, undo, and pin workflows.

Yes, argon exposes a checked-out branch as a real MongoDB database that can be accessed by standard drivers, mongosh, indexes, aggregation, and transactions. MongoDB must run as a replica set, and document writes are captured through the separate `argon watch` process.

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