mongoatlas
MongoDB Atlas Emulator
MongoDB Atlas emulation with two HTTP surfaces: the Atlas Administration API v2 for projects, clusters, and database users, and the Atlas Data API v1 for document CRUD and aggregation. Documents live in memory. The emulator speaks HTTP only; it does not run a MongoDB wire protocol server, so the MongoDB drivers and mongodb+srv:// connection strings it returns can't connect to it.
MongoDB retired the hosted Data API on September 30, 2025. The emulator keeps it for code and tests that still call it.
Start
Local listeners bind to 127.0.0.1 by default. For access from containers or other machines, pass --host 0.0.0.0 to the CLI or hostname: '0.0.0.0' to createEmulator. Configure --base-url or baseUrl for advertised URLs reachable by those clients.
# MongoDB Atlas only
npx emulate --service mongoatlas
# Default port (when run alone)
# http://localhost:4000
When all services start together, MongoDB Atlas listens on http://localhost:4010.