mcp-mongo-tools
OSSAn MCP server for MongoDB backups, restores, and read queries.
MCP server
install
claude mcp add mcp-mongo-tools -- node /opt/mcp/mcp-mongo-tools/build/index.js
# env: MONGO_LOCAL_URI, MONGO_REMOTE_URIIt wraps mongodump and mongorestore for backup and restore, and shells out to mongosh for read queries. The useful abstraction is named environments: you refer to local, remote, or a raw uri instead of pasting connection strings, so the dangerous detail lives in env vars and out of the prompt.
Direction is explicit
Restores are named for where the data flows: restore-prod-to-local and restore-local-to-prod. You never run a generic restore and hope you had the arguments the right way around. drop-database is gated behind a literal "yes", because the difference between reproducing a bug and creating one is usually which direction the copy went.