Databases
API Key
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.
Base URL
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 |
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" }
}'
Connect MongoDB Atlas to AI
Deploy a MongoDB Atlas MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to MongoDB Atlas through these tools:
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
Deploy in 60 seconds
Describe what you need, AI generates the code, and IOX deploys it globally.
Deploy MongoDB Atlas MCP Server →