MongoDB Remote MCP Server
MongoDB's hosted MCP server connects agents to Atlas clusters โ browse databases, run read queries, inspect schemas and manage Atlas resources with OAuth-scoped access. Endpoint verified live on RemoteMCP.net (preflighted 401 OAuth challenge).
- Provider
- MongoDB โ
- Categories
- ๐๏ธ Databases & Backend-as-a-Service
ไธญๆ็ฎไป
MongoDB ๅฎๆนๆ็ฎก็่ฟ็จ MCP ๆๅกๅจใMongoDB ๆ็ฎก MCP๏ผ่ฟๆฅไปฃ็่ณ Atlas ้็พค๏ผๆต่งๆฐๆฎๅบใๆง่กๆฅ่ฏขใๆฃๆฅ Schema ไธ็ฎก็ไบ่ตๆบใOAuth 2.1 ไฟๆคใ
Maintainer of MongoDB? Claim or update this listing โ
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"mongodb": {
"url": "https://mcp.mongodb.com/mcp"
}
}
}claude mcp add --transport http mongodb https://mcp.mongodb.com/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"mongodb": {
"type": "http",
"url": "https://mcp.mongodb.com/mcp"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://mcp.mongodb.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.mongodb.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"mongodb": {
"serverUrl": "https://mcp.mongodb.com/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"mongodb": {
"url": "https://mcp.mongodb.com/mcp"
}
}
}Add to ~/.codex/config.toml โ Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.mongodb] url = "https://mcp.mongodb.com/mcp"
Add to cline_mcp_settings.json (Cline โ MCP Servers โ Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"mongodb": {
"type": "streamableHttp",
"url": "https://mcp.mongodb.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers โ httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"mongodb": {
"httpUrl": "https://mcp.mongodb.com/mcp"
}
}
}๐งฐ MongoDB MCP Tools & Schema (36)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| list-connections ~32 tok | ๐ข Read | List configured MongoDB connections. | โ |
| connect ~33 tok | ๐ข Read | Connect to a MongoDB instance or Atlas cluster. | โ |
| list-databases ~31 tok | ๐ข Read | List databases of a connection. | โ |
| list-collections ~31 tok | ๐ข Read | List collections of a database. | โ |
| collection-indexes ~31 tok | ๐ข Read | List indexes of a collection. | โ |
| collection-schema ~32 tok | ๐ข Read | Infer the schema of a collection. | โ |
| collection-storage-size ~33 tok | ๐ข Read | Get storage size of a collection. | โ |
| db-stats ~27 tok | ๐ข Read | Get database statistics. | โ |
| count ~29 tok | ๐ข Read | Count documents matching a filter. | โ |
| find ~29 tok | ๐ข Read | Run a find query on a collection. | โ |
| aggregate ~29 tok | ๐ข Read | Run an aggregation pipeline. | โ |
| explain ~31 tok | ๐ข Read | Explain a find or aggregate query plan. | โ |
| insert-one ~28 tok | ๐ Write | Insert a single document. | โ |
| insert-many ~29 tok | ๐ Write | Insert multiple documents. | โ |
| update-one ~28 tok | ๐ Write | Update a single document. | โ |
| update-many ~29 tok | ๐ Write | Update multiple documents. | โ |
| rename-collection ~29 tok | ๐ Write | Rename a collection. | โ |
| delete-one ~28 tok | ๐ด Destructive | Delete a single document. | โ |
| delete-many ~29 tok | ๐ด Destructive | Delete multiple documents. | โ |
| drop-collection ~28 tok | ๐ด Destructive | Drop a collection. | โ |
| drop-database ~27 tok | ๐ด Destructive | Drop a database. | โ |
| create-index ~30 tok | ๐ Write | Create an index on a collection. | โ |
| export ~29 tok | ๐ข Read | Export query results to a file. | โ |
| mongodb-logs ~30 tok | ๐ข Read | Retrieve MongoDB server logs. | โ |
| atlas-list-orgs ~31 tok | ๐ข Read | List MongoDB Atlas organizations. | โ |
| atlas-list-projects ~29 tok | ๐ข Read | List Atlas projects. | โ |
| atlas-list-clusters ~29 tok | ๐ข Read | List Atlas clusters. | โ |
| atlas-inspect-cluster ~31 tok | ๐ข Read | Inspect an Atlas cluster. | โ |
| atlas-create-cluster ~30 tok | ๐ Write | Create an Atlas cluster. | โ |
| atlas-create-free-cluster ~34 tok | ๐ Write | Create a free-tier Atlas cluster. | โ |
| atlas-list-db-users ~31 tok | ๐ข Read | List Atlas database users. | โ |
| atlas-create-db-user ~32 tok | ๐ Write | Create an Atlas database user. | โ |
| atlas-list-access-list ~33 tok | ๐ข Read | List Atlas IP access list entries. | โ |
| atlas-create-access-list ~33 tok | ๐ Write | Add an Atlas access list entry. | โ |
| atlas-inspect-access-list ~33 tok | ๐ข Read | Inspect the Atlas access list. | โ |
| atlas-connect-cluster ~34 tok | ๐ข Read | Get connection details for a cluster. | โ |
๐ก๏ธ Security, Quality & Context Token Audit
Every tool definition (name + description + input schema) is injected into your LLMโs context on every request โ Estimate per-call LLM token cost โ
- No prompt-injection or hidden-character anomalies detected in tool descriptions
- Streamable HTTP primary endpoint (current 2025-03-26 transport)
- OAuth 2.1 with PKCE S256 enforced
- Official first-party endpoint operated by the vendor
- Manually verified by RemoteMCP.net
๐ OAuth 2.1 & Security
- Auth type
- OAuth 2.1
- Dynamic Client Registration
- โ
- PKCE S256
- โ Supported
- Protected resource metadata
- https://mcp.mongodb.com/.well-known/oauth-protected-resource (expected location)
๐งฉ Recommended Agent Skills
๐ MongoDB MCP Endpoint Overview & Security Guide
MongoDB โ Remote MCP Server
MongoDB's hosted MCP server connects agents to Atlas clusters โ browse databases, run read queries, inspect schemas and manage Atlas resources with OAuth-scoped access. The remote endpoint means there is nothing to install โ point your MCP client at the URL and complete the OAuth consent screen. MongoDB operates and versions the server themselves, so tool coverage tracks their API surface as it ships.
Official MongoDB Endpoint & Transport Architecture
- Endpoint URL:
https://mcp.mongodb.com/mcp - Transport: Streamable HTTP
Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. MongoDB does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.
Authentication, Scopes & Permission Boundaries
MongoDB uses OAuth 2.1 โ the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow โ PKCE โ and simply open a browser consent screen.
All 0 cataloged tools are read-only โ MongoDB cannot mutate your account data, which makes it safe to connect broadly.
Common Troubleshooting & Connection Tips
- 401 Unauthorized on connect โ that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact
WWW-Authenticatechallenge. - "Session expired" / stale
Mcp-Session-Idโ just re-sendinitialize; stateless clients can ignore session headers entirely.
๐ How to Connect
- Copy the MongoDB endpoint URLThe remote endpoint is https://mcp.mongodb.com/mcp.
- Add it to your MCP clientClaude Code:
claude mcp add --transport http mongodb https://mcp.mongodb.com/mcp. Cursor: add"mongodb": { "url": "https://mcp.mongodb.com/mcp" }undermcpServersin ~/.cursor/mcp.json. Other clients work similarly. - Complete the OAuth consentOn first connection your client opens a MongoDB consent screen in the browser. Approve it to grant access; the token is stored by the client and refreshed automatically.
- Verify with the online inspectorPaste https://mcp.mongodb.com/mcp into remotemcp.net/inspector, run initialize and tools/list, and confirm MongoDB's 0 tools respond.
โ FAQ
What is the MongoDB remote MCP endpoint?
The primary endpoint is https://mcp.mongodb.com/mcp. It is an official first-party server operated by MongoDB, speaking the Streamable HTTP transport.
How do I authenticate with MongoDB?
MongoDB uses OAuth 2.1. When your client first connects it receives a 401 challenge, discovers the authorization server via RFC 9728 metadata, and opens a browser consent screen.
I'm getting a 401 Unauthorized from MongoDB โ what's wrong?
A 401 means your client hasn't completed (or has lost) the OAuth authorization. Remove and re-add the server in your client to restart the consent flow, and check that your browser session can reach the provider's login page. If the 401 arrives without a WWW-Authenticate header, run it through our OAuth debugger to see what's missing.
Which MCP clients work with MongoDB?
Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport http mongodb https://mcp.mongodb.com/mcp`), VS Code Copilot, ChatGPT connectors, Windsurf, Kiro (`~/.kiro/settings/mcp.json`), and Claude Desktop via the `mcp-remote` bridge.
What tools does MongoDB expose?
0 tools are cataloged in this directory โ including . Use our online inspector to fetch the live tool list straight from the endpoint.
๐ Connect Guides
๐ Embed Status Badge in README
Related Servers
Supabase's hosted MCP server for your projects and databases. Agents can run SQL, apply migrations and generate TypeScript types with OAuth-scoped access.
Airtable's official remote MCP server. Agents can list bases and tables, read records, and create or update rows over OAuth 2.1 with granular scopes.
Neon's official remote MCP server for serverless Postgres. Agents can manage projects and branches and run SQL over Streamable HTTP with OAuth.
Prisma's official remote MCP server. Agents can create and manage Prisma Postgres databases, run SQL and inspect schemas over OAuth.