Mongodb Mcp Setup
mongodb/agent-skillsOfficial
Guided setup for the MongoDB MCP server, covering connection string, service account, and Atlas Local options.
- CCM score
- 72 of 100
- skills.sh installs
- 4.3K
- GitHub stars
- 210
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers installing and configuring the MongoDB MCP server for agentic clients, including detecting whether the server is already installed
- Walks through three authentication options: connection string, Atlas service account credentials, and Atlas Local in Docker
- Enforces that credentials are never requested or handled by the agent; users add them to their shell profile or client config
- Designed for users who want to connect an agent to MongoDB or Atlas but lack the server or credentials set up
Install
$ npx -y skills add mongodb/agent-skills --skill mongodb-mcp-setup -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
MongoDB MCP Server Setup
This skill guides users through configuring the MongoDB MCP server for use with an agentic client.
Overview
The MongoDB MCP server requires authentication. Users have three options:
-
Connection String (Option A): Direct connection to a specific cluster
- Quick setup for single cluster
- Requires
MDB_MCP_CONNECTION_STRINGenvironment variable
-
Service Account Credentials (Option B): MongoDB Atlas Admin API access
- 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
MDB_MCP_API_CLIENT_IDandMDB_MCP_API_CLIENT_SECRETenvironment variables
-
Atlas Local (Option C): Local development with Docker
- Best for local testing - zero configuration required
- Runs Atlas locally in Docker, requires Docker installed
- No credentials or cloud cluster access
Details
- Repository
- github.com/mongodb/agent-skills
- Categories
- Databases, AI Agents & LLM Apps, Skill & Plugin Building
- First seen
- Jun 3, 2026
More from mongodb/agent-skills
All 8Similar to Mongodb Mcp Setup
More Databasesmongodb-atlasPluginanthropics/claude-plugins-official48.1K starsConnect to MongoDB Atlas clusters only through the Atlas Managed MCP Server. Sign in with your Atlas account to explore data, manage collections, optimize queri
atlas-stream-processingSkillmongodb/agent-skills392 installsSkill for provisioning and debugging MongoDB Atlas Stream Processing workspaces, connections, and processors.
aws-mcp-setupSkillzxkane/aws-skills766 installsConfiguration guide for AWS MCP servers, covering a full credentialed server and a no-auth documentation server.
Mongodb Mcp ServerMCP servermongodb-js1.2K starsConnects to MongoDB databases and Atlas clusters for querying, data changes, and cluster administration.
configuring-dbt-mcp-serverSkilldbt-labs/dbt-agent-skills1.1K installsGenerates MCP server configuration for dbt, resolves authentication, and validates connectivity for AI clients.