MongoDB MCP Server
JSON →A read-only Model Context Protocol (MCP) server for querying MongoDB databases, version 1.0.4, actively maintained. It exposes tools like list_databases, list_collections, list_indexes, run_aggregation, and run_aggregation_to_file via the MCP standard, allowing AI agents to inspect MongoDB schemas and run aggregation pipelines. Key differentiators: entirely read-only (rejects write stages $out, $merge), enforces a 50-second query timeout, and uses secondaryPreferred read preference for safety. Requires Node >=18 and a MongoDB connection string via MONGODB_URI environment variable. Published on npm, includes TypeScript types.
Traffic · last 30 days stale · no recent hits
total hits 9
actors 3 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇨🇳 China · 🇨🇦 Canada · AR
Resources
packagemongodb-mcp ↗