MongoDB MCP Server
@MCP-Mirror
About MongoDB MCP Server
Mirror of
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongodb-js_mongodb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mongodb-mcp-server",
"--apiClientId=your-atlas-service-accounts-client-id",
"--apiClientSecret=your-atlas-service-accounts-client-secret"
]
}
}
}Tools
No tools detected
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 server for interacting with MongoDB databases and MongoDB Atlas. It provides AI/LLM assistants with tools to manage Atlas resources and perform database operations.
How to use MongoDB MCP Server?
Install via npx and configure with either a MongoDB connection string or Atlas API credentials. Set environment variables or pass command-line arguments. Then add the server to your MCP client’s configuration file (e.g., Windsurf, VSCode, Claude Desktop, Cursor).
Key features of MongoDB MCP Server
- List, create, and inspect MongoDB Atlas organizations and projects.
- Manage Atlas clusters, IP access lists, and database users.
- Execute find, aggregate, insert, update, and delete operations.
- Control access with read-only mode and disabled tools.
- Configure telemetry, log path, and tool categories.
Use cases of MongoDB MCP Server
- AI‑powered code assistants managing MongoDB Atlas infrastructure.
- Automating database queries and schema exploration via chat.
- Securely provisioning free Atlas clusters from an LLM interface.
- Enforcing read‑only access for data analysis without mutation risk.
FAQ from MongoDB MCP Server
What runtime is required?
Node.js v20 or later.
How do I connect to a MongoDB database?
Provide a MongoDB connection string via the --connectionString argument or the MDB_MCP_CONNECTION_STRING environment variable.
How do I use the Atlas tools?
Set Atlas API credentials (service account client ID and secret) via environment variables (MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET) or command‑line arguments.
Can I restrict the server to read‑only operations?
Yes, use --readOnly or MDB_MCP_READ_ONLY=true to disable all create, update, and delete tools.
How is telemetry handled?
Telemetry is enabled by default. Disable it by setting MDB_MCP_TELEMETRY=disabled or DO_NOT_TRACK=1.
More Databases MCP servers
Snowflake MCP Server
isaacwassermanmcp-server-duckdb
ktanaka101A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
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.
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
Comments