MongoDB
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_MONGODB_URI | Yes | MongoDB Connection URL | |
| MCP_MONGODB_READONLY | No | MongoDB Connection Read-Only mode. If read-only set to 'true'. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| queryB | Execute a MongoDB query with optional execution plan analysis |
| aggregateB | Execute a MongoDB aggregation pipeline with optional execution plan analysis |
| updateC | Update documents in a MongoDB collection |
| serverInfoA | Get MongoDB server information including version, storage engine, and other details |
| insertB | Insert one or more documents into a MongoDB collection |
| createIndexB | Create one or more indexes on a MongoDB collection |
| countC | Count documents in a collection matching a query |
| listCollectionsB | List all collections in the MongoDB database |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| analyze_collection | Analyze a MongoDB collection structure and contents |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a distinct database operation: aggregation, counting, indexing, inserting, listing collections, querying, server info, and updating. No two tools have overlapping purposes.
All tool names use lowercase with camelCase for multi-word terms (e.g., 'createIndex', 'listCollections', 'serverInfo'), following a consistent pattern of verb or verb_noun.
8 tools cover core MongoDB operations (CRUD, aggregation, indexing, metadata) without being too few or excessive for a general-purpose database server.
The set lacks a tool for deleting documents or collections, which is a fundamental operation. Without 'delete' or 'remove', agents cannot complete typical data lifecycle actions, leaving a significant gap.