MongoDB MCP server for querying, inserting, updating, and deleting documents in MongoDB collections
MongoDB MCP has 7 tools with basic descriptions and schemas, but significant quality gaps. Tool names are clear (verb_noun pattern), but descriptions lack depth and actionable guidance. Parameter descriptions are minimal (1-2 sentences). No output schemas documented. Error handling returns generic success/error dicts without recovery guidance. Missing critical security considerations for destructive operations. Schemas present but lack constraints (enums, ranges, patterns). No pagination support despite query_collection returning lists. No idempotency hints for write operations.
Create a new collection. Args: collection_name: The name of the collection to create Returns: Result of the create operation
Delete a collection. Args: collection_name: The name of the collection to delete Returns: Result of the delete operation
Delete documents from a MongoDB collection. Args: collection_name: The name of the collection filter_query: Query to select documents to delete Returns: Result of the delete operation
Get list of collection names from the database
Insert a document into a MongoDB collection. Args: collection_name: The name of the collection document: Document to insert Returns: Result of the insert operation including the inserted ID
Query documents from a MongoDB collection. Args: collection_name: The name of the collection query: MongoDB query filter in JSON format (default: empty query that matches all documents) limit: Maximum number of documents to return (default: 10) Returns: List of documents matching the query
No output schemas documented. Tools return dicts with inconsistent structures (some have 'success' field, others don't). LLMs cannot reliably extract results or chain tool calls.
Destructive operations (delete_documents, delete_collection) lack confirmation/dry-run support and have no permission gates. Agents can irreversibly delete data without safeguards.
Error handling is generic. All exceptions return {'success': False, 'error': str(e)}. No recovery guidance, no categorization (retryable vs fatal), no actionable next steps for LLM.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Update documents in a MongoDB collection. Args: collection_name: The name of the collection filter_query: Query to select documents to update update: Update operations to apply (using MongoDB update operators) Returns: Result of the update operation
query_collection returns unbounded results (default limit=10, but no max enforced). No pagination support (no offset/cursor, no total_count). Large result sets will blow context windows.
Parameter descriptions are minimal (1-2 sentences). 'query' param says 'MongoDB query filter in JSON format' but doesn't explain syntax, operators, or examples. 'filter_query' and 'update' lack constraint documentation.