mongodb-mcp-server

ryaker/mongodb-mcp-server

3.1

If you are the rightful owner of mongodb-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that provides Claude with the ability to interact with MongoDB databases.

Tools

Functions exposed to the LLM to take actions

aggregate

Run a MongoDB aggregation pipeline.

sample

Get random sample documents.

explain

Get the execution plan for an aggregation pipeline.

find

Find documents matching a query.

findOne

Find a single document matching a query.

count

Count documents matching a query.

distinct

Get distinct values for a field.

insertOne

Insert a single document.

insertMany

Insert multiple documents.

updateOne

Update a single document.

updateMany

Update multiple documents.

deleteOne

Delete a single document.

deleteMany

Delete multiple documents.

listCollections

List all collections in a database.

listDatabases

List all databases on the server.

dropCollection

Drop an entire collection.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources