Skip to content
mongodb avatar

Mongodb Mcp Setup

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
View on GitHub

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 -y

Installs 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:

  1. Connection String (Option A): Direct connection to a specific cluster

    • Quick setup for single cluster
    • Requires MDB_MCP_CONNECTION_STRING environment variable
  2. 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_ID and MDB_MCP_API_CLIENT_SECRET environment variables
  3. 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 8

Similar to Mongodb Mcp Setup

More Databases