MongoDB MCP Server Security

For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

MongoDB MCP Server Security

This section includes information on the MongoDB MCP Server security options.

Authentication

SCRAM is the default authentication mechanism for MongoDB. To connect to your MongoDB deployments with the MCP server using other authentication methods, see the following pages:

  • [Connect with OpenID Connect (OIDC)](https://www.mongodb.com/docs/mcp-server/local-mcp/security/connect-with-oidc.md#std-label-mcp-server-oidc

  • [Connect with LDAP](https://www.mongodb.com/docs/mcp-server/local-mcp/security/connect-with-ldap.md#std-label-mcp-server-ldap

  • [Connect with Kerberos](https://www.mongodb.com/docs/mcp-server/local-mcp/security/connect-with-kerberos.md#std-label-mcp-server-kerberos

  • [Connect with X.509 Certificates](https://www.mongodb.com/docs/mcp-server/local-mcp/security/connect-with-x509.md#std-label-mcp-server-x509

  • [Connect with Proxy](https://www.mongodb.com/docs/mcp-server/local-mcp/security/connect-with-proxy.md#std-label-mcp-server-proxy

Compatibility

SCRAM X.509 Kerberos LDAP OIDC
MongoDB Community ✓ ✓
MongoDB Enterprise ✓ ✓ ✓ ✓ ✓
MongoDB Atlas (M10 and above) ✓ ✓ ✓ ✓
MongoDB Atlas (Free) ✓ ✓
MongoDB Atlas (Flex) ✓ ✓

To learn more about the available authentication mechanisms in MongoDB, see [Authentication Mechanisms.](https://www.mongodb.com/docs/manual/core/authentication.md#std-label-available-authentication-mechanisms