Skip to main content

mongodb

Query MongoDB Atlas — collections, documents, and aggregations via the Data API.

Quellinformationen

Repository
ThinkfleetAI/thinkfleet-engine
Letzte Quellaktivität
1. Februar 2026 um 16:21
Erkannte Sprache von SKILL.md
Englisch
Sterne
0
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
mongodb
description
Query MongoDB Atlas — collections, documents, and aggregations via the Data API.
metadata
{"thinkfleetbot":{"emoji":"🍃","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# MongoDB Atlas Query collections and documents via the MongoDB Atlas Data API. ## Environment Variables - `MONGODB_URI` - MongoDB connection URI or Atlas Data API key ## Find documents ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/find" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","filter":{},"limit":10}' | jq '.documents[]' ``` ## Insert document ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/insertOne" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","document":{"name":"test","value":42}}' | jq '{insertedId}' ``` ## Aggregate ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/aggregate" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","pipeline":[{"$group":{"_id":"$field","count":{"$sum":1}}}]}' | jq '.documents[]' ``` ## Notes - Replace `data-xxx` with your Atlas app ID. - Always confirm before inserting or deleting documents.
Auf GitHub ansehen