🗄️ MongoDB MCP Server for LLMS
@QuantGeekDev
关于 🗄️ MongoDB MCP Server for LLMS
A mongo db server for the model context protocol (MCP)
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mongo-mcp": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mongo-mcp",
"--client",
"claude"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is 🗄️ MongoDB MCP Server for LLMS?
A Model Context Protocol (MCP) server that enables LLMs to interact directly with MongoDB databases. It allows querying collections, inspecting schemas, and managing data through natural language, designed for use with MCP clients such as the Claude Desktop app.
How to use 🗄️ MongoDB MCP Server for LLMS?
Install via npx by adding the server configuration to your Claude Desktop config file (MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%/Claude/claude_desktop_config.json). The command uses npx mongo-mcp "mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin". Alternatively, install automatically via Smithery with npx -y @smithery/cli install mongo-mcp --client claude. Prerequisites: Node.js 18+ and npx. A local test sandbox can be set up using Docker Compose and the provided seed script.
Key features of 🗄️ MongoDB MCP Server for LLMS
- Collection schema inspection
- Document querying with filtering and projection
- Index management (create, drop, list)
- Document operations (insert, update, delete)
Use cases of 🗄️ MongoDB MCP Server for LLMS
- List available collections and inspect their schemas
- Find documents with complex filters (e.g., electronics under $1000)
- Create and manage indexes to optimize query performance
- Insert, update, or delete documents directly via natural language
- Query across collections using user references (e.g., orders by email)
FAQ from 🗄️ MongoDB MCP Server for LLMS
What are the prerequisites for using this server?
Node.js 18+, npx, and an MCP client (e.g., Claude Desktop app). Docker and Docker Compose are needed only for the optional local test sandbox.
How do I connect to my existing MongoDB database?
Provide your MongoDB connection URL in the server configuration: mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin.
Can I test the server without a real MongoDB instance?
Yes. Use the provided Docker Compose file to start a local MongoDB and run npm run seed to populate sample data (Users, Products, Orders collections).
What tools does the server expose to the LLM?
Query tools: find, listCollections, insertOne, updateOne, deleteOne. Index tools: createIndex, dropIndex, indexes.
Where is the server configuration stored for Claude Desktop?
In claude_desktop_config.json located at ~/Library/Application Support/Claude/ on macOS or %APPDATA%/Claude/ on Windows.
数据库 分类下的更多 MCP 服务器

Redis
modelcontextprotocolModel Context Protocol Servers
Database Gateway
centralmindUniversal MCP-Server for your Databases optimized for LLMs and AI-Agents.
MongoDB Lens
furey🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
mcp-server-qdrant: A Qdrant MCP server
qdrantAn official Qdrant Model Context Protocol (MCP) server implementation
mcp-server-duckdb
ktanaka101A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities
评论