Agent skill
mongodb
Query MongoDB Atlas — collections, documents, and aggregations via the Data API.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/mongodb-thinkfleetai-thinkfleet-engine
Metadata
Additional technical details for this skill
- thinkfleetbot
-
{ "emoji": "\ud83c\udf43", "requires": { "env": [ "MONGODB_URI" ], "bins": [ "curl", "jq" ] } }
SKILL.md
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
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
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
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-xxxwith your Atlas app ID. - Always confirm before inserting or deleting documents.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?