Back to Home
mongodb-js icon

mongodb-mcp-server

Verified Safe

by mongodb-js

Overview

Enabling AI assistants to interact with MongoDB Atlas and local deployments through natural language, providing data context and management capabilities.

Installation

Run Command
npx mongodb-mcp-server --transport http --loggers stderr mcp --previewFeatures search

Environment Variables

  • MDB_MCP_API_CLIENT_ID
  • MDB_MCP_API_CLIENT_SECRET
  • MDB_MCP_CONNECTION_STRING
  • MDB_MCP_VOYAGE_API_KEY
  • DO_NOT_TRACK
  • MDB_MCP_READ_ONLY
  • MDB_MCP_PREVIEW_FEATURES

Security Notes

The server exposes powerful database and Atlas management tools (create, update, delete operations, IP access list modifications). These operations are protected by a user confirmation mechanism and can be selectively disabled via configuration (`readOnly`, `disabledTools`). Sensitive data is redacted in logs. Untrusted data in tool responses is wrapped with clear warnings to prevent LLMs from executing embedded instructions. HTTP transport explicitly logs warnings when binding to public network interfaces and includes basic header validation. It employs secure password generation for temporary Atlas database users. The use of the Model Context Protocol (MCP) means external AI models will interact with these tools, so careful configuration of access controls and enabled tools is crucial.

Similar Servers

Stats

Interest Score99
Security Score8
Cost ClassMedium
Avg Tokens3000
Stars850
Forks172
Last Update2025-12-11

Tags

AIMLMongoDBAzureServerAPIDataNatural LanguageTools