
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that lets Claude interact with MongoDB databases for querying, aggregation, data manipulation, and database management.
MongoDB MCP Server is cataloged as an MCP server attributed to ryaker. An MCP server that lets Claude interact with MongoDB databases for querying, aggregation, data manipulation, and database management. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MongoDB MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · 16bd97115ed8 · Fetched 2026-11-13 14:04:20 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A Model Context Protocol (MCP) server that provides Claude with the ability to interact with MongoDB databases. This implementation allows Claude to perform a wide range of MongoDB operations, including querying, aggregation, data manipulation (CRUD), and database management directly from the conversation.
This MongoDB MCP server implements the Model Context Protocol to create a bridge between Claude and MongoDB databases. It enables Claude to execute MongoDB commands through a standardized interface, making it possible to analyze, manage, and work with your data directly in conversations.
find, findOne), perform aggregations (aggregate), count documents (count), get distinct values (distinct), and sample data (sample).insertOne, insertMany), update (updateOne, updateMany), and delete (deleteOne, deleteMany) documents.listDatabases), list collections (listCollections), and drop collections (dropCollection).explain).DEFAULT_DATABASE).Clone this repository (replace ryaker with your username if forked):
git clone git@github.com-personal:ryaker/mongodb-mcp-server.git
# Or use HTTPS if preferred
# git clone https://github.com/ryaker/mongodb-mcp-server.git
cd mongodb-mcp-server
Install dependencies:
npm install
Configure Claude Desktop or Cursor:
Settings > Extensions > Model Context Protocol. In Claude Desktop, it might be in a config.json file.mongo-mcp-server.js file and set the required environment variables.Example Configuration (adjust path as needed):
{
"mcpServers": {
"mongo-custom-server": { // You can name this key anything descriptive
"command": "node",
"args": ["/Volumes/Dev/localDev/MCPServers/CustomMongo_clean/mongo-mcp-server.js"], // <-- Make sure this path is correct!
"env": {
"MONGODB_URI": "mongodb+srv://your_username:your_password@your_cluster.mongodb.net/?retryWrites=true&w=majority", // <-- Your MongoDB connection string
"DEFAULT_DATABASE": "YourDefaultDbName" // <-- Optional: Set a default database
}
}
}
}
MONGODB_URI with your actual MongoDB connection string. Ensure the user specified in the URI has the necessary permissions for the operations you intend to perform.DEFAULT_DATABASE is optional. If set, operations will target this database unless overridden by the database parameter in a tool call.Restart Claude Desktop or Cursor to load the new MCP server.
The server exposes the following tools. Most tools accept an optional database parameter to specify the target database, otherwise they use the DEFAULT_DATABASE set in the environment variables.
Querying & Reading
aggregate: Run a MongoDB aggregation pipeline.
collection (string, required): Name of the collection.pipeline (array, required): Aggregation pipeline stages.database (string, optional): Target database.sample: Get random sample documents.
collection (string, required): Name of the collection.count (number, optional, default: 5, max: 10): Number of documents to sample.database (string, optional): Target database.explain: Get the execution plan for an aggregation pipeline.
collection (string, required): Name of the collection.pipeline (array, required): Aggregation pipeline stages.database (string, optional): Target database.find: Find documents matching a query.
collection (string, required): Name of the collection.filter (object, optional, default: {}): Query filter.projection (object, optional, default: {}): Fields to include/exclude.limit (number, optional, default: 10, max: 100): Max documents to return.sort (object, optional, default: {}): Sort criteria.database (string, optional): Target database.findOne: Find a single document matching a query.
collection (string, required): Name of the collection.filter (object, required): Query filter.projection (object, optional, default: {}): Fields to include/exclude.database (string, optional): Target database.count: Count documents matching a query.
collection (string, required): Name of the collection.filter (object, optional, default: {}): Query filter.database (string, optional): Target database.distinct: Get distinct values for a field.
collection (string, required): Name of the collection.field (string, required): Field name.filter (object, optional, default: {}): Query filter.database (string, optional): Target database.Data Manipulation (Write/Delete)
insertOne: Insert a single document.
collection (string, required): Name of the collection.document (object, required): Document to insert.database (string, optional): Target database.insertMany: Insert multiple documents.
collection (string, required): Name of the collection.documents (array, required): Array of documents.database (string, optional): Target database.updateOne: Update a single document.
collection (string, required): Name of the collection.filter (object, required): Filter to select document.update (object, required): Update operations (e.g., $set).upsert (boolean, optional, default: false): Create if not found?database (string, optional): Target database.updateMany: Update multiple documents.
collection (string, required): Name of the collection.filter (object, required): Filter to select documents.update (object, required): Update operations.database (string, optional): Target database.deleteOne: Delete a single document.
collection (string, required): Name of the collection.filter (object, required): Filter to select document.database (string, optional): Target database.deleteMany: Delete multiple documents.
collection (string, required): Name of the collection.filter (object, required): Filter to select documents.database (string, optional): Target database.Database/Collection Management
listCollections: List all collections in a database.
nameOnly (boolean, optional, default: false): Return only names?database (string, optional): Target database.listDatabases: List all databases on the server.
nameOnly (boolean, optional, default: true): Return only names?dropCollection: Drop an entire collection.
collection (string, required): Name of the collection to drop.confirm (boolean, required): Must be true to confirm deletion.database (string, optional): Target database.Querying Data:
User: Find the 5 most recent user documents in the 'users' collection.
Claude: (Calls 'find' with collection='users', limit=5, sort={createdAt: -1})
User: Show me the user document with email 'test@example.com'.
Claude: (Calls 'findOne' with collection='users', filter={email: 'test@example.com'})
User: How many orders were placed yesterday in the 'orders' collection in the 'sales' database?
Claude: (Calls 'count' with collection='orders', filter={orderDate: {$gte: startOfDay, $lt: endOfDay}}, database='sales')
Aggregating Data:
User: What are the distinct product categories in the 'products' collection?
Claude: (Calls 'distinct' with collection='products', field='category')
User: Show me the total sales per month from the 'orders' collection.
Claude: (Calls 'aggregate' with collection='orders', pipeline=[...])
Modifying Data:
User: Insert a new user document: { name: 'Alice', email: 'alice@example.com' }
Claude: (Calls 'insertOne' with collection='users', document={ name: 'Alice', email: 'alice@example.com' })
User: Update the user with email 'alice@example.com' to set their status to 'active'.
Claude: (Calls 'updateOne' with collection='users', filter={email: 'alice@example.com'}, update={$set: {status: 'active'}})
User: Delete all log entries older than 30 days from the 'logs' collection.
Claude: (Calls 'deleteMany' with collection='logs', filter={timestamp: {$lt: thirtyDaysAgo}})
Managing Collections:
User: List all collections in the 'staging' database.
Claude: (Calls 'listCollections' with database='staging')
User: Please drop the 'test_data' collection. Confirm deletion.
Claude: (Calls 'dropCollection' with collection='test_data', confirm=true)
MONGODB_URI) for connection strings.MONGODB_URI is correct. Ensure the MongoDB user has permissions and network access (firewalls, IP lists). Check server logs (console.error) via Claude Desktop/Cursor logs.Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MongoDB MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mongodb-mcp-server-ryaker)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.