ziangziangziang/mcp-mongodb
If you are the rightful owner of mcp-mongodb and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This repository contains a minimal Model Context Protocol (MCP) server that exposes a MongoDB database to MCP-aware agents.
Tools
Functions exposed to the LLM to take actions
list_databases
Lists all accessible databases.
list_collections
Lists all collections in the specified database.
get_collection_schema
Samples documents from a collection and infers a basic schema.
sample_documents
Returns a small set of example documents from a collection.
query
Queries documents with optional filter, projection, sort, and limit parameters.
aggregation
Executes MongoDB aggregation pipelines for complex data analysis.
search_resource
Searches configured resource markdown files for query strings.
Prompts
Interactive templates invoked by user choice
No prompts
Resources
Contextual data attached and managed by the client