Back to Home
MCP-Mirror icon

mongodb-js_mongodb-mcp-server

Verified Safe

by MCP-Mirror

Overview

Provides a Model Context Protocol server to enable AI assistants to interact with MongoDB databases and MongoDB Atlas resources through natural language.

Installation

Run Command
npx -y mongodb-mcp-server --connectionString "mongodb+srv://username:password@cluster.mongodb.net/myDatabase"

Environment Variables

  • MDB_MCP_API_CLIENT_ID
  • MDB_MCP_API_CLIENT_SECRET
  • MDB_MCP_CONNECTION_STRING
  • MDB_MCP_LOG_PATH
  • MDB_MCP_DISABLED_TOOLS
  • MDB_MCP_READ_ONLY
  • MDB_MCP_TELEMETRY
  • DO_NOT_TRACK

Security Notes

The server uses standard practices for credential management (environment variables, token-based authentication for Atlas). Sensitive information in logs is redacted using 'mongodb-redact'. Tool arguments are strongly typed with Zod schemas, mitigating injection risks. Secure password generation uses 'crypto.randomBytes'. No explicit 'eval' or direct shell execution of arbitrary user input was found. The use of EJSON for BSON type handling is safe.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-15

Tags

MongoDBAtlasMCPAI AgentsDatabase