Install MongoDB in Claude Code
claude mcp add --transport http mongodb-2 https://mcp.mongodb.com/mcp{
"mcpServers": {
"mongodb-2": {
"url": "https://mcp.mongodb.com/mcp"
}
}
}Your client opens a browser window to sign in on first use.
Frequently asked questions
What does the MongoDB MCP server do?
Query MongoDB Atlas clusters and manage collections and indexes.
Is the MongoDB MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does MongoDB run locally or remotely?
Remote. Hosted by the provider. You connect with a URL, nothing to install.
How do I add MongoDB to Claude Code?
Run: claude mcp add --transport http mongodb-2 https://mcp.mongodb.com/mcp
More databases MCP servers
View allMrc Data
meacheal-ai/mrc-data
China apparel supply chain data: verified suppliers, lab-tested fabrics and industrial clusters, with AATCC, ISO and GB lab-test verification.
DynamoDB-Toolbox
Leverages your Schemas and Access Patterns to interact with your DynamoDB Database using natural language.
Neon
Provision and query Neon Postgres projects and branches.
Convex Backend
get-convex/convex-backend
Convex database integration to introspect tables and functions and run one-off queries.
PostData
Free, no-signup IoT sensor store: get a device name, read readings and history, wait for a flashed board to report.
Convex
Query and manage Convex deployments, tables, and functions.