MongoDB MCP Server
@yairsabag
MongoDB MCP Server について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"yairsabag-mongodb-mcp-server-new": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--apiClientId=your-atlas-service-accounts-client-id",
"--apiClientSecret=your-atlas-service-accounts-client-secret"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MongoDB MCP Server?
A Model Context Protocol (MCP) server that enables AI assistants to interact directly with MongoDB databases and MongoDB Atlas. It provides a set of tools for querying and managing MongoDB data and Atlas infrastructure, requiring either a MongoDB connection string or Atlas API credentials.
How to use MongoDB MCP Server?
The server can be run via npx or Docker, configured through command-line arguments, environment variables, or an MCP client configuration file. For example, add a mcpServers entry to your client’s config file with the command and arguments for your chosen connection method (connection string or Atlas API credentials) and the server will start automatically.
Key features of MongoDB MCP Server
- Interact with MongoDB databases using CRUD, aggregation, and indexing tools
- Manage MongoDB Atlas organizations, projects, clusters, and access lists
- Read-only mode to restrict tools to read and metadata operations only
- Disable specific tools, operation types, or entire categories (atlas, mongodb)
- Configurable telemetry collection with opt-out support
- Docker support for isolated execution without local Node.js
Use cases of MongoDB MCP Server
- Let an AI assistant run ad‑hoc MongoDB queries and aggregations in a natural language interface
- Automate common Atlas administration tasks like creating free clusters or managing access lists
- Enable read‑only analysis of MongoDB data for reporting or auditing without risk of modifications
- Integrate database schema exploration and index inspection into AI‑powered development workflows
FAQ from MongoDB MCP Server
What are the prerequisites for using MongoDB MCP Server?
Node.js v20.10.0 or later is required, plus either a MongoDB connection string or Atlas API credentials (service account credentials for Atlas tools). The server will not start unless at least one of these is configured.
How do I connect MongoDB MCP Server to my database?
You can provide a MongoDB connection string via the --connectionString argument, the MDB_MCP_CONNECTION_STRING environment variable, or specify it directly in the MCP client configuration file. The connection string can point to any MongoDB cluster—local or Atlas.
Can I restrict MongoDB MCP Server to read‑only operations?
Yes. Set readOnly to true via the --readOnly command-line argument or the MDB_MCP_READ_ONLY environment variable. This prevents any tool with create, update, or delete operation types from being registered.
What Atlas API tools are available?
Atlas tools include listing organizations, projects, and clusters; creating projects and free clusters; inspecting and modifying access lists; managing database users; and listing alerts. These tools require Atlas service account credentials.
Can I disable specific tools or categories?
Yes. Use the disabledTools configuration option with a list of tool names, operation types (create, update, delete, read, metadata), or categories (atlas, mongodb). Supply it as a comma‑separated string via environment variable or a space‑separated string via command line.
「データベース」の他のコンテンツ
MCP Server for Milvus
zilliztechModel Context Protocol Servers for Milvus
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
PostgreSQL Model Context Protocol (PG-MCP) Server
stuzeroMCP MongoDB Server
kiliczshA Model Context Protocol Server for MongoDB
コメント