Developer Tools

MongoDB MCP Server

Use Studio chat to drive this server — credentials stay in your workspace.

MongoDB MCP server for cloud and self-hosted database operations. Works with MongoDB Atlas, self-hosted MongoDB, AWS DocumentDB, and Azure Cosmos DB with MongoDB API. Connect to local MongoDB instances with: pip install mcpbundles

6 tools
Agent guide included
API Key
Start Chatting

Opens MCPBundles Studio with this server selected. After sign-in, chat and run tools from the same thread.

Browse all tools

AI Skill
SKILL.md

Domain knowledge for MongoDB — workflow patterns, data models, and gotchas for your AI agent.

MongoDB

MongoDB stores data in databases → collections → documents. Documents are JSON-like with _id. Works with Atlas, self-hosted, DocumentDB, Cosmos DB MongoDB API. Connection string format: mongodb+srv:// or mongodb://.

Data Model

  • Databases — namespaces that contain one or more collections.
  • Collections — document containers; every query targets a collection name explicitly.
  • Documents — BSON payloads keyed by _id (ObjectIds surface as _id.$oid in JSON). Stable reads use handles like mongodb:document:{collection}:{_id}.
  • Queries — native MongoDB filter documents ({} for full scans, field matchers, $gte ranges, etc.) with sensible limits.

Gotchas

  • Resource id format: mongodb:document:{collection}:{document_id}. The document_id is typically the _id.$oid value.
  • Query syntax: Use valid MongoDB query JSON. For ObjectId, use {"_id": {"$oid": "..."}}.
  • Local proxy: For local MongoDB, use mcpbundles proxy or connection string with localhost.
  • Atlas connection: Use mongodb+srv://cluster.mongodb.net/ with username:password. Network access must allow your IP.

Tools in this Server (6)

Fetch

Fetch a specific MongoDB document by ID. ID format: mongodb:document:collection_name:document_id Example: mongodb:document:users:507f1f77bcf8...

Mongodb Get Ai Description

Get a compact, token-efficient schema description optimized for AI text-to-query generation

Mongodb Get Server Info

Get MongoDB server version and build information

Mongodb List Collections

List all collections in the current database

Mongodb List Databases

List all databases in the MongoDB instance with size information

Search

Search MongoDB collections with flexible query syntax. Query formats: - JSON: {"name": "John", "age": {"$gt": 25}} - Key-value: name=John age...

Frequently Asked Questions

What is the MongoDB MCP server?

MongoDB MCP server for cloud and self-hosted database operations. Works with MongoDB Atlas, self-hosted MongoDB, AWS DocumentDB, and Azure Cosmos DB with MongoDB API. Connect to local MongoDB instances with: pip install mcpbundles It provides 6 tools that AI agents can use through the Model Context Protocol (MCP).

How do I connect MongoDB to my AI agent?

Add the MCPBundles server URL to your MCP client configuration (Claude Desktop, Cursor, VS Code, etc.). The URL format is: https://mcp.mcpbundles.com/bundle/mongodb. Authentication is handled automatically.

How many tools does MongoDB provide?

MongoDB provides 6 tools that can be called by AI agents, along with a SKILL.md that gives your AI agent domain knowledge about when and how to use them.

What authentication does MongoDB require?

MongoDB uses API Key. MongoDB requires credentials. Connect via MCPBundles and authentication is handled automatically.

Setup Instructions

Connect MongoDB to any MCP client in minutes

https://mcp.mcpbundles.com/bundle/mongodb

What is MCP?

Model Context Protocol lets AI tools call external capabilities securely through a single URL. This bundle groups tools behind an MCP endpoint that many clients can use.

Use this bundle in 3 steps

  1. Copy the MCP URL above
  2. Open your AI tool and add a new MCP/connector
  3. Paste the URL and follow any auth prompts

Claude Desktop Users

Skip the manual setup! Use the .mcpb file format for one-click installation. Check the Claude Desktop tab for setup instructions.

Pick your tool tab for exact steps

Select ChatGPT, Cursor, Claude Code, or another tab for copy-paste config.

Ready to chat with MongoDB?

Same flow: Studio opens on this server after sign-in. Keep chatting to call tools from the conversation.

MongoDB MCP Server & Skill — 6 Tools