How do I connect to MongoDB?
Pass the MongoDB URI as a command-line argument, e.g., `npx -y mcp-mongo-server mongodb://localhost:27017/database`, or set the `MCP_MONGODB_URI` environment variable.
@kiliczsh
基本信息
A Model Context Protocol Server for MongoDB
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"github:kiliczsh/mcp-mongo-server",
"mongodb://muhammed:kilic@localhost:27017/database"
]
},
"mongodb-readonly": {
"command": "npx",
"args": [
"-y",
"github:kiliczsh/mcp-mongo-server",
"mongodb://muhammed:kilic@localhost:27017/database",
"--read-only"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
MCP MongoDB Server is a Model Context Protocol server that enables LLMs to interact with MongoDB databases. It provides capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface.
Start the server via npx with a MongoDB URI: npx -y mcp-mongo-server mongodb://localhost:27017/database. Use the --read-only flag to prevent write operations. Alternatively, set the MCP_MONGODB_URI and MCP_MONGODB_READONLY environment variables.
Pass the MongoDB URI as a command-line argument, e.g., `npx -y mcp-mongo-server mongodb://localhost:27017/database`, or set the `MCP_MONGODB_URI` environment variable.
Yes, use the `--read-only` flag or set `MCP_MONGODB_READONLY` to `"true"`. Read-only mode also uses secondary read preference.
The server provides tools for query, aggregate, update, insert, and more. See the [Available Tools](docs/tools.md) documentation.
ObjectId handling has three configurable modes: auto, none, and force for string-to-ObjectId conversion.
Yes, MCP MongoDB Server is released under the MIT license.
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.

Model Context Protocol Servers
An official Qdrant Model Context Protocol (MCP) server implementation
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
评论