@universal-mcp-toolkit/server-mongodb
v0.1.1
Published
Database, collection, and document tools for MongoDB.
Maintainers
Readme
Use this server to browse MongoDB collections and query documents from Claude Desktop or Cursor.
What it can do
list-collectionsshows collections in a database and can filter by name prefix.find-documentsruns a normal find query with filter, projection, sort, limit, and skip.aggregate-documentsruns an aggregation pipeline and returns matching documents; write stages stay off unless you opt in.
Setup
Set this env var:
MONGODB_URI: your MongoDB connection string. Get it from the Atlas connect flow at https://www.mongodb.com/docs/atlas/connect-to-database-deployment/ or build one with the MongoDB connection string docs at https://www.mongodb.com/docs/manual/reference/connection-string/
Claude Desktop config
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["-y", "@universal-mcp-toolkit/server-mongodb@latest"],
"env": {
"MONGODB_URI": "${MONGODB_URI}"
}
}
}
}Cursor config
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": ["-y", "@universal-mcp-toolkit/server-mongodb@latest"],
"env": {
"MONGODB_URI": "${MONGODB_URI}"
}
}
}
}Quick example
Ask Claude:
Use the MongoDB server to list collections in my default database, then check the last 10 documents in
orderswherestatusisfailedand tell me the most common error messages.
