# argon [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/argon-lab/argon  
**GitHub Stars:** 180  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/argon

## Description
Versioned MongoDB sandboxes for AI agents: branch, time-travel, merge, and undo over MCP.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/argon-lab/argon), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
brew install argon-lab/tap/argonctl      # macOS
```

2. Install:

```sh
npm install -g argonctl --allow-scripts=argonctl # cross-platform
```

3. Add to Claude Code:

```sh
claude mcp add argon -- argon mcp        # 13 tools: sandbox, diff, merge, undo, pins
```

## Documentation

## What argon does

argon provides versioned MongoDB environments for AI-agent runs. Each sandbox is a real MongoDB database forked from a branch or pinned dataset, so applications can continue using normal MongoDB drivers, indexes, aggregations, transactions, and `mongosh`.

Agent writes captured by argon become reviewable history. Developers can inspect a sandbox diff, preview a merge, apply an approved merge plan, discard a sandbox, or undo changes. Source data remains unchanged until a merge is explicitly applied. Branches and pins support longer-lived environments and repeatable datasets, while restore operations can rewind a branch to an earlier point in time.

## How it works

The CLI creates a sandbox, checks out its data, assigns an optional time-to-live, and can keep capture running while the agent connects to the printed MongoDB URI. The MCP server manages capture and expiry without requiring those processes to remain in the foreground. Expired sandboxes are swept periodically.

A typical workflow imports a database into an argon project, creates a sandbox for an agent run, reviews the resulting diff, and either applies a merge plan or discards the sandbox. Online import and source following can track a live replica-set database on a project's `main` branch. Source write-back is available through the CLI under experimental controls; the MCP server and REST API do not provide write-back.

## Setup and configuration

Install `argonctl` through Homebrew or npm. The npm installation requires Node.js 24 LTS with npm 11.16 or newer. Source builds use Go 1.26.11 or newer. MongoDB must run as a replica set; a one-node replica set is supported.

After MongoDB is available, use `argon doctor` to check the environment. Import an initial database with `argon import database`, then create a sandbox with a project, time-to-live, and optional actor identifier. The MCP entry point is started with `argon mcp`; Claude Code can register it with `claude mcp add argon -- argon mcp`.

`argon console` provides a local web console and REST API, supervises capture, removes expired sandboxes, and can open a browser. A source URI can be supplied with `ARGON_SOURCE_URI` for source operations. Experimental source features require `ARGON_EXPERIMENTAL_SOURCE=1`.

## Tools and capabilities

- Create and manage MongoDB sandboxes for isolated agent runs.
- Branch and check out versioned database state.
- Inspect captured document changes with diffs.
- Preview and apply reviewed merge plans.
- Discard sandboxes or undo changes.
- Create dataset pins and restore branches to earlier times.
- Follow a source replica-set database through its change stream.

The MCP interface exposes 13 tools covering sandbox, diff, merge, undo, and pin workflows. The Python `argon-agents` package also includes an `ArgonClient` and a LangGraph checkpoint saver for using sandboxes as graph checkpoints.

_Full upstream README: https://allmcps.com/mcp/argon/readme_

