# MongoDB MCP Server

> Apache-2.0 official MCP server for MongoDB

**Category:** AI Agents  
**Pricing:** open-source  
**URL:** https://github.com/mongodb-js/mongodb-mcp-server  
**GitHub:** https://github.com/mongodb-js/mongodb-mcp-server  
**Added:** 2026-10-12

---

## The Hook

The MongoDB MCP server lets an agent query collections, inspect schemas and indexes, and run aggregations against a MongoDB database.

## What's Good

Apache-2.0 (mongodb-js/mongodb-mcp-server), release v3.0.5. Runs locally with npx or Docker against any MongoDB connection string, with a read-only mode for safer exploration.

## The Catch

For Atlas, the README points you to the MongoDB-hosted Atlas MCP server over OAuth instead; the local server is mainly for self-hosted MongoDB. Give it a read-only user unless the agent truly needs to write.

## Verdict

The official way to let an agent explore a self-hosted MongoDB — use the hosted server for Atlas.
