Agent skill
mongodb
Script for read/write MongoDB
Stars
1
Forks
0
Install this agent skill to your Project
npx add-skill https://github.com/rakibdev/dotfiles/tree/main/home/.config/ai/skills/mongodb
SKILL.md
Usage
bash
bun -e "
import { MongoClient } from 'mongodb'
const client = new MongoClient(process.env.MCP_MONGODB_URI)
const db = client.db()
// your query here
console.log(await db.collection('users').find().limit(1).toArray())
await client.close()
"
- Import
ObjectIdfrommongodbif needed. - Use
bun -edirectly. Don't write scripts to files. MCP_MONGODB_URIis set in.env— bun loads it automatically.
Didn't find tool you were looking for?