MongoDB Remote MCP Server

๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~1112 tok36 toolsยทOnline542msยท30d uptime: 100%ยทLast checked 12m ago

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).

https://mcp.mongodb.com/mcp
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 โ†’

Streamable HTTPhttps://mcp.mongodb.com/mcp
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mongodb": {
      "url": "https://mcp.mongodb.com/mcp"
    }
  }
}

๐Ÿงฐ MongoDB MCP Tools & Schema (36)

ToolSafetyDescriptionParameters
list-connections
~32 tok
๐ŸŸข ReadList configured MongoDB connections.โ€”
connect
~33 tok
๐ŸŸข ReadConnect to a MongoDB instance or Atlas cluster.โ€”
list-databases
~31 tok
๐ŸŸข ReadList databases of a connection.โ€”
list-collections
~31 tok
๐ŸŸข ReadList collections of a database.โ€”
collection-indexes
~31 tok
๐ŸŸข ReadList indexes of a collection.โ€”
collection-schema
~32 tok
๐ŸŸข ReadInfer the schema of a collection.โ€”
collection-storage-size
~33 tok
๐ŸŸข ReadGet storage size of a collection.โ€”
db-stats
~27 tok
๐ŸŸข ReadGet database statistics.โ€”
count
~29 tok
๐ŸŸข ReadCount documents matching a filter.โ€”
find
~29 tok
๐ŸŸข ReadRun a find query on a collection.โ€”
aggregate
~29 tok
๐ŸŸข ReadRun an aggregation pipeline.โ€”
explain
~31 tok
๐ŸŸข ReadExplain a find or aggregate query plan.โ€”
insert-one
~28 tok
๐ŸŸ  WriteInsert a single document.โ€”
insert-many
~29 tok
๐ŸŸ  WriteInsert multiple documents.โ€”
update-one
~28 tok
๐ŸŸ  WriteUpdate a single document.โ€”
update-many
~29 tok
๐ŸŸ  WriteUpdate multiple documents.โ€”
rename-collection
~29 tok
๐ŸŸ  WriteRename a collection.โ€”
delete-one
~28 tok
๐Ÿ”ด DestructiveDelete a single document.โ€”
delete-many
~29 tok
๐Ÿ”ด DestructiveDelete multiple documents.โ€”
drop-collection
~28 tok
๐Ÿ”ด DestructiveDrop a collection.โ€”
drop-database
~27 tok
๐Ÿ”ด DestructiveDrop a database.โ€”
create-index
~30 tok
๐ŸŸ  WriteCreate an index on a collection.โ€”
export
~29 tok
๐ŸŸข ReadExport query results to a file.โ€”
mongodb-logs
~30 tok
๐ŸŸข ReadRetrieve MongoDB server logs.โ€”
atlas-list-orgs
~31 tok
๐ŸŸข ReadList MongoDB Atlas organizations.โ€”
atlas-list-projects
~29 tok
๐ŸŸข ReadList Atlas projects.โ€”
atlas-list-clusters
~29 tok
๐ŸŸข ReadList Atlas clusters.โ€”
atlas-inspect-cluster
~31 tok
๐ŸŸข ReadInspect an Atlas cluster.โ€”
atlas-create-cluster
~30 tok
๐ŸŸ  WriteCreate an Atlas cluster.โ€”
atlas-create-free-cluster
~34 tok
๐ŸŸ  WriteCreate a free-tier Atlas cluster.โ€”
atlas-list-db-users
~31 tok
๐ŸŸข ReadList Atlas database users.โ€”
atlas-create-db-user
~32 tok
๐ŸŸ  WriteCreate an Atlas database user.โ€”
atlas-list-access-list
~33 tok
๐ŸŸข ReadList Atlas IP access list entries.โ€”
atlas-create-access-list
~33 tok
๐ŸŸ  WriteAdd an Atlas access list entry.โ€”
atlas-inspect-access-list
~33 tok
๐ŸŸข ReadInspect the Atlas access list.โ€”
atlas-connect-cluster
~34 tok
๐ŸŸข ReadGet connection details for a cluster.โ€”

๐Ÿ›ก๏ธ Security, Quality & Context Token Audit

๐Ÿ›ก๏ธ Grade A+Context tax: ~1112 tokens injected into every system prompt by this serverโ€™s 36 tools

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)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ 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-Authenticate challenge.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.

๐Ÿš€ How to Connect

  1. Copy the MongoDB endpoint URL
    The remote endpoint is https://mcp.mongodb.com/mcp.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport http mongodb https://mcp.mongodb.com/mcp. Cursor: add "mongodb": { "url": "https://mcp.mongodb.com/mcp" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Complete the OAuth consent
    On 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.
  4. Verify with the online inspector
    Paste 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

MongoDB status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/mongodb.svg)](https://remotemcp.net/servers/mongodb)
MongoDB inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/mongodb.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fmcp.mongodb.com%2Fmcp)
MongoDB audit grade badge
[![MCP Audit Grade](https://remotemcp.net/api/badge/grade/mongodb.svg)](https://remotemcp.net/servers/mongodb)
MongoDB context tax badge
[![Context Tax](https://remotemcp.net/api/badge/tokens/mongodb.svg)](https://remotemcp.net/servers/mongodb)

Related Servers

Supabase MCPSupabase

Supabase's hosted MCP server for your projects and databases. Agents can run SQL, apply migrations and generate TypeScript types with OAuth-scoped access.

https://mcp.supabase.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~992 tok30 toolsOnline34ms
Airtable MCPAirtable

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.

https://mcp.airtable.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~389 tok5 toolsOnline209ms

Neon's official remote MCP server for serverless Postgres. Agents can manage projects and branches and run SQL over Streamable HTTP with OAuth.

https://mcp.neon.tech/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~742 tok23 toolsOnline338ms

Prisma's official remote MCP server. Agents can create and manage Prisma Postgres databases, run SQL and inspect schemas over OAuth.

https://mcp.prisma.io/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.1๐Ÿ›ก๏ธ A+~301 tok5 toolsOnline505ms