M

mongodb.com

5 integrations · MCP · REST · CLI

MongoDB exposes two documented HTTP APIs (Atlas Administration API and Atlas App Services Admin API), an Atlas CLI plus legacy `mongocli`, and an official MongoDB MCP server; authentication is required via Atlas service-account OAuth client credentials, legacy Atlas API key pairs, or an App Services bearer session token minted from Atlas API keys.

discovered 2mo ago
MCP servers1
REST · OpenAPI2
CLI2
Credentials
Atlas service account client ID and client secretoauth2_ccSet up OAuth ↗

In Get Started with the Atlas Administration API, go to Applications in your Atlas organization, click Add new Service Account, assign organization/project roles, create it, and copy the client secret when shown. Use the client ID and secret to mint an OAuth token with the client-credentials flow at POST https://cloud.mongodb.com/api/oauth/token.

Atlas Administration API public/private API key pairbasic$ atlas auth login

Acquired by the CLI — running atlas auth login opens the auth flow and stores the credential.

Atlas App Services Admin API session access tokenbearerGet token ↗

First create Atlas programmatic API keys using Get Started with the Atlas Administration API. Then call the App Services admin login endpoint described in MongoDB Atlas App Services Admin API with JSON {"username":"<Public API Key>","apiKey":"<Private API Key>"} at POST https://services.cloud.mongodb.com/api/admin/v3.0/auth/providers/mongodb-cloud/login to receive an access_token. Use the returned refresh_token with POST https://services.cloud.mongodb.com/api/admin/v3.0/auth/session to renew it.

conventions · 1/8 published

Publish these signals → /publishing