The MongoDB MCP server needs authentication before your AI agent can connect. This guide shows three setup options. Connection String is a quick way to connect to one cluster. Service Account Credentials give access to the Atlas Admin API. Atlas Local runs a local database in Docker for testing.
The guide detects if you use a shell client or the Codex app. It then gives step by step instructions. You add your own credentials to your profile or config file.
The agent never asks for or handles your passwords or API keys. You set them up yourself in the final step.
Global
mkdir -p ~/.claude/skills/mongodb-mcp-setupProject
mkdir -p .claude/skills/mongodb-mcp-setupSource Repository
Supabase Postgres Best Practicessupabase/agent-skills
Follow Supabase's expert guidelines for faster Postgres queries and smarter schema design
Firebase Data Connectfirebase/agent-skills
Build secure PostgreSQL backends with Firebase using GraphQL schemas and type-safe SDKs
Convex Migration Helperget-convex/agent-skills
Plan and run safe Convex schema migrations without downtime or data loss
Firebase Firestorefirebase/agent-skills
Master Cloud Firestore setup, queries, full-text search, security rules, and indexes
Neon Postgresneondatabase/agent-skills
Set up and manage Neon Serverless Postgres with ease and speed
Firebase Firestore Standardfirebase/agent-skills
Set up and secure Cloud Firestore with clear provisioning rules and SDK guides
Firebase Firestore Enterprise Native Modefirebase/agent-skills
Master Firestore Enterprise Native Mode provisioning data modeling security rules and SDK usage
Postgresql Table Designwshobson/agents
Design PostgreSQL tables with best practices for performance and reliability