mongodb-mcp-setup
mongodb mcp setup
What it does
- Quick setup for single cluster
- Requires MDBMCPCONNECTIONSTRING environment variable
- Recommended for Atlas users - simplifies authentication and data access
- Access to Atlas Admin API and dynamic cluster connection via atlas-connect-cluster
- No manual DB user credential management
- Requires MDBMCPAPICLIENTID and MDBMCPAPICLIENTSECRET environment variables
- Best for local testing - zero configuration required
Requirements & configuration
- The MongoDB MCP server requires authentication. Users have three options:
- Requires MDBMCPCONNECTIONSTRING environment variable
- Requires MDBMCPAPICLIENTID and MDBMCPAPICLIENTSECRET environment variables
- Runs Atlas locally in Docker, requires Docker installed
- Self-hosted MongoDB or no Atlas Admin API needs
Configuration: MDB_MCP_CONNECTION_STRINGMDB_MCP_API_CLIENT_IDMDB_MCP_API_CLIENT_SECRETCODEX_MDB_MCP_READ_ONLYSHELL
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
mongodb-mcp-setup FAQ
What does the mongodb-mcp-setup skill do?
Guide users through configuring key MongoDB MCP server options. Use this skill when a user has the MongoDB MCP server installed but hasn't configured the required environment variables, or when they ask about connecting to MongoDB/Atlas and don't have the credentials set up. Quick setup for single cluster Requires MDBMCPCONNECTIONSTRING environment variable
What does mongodb-mcp-setup require?
The MongoDB MCP server requires authentication. Users have three options: Requires MDBMCPCONNECTIONSTRING environment variable Requires MDBMCPAPICLIENTID and MDBMCPAPICLIENTSECRET environment variables Runs Atlas locally in Docker, requires Docker installed Self-hosted MongoDB or no Atlas Admin API needs Configuration keys: MDB_MCP_CONNECTION_STRING, MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, CODEX_, MDB_MCP_READ_ONLY, SHELL.
How do I install mongodb-mcp-setup?
Run: npx -y skills add https://github.com/mongodb/agent-skills --skill mongodb-mcp-setup --agent claude-code — the source lives at github.com/mongodb/agent-skills.
Maintain mongodb-mcp-setup?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[mongodb-mcp-setup on getagentictools](https://getagentictools.com/skills/mongodb-agent-skills-mongodb-mcp-setup?ref=badge) npx agentictools info skills/mongodb-agent-skills-mongodb-mcp-setup The second line is the CLI lookup for this page — handy in READMEs and docs.