MongoDB That Works
JSON →A MongoDB MCP server with schema discovery and field validation. Requires a MONGODB_URI environment variable.
Install
npm install -g @sourabhshegane/mongodb-mcp-that-works Tools · 20
- find_documents Find documents in a MongoDB collection with optional filtering, projection, sorting, and pagination.
- insert_documents Insert one or more documents into a MongoDB collection.
- update_documents Update documents in a MongoDB collection matching a filter.
- delete_documents Delete documents from a MongoDB collection matching a filter.
- aggregate Run an aggregation pipeline on a MongoDB collection.
- list_collections List all collections in the connected MongoDB database.
- create_collection Create a new collection in the MongoDB database.
- drop_collection Drop a collection from the MongoDB database.
- create_index Create an index on a collection.
- drop_index Drop an index from a collection.
- list_indexes List all indexes on a collection.
- count_documents Count documents in a collection matching a filter.
- distinct_values Get distinct values for a field across documents in a collection.
- find_one_and_update Find a single document and update it atomically.
- find_one_and_delete Find a single document and delete it atomically.
- bulk_write Execute multiple write operations in bulk.
- run_command Run a raw MongoDB command against the database.
- get_server_status Get the status of the MongoDB server.
- explain_query Get the execution plan for a query.
- validate_collection Validate a collection's data and indexes.