Argon
Lets your AI agent branch, time-travel, diff, merge and undo a MongoDB database through safe sandboxes.
177 stars on GitHubby argon-labLicense MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add argon -- npx -y --allow-scripts=argonctl argonctl mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a sandbox of my myapp database, make the changes, then show me the diff.
Undo everything the agent actor changed in the last hour.
What it is
Argon works like Git for MongoDB. Your agent can create a branch (no copy), work in an isolated real MongoDB database, then review the diff and merge back or discard it. It can also undo changes by actor and pin named dataset states for repeatable tests.
What it can do
- Create sandboxes: fork, checkout and expiry in one step
- Diff a branch and preview or apply merges
- Undo changes by range or actor label
- Pin dataset states for identical test runs
- Restore or rewind a branch to a point in time
- 13 MCP tools in total
When to use
- βΊWhen you let an agent change a database and want to review the changes before they go live
- βΊWhen you need to undo what an agent did to your data
- βΊWhen you run evaluations that must start from the same dataset each time
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
butHelps your agent handle everyday version control with GitButler, such as commits, branches, diffs, pull requests and undoing changes.shipHelps your agent ship a change: merge the base branch, run tests, review the diff, update the version and changelog, then open a pull request.neon-postgres-branchesHelps your agent create and manage different versions (branches) of a database. It's useful for testing changes without affecting main data.Frequently asked questions
Is it free and open source?
Yes, it is MIT licensed.
Do I need a special MongoDB?
MongoDB must run as a replica set. The readme shows a one-node Docker example.
Does it copy my data on branching?
No. A branch is a pointer, and checkout materializes the data.
What changes are tracked?
Document inserts, updates, replacements and deletes. Indexes and collection options are not versioned.
How do I add the MCP server?
Run claude mcp add argon -- argon mcp.
Can I use it as a backup?
No. The readme advises keeping independent backups, since garbage collection can expire old history.
If it does not work
- βΊRun argon doctor to check your setup.
- βΊMake sure MongoDB runs as a replica set with rs.initiate done.
- βΊStop source writers and DDL before an import, and use --source-quiesced as the readme shows.
5 new skills a week. 1 minute to read.