A Model Context Protocol server that provides access to MongoDB databases. It enables LLMs to inspect collection schemas and execute read-only queries.
A Model Context Protocol server that provides access to MongoDB databases. This server enables LLMs to inspect collection schemas and execute read-only queries.
Features
Resources
- List and access collections via
mongodb://
URIs - Each collection has a name, description, and schema
- JSON mime type for schema access
Tools
-
query
- Execute read-only MongoDB queries against the connected database
- Input:
query
(object): The MongoDB query to execute - All queries are executed with read-only permissions
-
aggregate
- Execute read-only MongoDB queries against the connected database
- Input:
aggregate
(object): The MongoDB query to execute - All queries are executed with read-only permissions
Prompts
query
- Provide insights about the collection's structure, data types, and basic statistics- Input:
collection
(string): The name of the collection to analyze - Output:
text
(string): A summary of the collection's structure, data types, and basic statistics
- Input:
aggregate
- Provide insights about the collection's structure, data types, and basic statistics- Input:
collection
(string): The name of the collection to analyze - Output:
text
(string): A summary of the collection's structure, data types, and basic statistics
- Input:
Components
Resources
The server provides schema information for each collection in the database:
- Collection Schemas (
mongodb://<host>/<collection>/schema
)- JSON schema information for each collection
- Includes field names and data types
- Automatically inferred from collection documents
Installation
The author hasn't published this server yet. Once published, it will be available for installation.
Server Statistics
UsageUsed 5 times last month
LicenseMIT
LocalNo
Published12/13/2024