Basic information
About MongoDB MCP Server
mongodb mcp server를 만들어보자
MongoDB MCP Server is a MCP server in the Databases category listed in the AddMCP.net directory, published by seeun0210. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: mcp-server, mongo-mcp, mongodb.
Setup
{
"mcpServers": {
"mongo_mcp_server": {
"command": "node",
"args": [
"dist/index.js",
"mongodb://localhost:27017"
]
}
}
}
{
"mcpServers": {
"mongo_mcp_server": {
"command": "node",
"args": [
"dist/index.js",
"mongodb://localhost:27017"
]
}
}
}
{
"servers": {
"mongo_mcp_server": {
"command": "node",
"args": [
"dist/index.js",
"mongodb://localhost:27017"
]
}
}
}
MongoDB MCP Server — by seeun0210 config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongo_mcp_server": {
"command": "node",
"args": [
"dist/index.js",
"mongodb://localhost:27017"
]
}
}
}
MongoDB MCP Server — by seeun0210 tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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
Frequently asked questions
1 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).
2 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".
3 Can I choose the output format for ERD?
Yes, the format parameter accepts "mermaid" (default) or "json".
4 Does query generation support Mongoose syntax?
Yes, the type parameter can be set to "mongoose" (default is "mongodb").
5 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.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In