MongoDB MCP Server
Provides tools for interacting with MongoDB databases, including document operations (find, insert, update, delete), aggregation pipelines, collection management, and document counting.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MongoDB MCP Serverlist all collections in my database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MongoDB MCP Server
A Model Context Protocol (MCP) server that provides MongoDB database operations through a standardized interface. This server allows AI assistants and other MCP clients to interact with MongoDB databases using natural language commands.
What is MCP?
The Model Context Protocol (MCP) is a standardized way for AI assistants to interact with external tools and data sources. This MongoDB MCP server acts as a bridge between AI models and MongoDB databases, enabling secure and controlled database operations.
Related MCP server: MongoDB Mongoose MCP
Features
Document Operations: Find, insert, update, and delete documents
Aggregation Pipeline: Run complex MongoDB aggregation queries
Collection Management: List collections and get collection statistics
Document Counting: Count documents with optional filtering
Flexible Querying: Support for filters, sorting, and limiting results
Available Tools
1. find_documents
Find documents in a MongoDB collection with optional filtering, sorting, and limiting.
Parameters:
collection(required): Collection namefilter(optional): MongoDB filter query (default: {})limit(optional): Maximum number of documents to return (default: 10)sort(optional): Sort criteria (default: {})
2. count_documents
Count documents in a collection with optional filtering.
Parameters:
collection(required): Collection namefilter(optional): MongoDB filter query (default: {})
3. insert_document
Insert a single document into a collection.
Parameters:
collection(required): Collection namedocument(required): Document to insert
4. update_documents
Update multiple documents in a collection.
Parameters:
collection(required): Collection namefilter(required): MongoDB filter queryupdate(required): Update operationsupsert(optional): Create document if not found (default: false)
5. delete_documents
Delete multiple documents from a collection.
Parameters:
collection(required): Collection namefilter(required): MongoDB filter query
6. aggregate
Run aggregation pipeline on a collection.
Parameters:
collection(required): Collection namepipeline(required): Array of aggregation pipeline stages
7. list_collections
List all collections in the database.
Parameters: None
8. get_collection_stats
Get statistics for a specific collection.
Parameters:
collection(required): Collection name
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables natural language querying of MongoDB data by transforming AI agent questions into MongoDB aggregations. Supports secure data separation, semantic vector search, and advanced lookup capabilities for database interactions.5,1296MIT
- Alicense-qualityFmaintenanceEnables Claude to interact with MongoDB databases through natural language, supporting queries, aggregations, CRUD operations, and index management with optional Mongoose schema validation.433MIT
- Alicense-qualityDmaintenanceEnables LLMs to interact with MongoDB databases through a complete suite of CRUD operations, administrative tasks, and index management tools. It supports database and collection handling, aggregation pipelines, and comprehensive server monitoring via the Model Context Protocol.3MIT
- Alicense-qualityDmaintenanceEnables AI assistants to interact natively with MongoDB databases, including schema discovery, CRUD operations, aggregation pipelines, and index management via natural language.30MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Shyamkadiwar/MongoDB-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server