MongoDB MCP Server
Enables AI assistants to interact with MongoDB databases through natural language, supporting document CRUD, aggregation, collection listing, and statistics.
README
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.
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.