MongoDB Atlas REST API
Document database with flexible schemas and JSON storage
MongoDB Atlas is a multi-cloud database service that provides a flexible document data model with JSON-like documents. Developers use it for applications requiring flexible schemas, horizontal scaling, and complex data structures. The Atlas Data API enables HTTP access to MongoDB collections without database drivers.
https://data.mongodb-api.com/app/{app-id}/endpoint/data/v1
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /action/findOne | Find a single document in a collection matching the specified filter |
| POST | /action/find | Find multiple documents in a collection with optional filtering, sorting, and projection |
| POST | /action/insertOne | Insert a single document into a collection and return the inserted ID |
| POST | /action/insertMany | Insert multiple documents into a collection in a single operation |
| POST | /action/updateOne | Update a single document matching the filter with the specified update operations |
| POST | /action/updateMany | Update all documents matching the filter with the specified update operations |
| POST | /action/deleteOne | Delete a single document from a collection that matches the specified filter |
| POST | /action/deleteMany | Delete all documents from a collection that match the specified filter |
| POST | /action/aggregate | Run an aggregation pipeline to transform and analyze documents in a collection |
| GET | /clusters | List all MongoDB clusters in your Atlas organization |
| GET | /clusters/{cluster-name} | Get detailed information about a specific MongoDB cluster |
| POST | /clusters | Create a new MongoDB cluster with specified configuration |
| GET | /databases | List all databases in a MongoDB cluster |
| GET | /databases/{database}/collections | List all collections in a specific database |
| POST | /action/replaceOne | Replace a single document in a collection with a new document |
Sponsor this page
AvailableReach developers actively building with MongoDB Atlas. See live pageview data and self-serve checkout — your slot goes live in minutes.
View inventory & pricing →Code Examples
curl -X POST 'https://data.mongodb-api.com/app/data-abcde/endpoint/data/v1/action/findOne' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY' \
-d '{
"dataSource": "Cluster0",
"database": "sample_mflix",
"collection": "movies",
"filter": { "title": "The Shawshank Redemption" }
}'
Use MongoDB Atlas from Claude / Cursor / ChatGPT
Get a hosted MCP endpoint for MongoDB Atlas. Paste your MongoDB Atlas API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls MongoDB Atlas directly with your credentials — no local install, works on mobile.
mongodb_find_documents
Query MongoDB collections using natural language filters and return matching documents with automatic schema detection
mongodb_insert_data
Insert documents into MongoDB collections from structured data or AI-generated content with validation
mongodb_aggregate_analytics
Run complex aggregation pipelines to analyze data, compute statistics, and generate insights from MongoDB collections
mongodb_update_records
Update documents in MongoDB based on conditions with support for atomic operations and field modifications
mongodb_schema_analyzer
Analyze collection schemas, detect data patterns, and suggest optimal indexes for query performance
Connect in 60 seconds
Paste your MongoDB Atlas key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.
Connect MongoDB Atlas to your AI →