MongoDB

MongoDB

Both MongoDB Community Server and MongoDB Atlas are supported.

830
Stars
165
Forks
20
Releases

Overview

MongoDB MCP Server is a Model Context Protocol server that enables MCP clients to interact with MongoDB databases and MongoDB Atlas. It supports Atlas API access via service accounts to empower Atlas tooling, and exposes a broad set of Atlas options (atlas-list-orgs, atlas-list-projects, atlas-create-project, atlas-list-clusters, atlas-inspect-cluster, atlas-create-free-cluster, atlas-connect-cluster, atlas-inspect-access-list, atlas-create-access-list, atlas-list-db-users, atlas-create-db-user, atlas-list-alerts, atlas-get-performance-advisor). It also provides access to MongoDB Database Tools such as connect, find, aggregate, count, insert-many, create-index, update-many, and more. The server can be configured in multiple ways: through environment variables, a MCP configuration file, direct command-line arguments, or Docker, and can optionally use a proxy for outbound calls. It supports running as a standard stdio MCP server or as an HTTP server via transport http, with configurable httpHost and httpPort. Logging and telemetry are configurable through loggers (disk, mcp, stderr), logPath, and MDB_MCP_TELEMETRY. Optional preview features include vectorSearch with Voyage AI embeddings, requiring voyageApiKey. The server also supports exporting data via the exportsPath, with exportTimeoutMs and exportCleanupIntervalMs, exposing an exported-data resource. Security best practices, readiness defaults (read-only mode in examples), and prerequisites (Node.js and credentials) are emphasized.

Details

Owner
mongodb-js
Language
TypeScript
License
Apache License 2.0
Updated
2025-12-07

Features

Atlas API access with service accounts

Authenticate against Atlas using MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET to enable Atlas tooling and API interactions.

Atlas Tools suite

Provides Atlas-related MCP tools (atlas-list-orgs, atlas-list-projects, atlas-create-project, atlas-list-clusters, etc.) for managing Atlas resources.

MongoDB Database Tools

Includes tools like connect, find, aggregate, count, insert-many, create-index, update-many, etc., for data access and manipulation.

Flexible configuration methods

Configure the server via environment variables, MCP configuration files, command-line arguments, and optional proxies.

HTTP transport support

Run the MCP server as an HTTP server using --transport http with configurable httpHost and httpPort.

Logging and telemetry

Configurable loggers (disk, mcp, stderr), logPath, and telemetry control.

Preview features: Vector Search

Preview features such as vectorSearch enabled via Voyage AI embedding models, requiring voyageApiKey.

Exports management

Data exports are managed via exportsPath with exportTimeoutMs and exportCleanupIntervalMs, exposing an exported-data resource.

Audience

DevelopersBuild MCP-enabled apps to access and manage MongoDB Atlas and databases.
DBAs/DevOpsCoordinate Atlas and MongoDB data operations across cloud and on-prem deployments.
MCP IntegratorsDevelop MCP clients to query, monitor, and manage MongoDB data.

Tags

MCPModel Context ProtocolMongoDBAtlasHTTP transportDockerConfigurationAtlas APIVector SearchVoyage AITelemetryExportsSecurity