MongoDB MCP Server
@seeun0210
MongoDB MCP Server について
mongodb mcp server를 만들어보자
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mongo_mcp_server": {
"command": "node",
"args": [
"dist/index.js",
"mongodb://localhost:27017"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MongoDB MCP Server?
A Model Context Protocol (MCP) server for MongoDB databases. It analyzes database collection structures and generates queries using AI, providing two main tools: ERD generation and natural‑language query generation.
How to use MongoDB MCP Server?
Install dependencies (npm install), build (npm run build), then run the server with node dist/index.js "mongodb://localhost:27017". For use with Claude Desktop, configure the MCP server in claude_desktop_config.json pointing to the built index.js and a MongoDB URI.
Key features of MongoDB MCP Server
- Generates ERD diagrams (Mermaid or JSON format)
- Creates MongoDB queries from natural language descriptions
- Analyzes actual database structure for accurate queries
- Supports both raw MongoDB and Mongoose query syntax
- Optional explanations for generated queries
Use cases of MongoDB MCP Server
- Quickly visualize database schema by generating ERD from collections
- Let AI write MongoDB queries from plain‑language requests
- Explore an unfamiliar database with auto‑generated ERD
- Speed up development by prototyping queries without manual MongoDB syntax
FAQ from MongoDB MCP Server
What tools are available in MongoDB MCP Server?
Two tools: generateErd (produces ERD from database collections) and generateQuery (generates MongoDB/Mongoose queries from a natural‑language description).
How do I connect the server to my MongoDB instance?
Pass the MongoDB connection string as a command‑line argument when starting the server, e.g., node dist/index.js "mongodb://localhost:27017".
Can I choose the output format for ERD?
Yes, the format parameter accepts "mermaid" (default) or "json".
Does query generation support Mongoose syntax?
Yes, the type parameter can be set to "mongoose" (default is "mongodb").
What runtime environment is required?
Node.js with npm. The server is built and run locally; a running MongoDB instance must be accessible at the provided URI.
「データベース」の他のコンテンツ
Meilisearch MCP Server
meilisearchA Model Context Protocol (MCP) server for interacting with Meilisearch through LLM interfaces.
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently

Redis
modelcontextprotocolModel Context Protocol Servers
コメント