一键导入
mongodb
Query and manage MongoDB databases via Atlas Data API (curl) or mongosh. Connect to MongoDB Atlas collections without installing heavy CLI tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query and manage MongoDB databases via Atlas Data API (curl) or mongosh. Connect to MongoDB Atlas collections without installing heavy CLI tools.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Eliminate AI-sounding patterns from any written output. Applies editorial rules synthesized from the best open-source anti-slop tools: banned phrases, structural pattern detection, false agency checks, and a scoring rubric. Use as a quality gate for ANY content — blog posts, social media, emails, documentation, marketing copy. Triggers on: "make it sound human", "less AI", "remove slop", "humanize this", "doesn't sound natural", "too AI", "rewrite naturally", or when reviewing any AI-generated text before publishing.
AWS Bedrock AgentCore comprehensive expert for deploying and managing all AgentCore services. Use when working with Gateway, Runtime, Memory, Identity, or any AgentCore component. Covers MCP target deployment, credential management, schema optimization, runtime configuration, memory management, and identity services.
AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implementing infrastructure as code, or when the user mentions CDK, CloudFormation, IaC, cdk synth, cdk deploy, or wants to define AWS infrastructure programmatically. Covers CDK app structure, construct patterns, stack composition, and deployment workflows.
This skill provides AWS cost optimization, monitoring, and operational best practices with integrated MCP servers for billing analysis, cost estimation, observability, and security assessment.
AWS serverless and event-driven architecture expert based on Well-Architected Framework. Use when building serverless APIs, Lambda functions, REST APIs, microservices, or async workflows. Covers Lambda with TypeScript/Python, API Gateway (REST/HTTP), DynamoDB, Step Functions, EventBridge, SQS, SNS, and serverless patterns. Essential when user mentions serverless, Lambda, API Gateway, event-driven, async processing, queues, pub/sub, or wants to build scalable serverless applications with AWS best practices.
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, or debugging agent systems that require effective context management.
| name | mongodb |
| description | Query and manage MongoDB databases via Atlas Data API (curl) or mongosh. Connect to MongoDB Atlas collections without installing heavy CLI tools. |
| version | 1.0.0 |
| allowed-tools | Bash |
| metadata | {"credentials":["MONGODB_DATA_API_URL","MONGODB_API_KEY","MONGODB_URL"]} |
Query MongoDB databases using the Atlas Data API (curl) or mongosh fallback.
# Find documents via Atlas Data API
curl -s -X POST "$MONGODB_DATA_API_URL/action/find" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"filter": {},
"limit": 10
}'
| Variable | Description | Example |
|---|---|---|
MONGODB_DATA_API_URL | Atlas Data API endpoint | https://data.mongodb-api.com/app/data-xxxxx/endpoint/data/v1 |
MONGODB_API_KEY | Atlas Data API key | abc123... |
MONGODB_CLUSTER | Cluster name | Cluster0 |
MONGODB_DATABASE | Default database name | myapp |
| Variable | Description | Example |
|---|---|---|
MONGODB_URL | Full connection string | mongodb+srv://user:pass@cluster.mongodb.net/mydb |
curl -s -X POST "$MONGODB_DATA_API_URL/action/find" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"limit": 1
}' | jq .
curl -s -X POST "$MONGODB_DATA_API_URL/action/find" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"filter": {"status": "active"},
"sort": {"created_at": -1},
"limit": 20
}' | jq '.documents'
curl -s -X POST "$MONGODB_DATA_API_URL/action/findOne" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"filter": {"email": "john@example.com"}
}' | jq '.document'
curl -s -X POST "$MONGODB_DATA_API_URL/action/insertOne" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"document": {
"name": "John",
"email": "john@example.com",
"created_at": {"$date": "'"$(date -u +%Y-%m-%dT%H:%M:%SZ)"'"}
}
}' | jq .
curl -s -X POST "$MONGODB_DATA_API_URL/action/updateOne" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"filter": {"email": "john@example.com"},
"update": {"$set": {"status": "active"}}
}' | jq .
curl -s -X POST "$MONGODB_DATA_API_URL/action/deleteOne" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "users",
"filter": {"email": "john@example.com"}
}' | jq .
curl -s -X POST "$MONGODB_DATA_API_URL/action/aggregate" \
-H "api-key: $MONGODB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"dataSource": "'"$MONGODB_CLUSTER"'",
"database": "'"$MONGODB_DATABASE"'",
"collection": "orders",
"pipeline": [
{"$match": {"status": "completed"}},
{"$group": {"_id": "$customer_id", "total": {"$sum": "$amount"}, "count": {"$sum": 1}}},
{"$sort": {"total": -1}},
{"$limit": 10}
]
}' | jq '.documents'
If you need interactive shell access or the Data API isn't available:
# Install mongosh on the fly (not pre-installed to save ~100MB)
npx mongosh "$MONGODB_URL" --eval "db.users.find().limit(10).toArray()"
# List databases
npx mongosh "$MONGODB_URL" --eval "show dbs"
# List collections
npx mongosh "$MONGODB_URL" --eval "show collections"
# Count documents
npx mongosh "$MONGODB_URL" --eval "db.users.countDocuments()"
# Find with filter
npx mongosh "$MONGODB_URL" --eval "db.users.find({status: 'active'}).limit(10).toArray()"
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid API key | Check MONGODB_API_KEY |
no app found | Wrong Data API URL | Verify MONGODB_DATA_API_URL in Atlas |
no rule exists | Collection not allowed | Enable collection in Atlas Data API settings |
cannot find dataSource | Wrong cluster name | Check MONGODB_CLUSTER matches Atlas |
connection refused (mongosh) | Wrong URL | Verify MONGODB_URL connection string |
jq to format JSON responses from the Data API$date wrapper for date fields in Data API requests"projection": {"_id": 0, "name": 1, "email": 1} to limit returned fields