What it does
docbase includes no MongoDB driver. Each tool call is first mapped to a plain MongoDB command document, which the default executor runs through the mongosh command-line client using db.runCommand. The tools cover listing databases and collections, find queries and aggregation pipelines, inserting, updating and deleting documents, creating, renaming and dropping collections and databases, managing indexes, reading collection and database statistics, reading server logs, and explaining query plans. Three tools post-process results: collection-schema infers field types from a 25-document sample, mongodb-logs applies a requested line limit, and export returns matching documents under an export title.
It suits an agent that needs to inspect or change MongoDB data through MCP, or a developer who wants the same operations from a terminal. The mcp subcommand starts a stdio MCP server, and the CLI can run individual calls. Arguments are validated before anything reaches the executor, so malformed calls, such as missing database names or non-object filters, fail early.
Live answers require mongosh on the PATH and a reachable MongoDB instance, supplied as a mongodb:// or mongodb+srv:// URL either on the command line or through the MDB_MCP_CONNECTION_STRING environment variable. Without these, the server still starts and lists its tools, and only the call itself reports the problem. The test suite runs against a fake executor, so it needs neither a MongoDB server nor mongosh.
Limitations and requirements
Live calls need mongosh on the PATH and a reachable MongoDB instance. The stock container image bundles no mongosh binary, so containerised live queries need mongosh provided on the host or mounted into the image. The connection string must be a MongoDB URL, given on the command line or through MDB_MCP_CONNECTION_STRING. The update-many and delete-many tools act on all matching documents.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/docbase
MongoDB tools: query, aggregate, index, and administer collections and databases.
v0.1.0As shown on registry.modelcontextprotocol.io when we last read it