🗄️ MongoDB MCP Server for LLMS
@1RB
关于 🗄️ MongoDB MCP Server for LLMS
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mongo-mcp-1rb": {
"command": "node",
"args": [
"--version",
"#",
"Should",
"show",
"v18.0.0",
"or",
"higher"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is 🗄️ MongoDB MCP Server for LLMS?
An MCP server that enables LLMs to interact directly with MongoDB databases through natural language. It allows querying collections, inspecting schemas, and managing data seamlessly, targeting developers using MCP clients like Claude Desktop or Cursor.ai.
How to use 🗄️ MongoDB MCP Server for LLMS?
Configure your MCP client with the command npx mongo-mcp <connection-string> (or node dist/index.js for local development). Alternatively, install via Smithery using npx -y @smithery/cli install mongo-mcp --client claude. Ensure Node.js 18+ and a running MongoDB instance (local or remote) are available.
Key features of 🗄️ MongoDB MCP Server for LLMS
- Collection schema inspection
- Document querying with filtering and projection
- Index creation, listing, and removal
- Insert, update, and delete document operations
- Secure database access through connection strings
- Comprehensive error handling and validation
Use cases of 🗄️ MongoDB MCP Server for LLMS
- Query and analyze MongoDB data through conversational AI
- Inspect database schemas and indexes without direct shell access
- Perform CRUD operations on documents via natural language
- Manage indexes and optimize query performance with LLM guidance
FAQ from 🗄️ MongoDB MCP Server for LLMS
What are the prerequisites?
Node.js v18 or higher, a MongoDB instance (local or remote), and an MCP client such as Claude Desktop or Cursor.ai.
How do I connect to a MongoDB database?
Provide the MongoDB connection string as a command argument, for example: npx mongo-mcp mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin.
What security practices should I follow?
Create a dedicated MongoDB user with minimal permissions, never use admin credentials, enable access logging, set appropriate read/write permissions on collections, and consider IP allow‑listing.
How can I troubleshoot connection errors?
Verify the connection string, ensure the MongoDB server is running and reachable, and check network permissions. For authentication issues, confirm the username, password, and authSource parameter.
What tools does the server expose?
Query tools: listCollections, find, insertOne, updateOne, deleteOne. Index tools: createIndex, dropIndex, indexes. All follow the MCP specification with Zod‑valid
数据库 分类下的更多 MCP 服务器
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
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Snowflake MCP Server
isaacwassermanDatabase Gateway
centralmindUniversal MCP-Server for your Databases optimized for LLMs and AI-Agents.
评论