MongoDB/mongodb-mcp-setup — Agent Skills | officialskills.sh
Back to skills

mongodb-mcp-setup

Walks through configuring the MongoDB MCP server authentication.

Setup & Installation

npx skills add https://github.com/mongodb/agent-skills --skill mongodb-mcp-setup
or paste the link and ask your coding assistant to install it
https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-mcp-setup
View on GitHub

What This Skill Does

Walks through configuring the MongoDB MCP server authentication. Covers three setup paths: direct connection string, Atlas Service Account credentials, or Atlas Local with Docker. Handles shell profile edits, read-only mode, and IP access list setup without touching credentials directly.

Keeps credentials in a locked-down ~/.mcp-env file sourced from the shell profile instead of pasting secrets into chat or committing them to dotfiles.

When to use it

  • Connecting an agent to an existing Atlas cluster via connection string
  • Setting up Service Account credentials for Atlas Admin API access
  • Running Atlas Local in Docker for offline development
  • Switching an already-configured MCP server from read-write to read-only
  • Adding a developer IP to the Service Account API Access List