Best for
- Users of AI coding assistants (Claude Desktop, Cursor, Windsurf) that need to interact with MongoDB
- Developers who want to query databases using plain language
- Teams sharing MongoDB data access with AI tools
mcp-mongo-server is a feature-rich MongoDB MCP server with read-only mode, schema inference, query and aggregation support. It is easy to use via npx and prioritizes safety by restricting cross-db and server-side JS by default. Suitable for developers to safely explore and manipulate MongoDB through AI tools.
mcp-mongo-server is a Model Context Protocol (MCP) server that enables AI assistants to interact with MongoDB databases. It automatically exposes collections, infers schemas, and runs queries, aggregations, and writes through a standard interface. Supports read-only mode, smart ObjectId handling, schema inference, aggregation pipelines, time conversion, and progress/cancellation. Works over stdio or HTTP transport, compatible with Claude Desktop, Cursor, and Windsurf.
No install needed; run via npx: npx -y mcp-mongo-server mongodb://localhost:27017/mydatabase