MongoDB MCP Server
JSON →An MCP server providing tools and prompts for interacting with a MongoDB database.
Install
npx @modelcontextprotocol/inspector Tools · 25
- find_documents Find documents in a MongoDB collection
- insert_documents Insert documents into a MongoDB collection
- update_documents Update documents in a MongoDB collection
- delete_documents Delete documents from a MongoDB collection
- aggregate Run an aggregation pipeline on a MongoDB collection
- list_collections List all collections in a MongoDB database
- create_collection Create a new MongoDB collection
- drop_collection Drop a MongoDB collection
- create_index Create an index on a MongoDB collection
- drop_index Drop an index from a MongoDB collection
- list_indexes List all indexes on a MongoDB collection
- count_documents Count documents in a MongoDB collection
- distinct_values Get distinct values for a field in a MongoDB collection
- find_one_and_update Find a document and update it atomically
- find_one_and_delete Find a document and delete it atomically
- find_one_and_replace Find a document and replace it atomically
- bulk_write Perform bulk write operations on a MongoDB collection
- watch_collection Watch for changes on a MongoDB collection
- run_command Run a MongoDB command
- list_databases List all databases in the MongoDB server
- create_database Create a new MongoDB database
- drop_database Drop a MongoDB database
- get_server_status Get the status of the MongoDB server
- get_db_stats Get statistics for a MongoDB database
- get_collection_stats Get statistics for a MongoDB collection