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 ObjectId from mongodb if needed.
  • Use bun -e directly. Don't write scripts to files.
  • MCP_MONGODB_URI is set in .env — bun loads it automatically.

Didn't find tool you were looking for?

Be as detailed as possible for better results