Mongo is an MCP server that connects large language models directly to MongoDB databases. Designed for software engineers, database administrators, and developers using MCP-compliant clients such as Claude Desktop, this tool allows users to query, inspect, and update their NoSQL databases through natural language prompts. Instead of writing raw MongoDB query language commands or accessing dedicated database GUIs, users can ask their AI assistant to fetch collections, filter documents, inspect structures, and run database operations. The server exposes specific functions to manage data and index configurations on the fly. It supports querying with projection, inserting single records, updating document fields, deleting stale data, and handling index creation and removal. By bridging the Model Context Protocol with MongoDB connection strings, the server facilitates rapid data exploration, debugging, and administrative workflows without leaving the AI assistant interface.
Category: Databases & Data Stores
Tags: database, mongodb, nosql, query
~/Library/Application Support/Claude/claude_desktop_config.json - Windows: %APPDATA%/Claude/claude_desktop_config.json 4. Add the MongoDB server configuration under the mcpServers object: json { "mcpServers": { "mongodb": { "command": "npx", "args": [ "mongo-mcp", "mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin" ] } } } 5. Alternatively, install it automatically via Smithery by running npx -y @smithery/cli install mongo-mcp --client claude. 6. Restart Claude Desktop to apply the configuration.Part of MCP Servers
Mongo MCP is a Model Context Protocol server that enables AI assistants like Claude Desktop to connect directly to MongoDB databases. It provides tools to query collections, inspect schemas, manage indexes, and execute document insert, update, or delete operations.
You can add it to your Claude Desktop configuration file under mcpServers using npx to execute mongo-mcp alongside your MongoDB connection URL. Alternatively, you can use the Smithery CLI by running npx -y @smithery/cli install mongo-mcp --client claude.
The server provides database query and index tools, including listCollections, find, insertOne, updateOne, deleteOne, createIndex, dropIndex, and indexes. These tools enable complete document retrieval, mutation, and index management through conversational prompts.
Yes, Mongo MCP is open source software published under the MIT License on GitHub by QuantGeekDev.