Skip to main content
Glama
test.js271 B
import { MongoClient, Db, Collection } from 'mongodb'; const client = await MongoClient.connect("mongodb://localhost:27017/"); const db = client.db("common"); const a =await db.listCollections().toArray() console.log(a) console.log(JSON.stringify(a))

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nan-qin/mcp-mongodb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server