MongoDB MCP Server

<h2 align="center"> πŸ“’ <strong>COMMUNITY SERVER NOTICE</strong><br/> This is a community-maintained MCP Server.<br/> πŸ‘‰ For the

Local serverstdio

What is the MongoDB MCP Server?

πŸ“’ COMMUNITY SERVER NOTICE This is a community-maintained MCP Server. πŸ‘‰ For the official MongoDB

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
aggregateExecute MongoDB aggregation pipelines against the connected database
explainGet execution plans for aggregation pipelines

Configuration

VariableDescriptionRequired
MONGODB_URIConfiguration value read at startup.Optional

Example prompts to try

  • β€œUse MongoDB to aggregate.”
  • β€œUse MongoDB to Input.”
  • β€œUse MongoDB to explain.”

Frequently asked questions

Yes. All operations are strictly read-only. No write or delete actions are allowed.