~/CLIRank
APIVerified~20ms avg

MongoDB API

Document database - CRUD, aggregation pipeline, change streams, and Atlas.

Install
npm install mongodb
MCP Alternative

There is an MCP server that covers similar functionality: MongoDB MCP Server

Use the API when:

You need fine-grained control, custom error handling, or want to chain multiple API calls in a script.

Use the MCP when:

You want plug-and-play integration with Claude Code and don't need custom logic around the calls.

About

MongoDB's official Node.js driver provides full access to MongoDB. Run CRUD operations, build aggregation pipelines, watch change streams, manage indexes, and handle transactions. 3M weekly downloads. The mongosh CLI provides interactive database access. Works with both self-hosted MongoDB and MongoDB Atlas cloud.

Tags

mongodbdatabasenosqldocumentsatlas

Score Breakdown

CLI Score Breakdown9/11
Official SDK on npm/pip+2
Env var authentication (no browser OAuth)+2
Works in headless/CI environments+2
CLI tool available+1
JSON response for piping/parsing+1
Docs have curl/CLI examples+1
Reasonable rate limits for scripted use0
Machine-readable pricing (md/JSON/static)0
Quality Score Breakdown
npm weekly downloads3.0M
GitHub stars10k
Days since last release6d
Issue close ratio82%
TypeScript typesYes
Docs qualityexcellent
Breaking changesrare

Performance

Latencyus-east-1 - 2026-03-28
p50
15ms
avg
20ms
p95
55ms

Scores

CLI
9
Quality
9
AuthorMongoDB
Weekly installs3,000,000
Last updated3/25/2026

Related

MCP ServerVerified~110ms - Moderate
8.0k/wk

MongoDB MCP Server

Query MongoDB databases, manage collections, and inspect documents.

CLI
8
Quality
8
claude mcp add mongodb -- npx -y mongodb-mcp-server
APIVerified~95ms - Fast
310k/wk

Supabase API

Postgres, auth, storage, edge functions, and realtime subscriptions.

CLI
9
Quality
9
npm install @supabase/supabase-js
APIVerified~45ms - Fast
65k/wk

PlanetScale API

Serverless MySQL with branching, deploy requests, and schema management.

CLI
9
Quality
8
npm install @planetscale/database