Few Servers

Home›MCP servers›Databases

mongodb-mcp-server

VendornpmDocker

MM · placeholder image
Placeholder. No logo or screenshot has been supplied for this listing yet.

Do you maintain this server? Claim this listing to add a logo or screenshot and to correct or extend it. Free, and a person checks every claim.

Claim this listingSuggest a correctionRatings and reviews

What it does

MongoDB Model Context Protocol Server

Description as published by the publisher in the official MCP Registry, read 10 Oct 2026. Not written or verified by Few Servers.

Facts

Registry nameio.github.mongodb-js/mongodb-mcp-server
PublisherGitHub account mongodb-js Namespace verified by the registry through the publisher's GitHub account.
CategoryDatabases sorted by our keyword rules
Transportlocal package (npm, Docker)
Version2.1.0
This version published10 Aug 2026
Vendor's own serverYes: published under the vendor's own namespace
GitHub stars1,142 on mongodb-js/mongodb-mcp-server read from GitHub on 12 Oct 2026. GitHub's count, not a rating by us.
Last seen10 Oct 2026, in our crawl of the official MCP Registry
Tested by Few ServersNo

Install

  • npm package, as published: mongodb-mcp-server · version 2.1.0 · transport stdio
    npx -y mongodb-mcp-server
    Standard run command for npm packages. The registry publishes the package name, not a command; check the repository for required arguments.
  • Docker package, as published: docker.io/mongodb/mongodb-mcp-server:2.1.0 · transport stdio
    docker run -i --rm docker.io/mongodb/mongodb-mcp-server:2.1.0
    Standard run command for Docker packages. The registry publishes the package name, not a command; check the repository for required arguments.

Install details read from the registry record on 12 Oct 2026. We have not run this server.

Keys and settings

The registry record declares a secret value (a key or token) that is not marked required. Declared by the publisher:

  • MDB_MCP_ALLOW_REQUEST_OVERRIDES (environment variable, not marked required): When set to true, allows configuration values to be overridden via request headers and query parameters.
  • MDB_MCP_API_CLIENT_ID (environment variable, secret, not marked required): Atlas API client ID for authentication. Required for running Atlas tools.
  • MDB_MCP_API_CLIENT_SECRET (environment variable, secret, not marked required): Atlas API client secret for authentication. Required for running Atlas tools.
  • MDB_MCP_ASSISTANT_BASE_URL (environment variable, not marked required): Base URL for the MongoDB Assistant API.
  • MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS (environment variable, not marked required): Time in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted.
  • MDB_MCP_CONFIRMATION_REQUIRED_TOOLS (environment variable, not marked required): Comma separated values of tool names that require user confirmation before execution. Requires the client to support elicitation.
  • MDB_MCP_CONNECTION_SCOPE (environment variable, not marked required): Visibility scope for MongoDB connections created at runtime. With 'session' (the default), each MCP session only sees the connections it created (plus the share
  • MDB_MCP_CONNECTION_STRING (environment variable, secret, not marked required): MongoDB connection string for direct database connections. Optional, if not set, you'll need to call the connect tool before interacting with MongoDB data.
  • MDB_MCP_DISABLE_SERVER_SIDE_JS (environment variable, not marked required): When set to true, disallows the use of server-side JavaScript operators (such as $where, $function, and $accumulator) in query filters and aggregation pipelines
  • MDB_MCP_DISABLED_TOOLS (environment variable, not marked required): Comma separated values of tool names, operation types, and/or categories of tools that will be disabled.
  • MDB_MCP_DRY_RUN (environment variable, not marked required): When true, runs the server in dry mode: dumps configuration and enabled tools, then exits without starting the server.
  • MDB_MCP_ELICITATION_TIMEOUT_MS (environment variable, not marked required): Time in milliseconds the user has to respond to an elicitation request (such as a tool confirmation prompt) before it fails.
  • MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS (environment variable, not marked required): Time in milliseconds between export cleanup cycles that remove expired export files.
  • MDB_MCP_EXPORT_TIMEOUT_MS (environment variable, not marked required): Time in milliseconds after which an export is considered expired and eligible for cleanup.
  • MDB_MCP_EXPORTS_PATH (environment variable, not marked required): Folder to store exported data files.
  • MDB_MCP_EXTERNALLY_MANAGED_SESSIONS (environment variable, not marked required): When true, the HTTP transport allows requests with a session ID supplied externally through the 'mcp-session-id' header. When an external ID is supplied, the in
  • MDB_MCP_HEALTH_CHECK_HOST (environment variable, not marked required): Deprecated. Use `monitoringServerHost` instead. Host address to bind the healthCheck HTTP server to (only used when transport is 'http'). If provided, `healthCh
  • MDB_MCP_HEALTH_CHECK_PORT (environment variable, not marked required): Deprecated. Use `monitoringServerPort` instead. Port number for the healthCheck HTTP server (only used when transport is 'http'). If provided, `healthCheckHost`
  • MDB_MCP_HTTP_BODY_LIMIT (environment variable, not marked required): Maximum size of the HTTP request body in bytes (only used when transport is 'http'). This value is passed as the optional limit parameter to the Express.js json
  • MDB_MCP_HTTP_HEADERS (environment variable, not marked required): Header that the HTTP server will validate when making requests (only used when transport is 'http').
  • MDB_MCP_HTTP_HOST (environment variable, not marked required): Host address to bind the HTTP server to (only used when transport is 'http').
  • MDB_MCP_HTTP_PORT (environment variable, not marked required): Port number for the HTTP server (only used when transport is 'http'). Use 0 for a random port.
  • MDB_MCP_HTTP_RESPONSE_TYPE (environment variable, not marked required): The HTTP response type for tool responses: 'sse' for Server-Sent Events, 'json' for standard JSON responses.
  • MDB_MCP_IDLE_TIMEOUT_MS (environment variable, not marked required): Idle timeout for a client to disconnect (only applies to http transport).
  • MDB_MCP_INDEX_CHECK (environment variable, not marked required): When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan.
  • MDB_MCP_LOG_PATH (environment variable, not marked required): Folder to store logs.
  • MDB_MCP_LOGGERS (environment variable, not marked required): Comma separated values of logger types.
  • MDB_MCP_MAX_ACTIVE_CONNECTIONS (environment variable, not marked required): Maximum number of MongoDB connections a single scope (an MCP session by default, see connectionScope) can hold open. When exceeded, the scope's least-recently-u
  • MDB_MCP_MAX_BYTES_PER_QUERY (environment variable, not marked required): The maximum size in bytes for results from a find or aggregate tool call. This serves as an upper bound for the responseBytesLimit parameter in those tools.
  • MDB_MCP_MAX_DOCUMENTS_PER_QUERY (environment variable, not marked required): The maximum number of documents that can be returned by a find or aggregate tool call. For the find tool, the effective limit will be the smaller of this value
  • MDB_MCP_MAX_SESSIONS (environment variable, not marked required): Maximum number of concurrent sessions the HTTP transport will hold in memory (only used when transport is 'http'). Each session holds a full server instance, tr
  • MDB_MCP_MAX_TIME_M_S (environment variable, not marked required): The maximum time in milliseconds that operations are allowed to run on the MongoDB server. When set, this value is passed as the maxTimeMS option to read operat
  • MDB_MCP_MCP_CLIENT_LOG_LEVEL (environment variable, not marked required): Minimum severity level for log messages forwarded to the MCP client.
  • MDB_MCP_MONITORING_SERVER_FEATURES (environment variable, not marked required): Features to expose on the monitoring server (only used when transport is 'http' and monitoringServerHost/monitoringServerPort are set).
  • MDB_MCP_MONITORING_SERVER_HOST (environment variable, not marked required): Host address to bind the monitoring HTTP server to (only used when transport is 'http'). If provided, `monitoringServerPort` must also be set.
  • MDB_MCP_MONITORING_SERVER_PORT (environment variable, not marked required): Port number for the monitoring HTTP server (only used when transport is 'http'). If provided, `monitoringServerHost` must also be set.
  • MDB_MCP_NOTIFICATION_TIMEOUT_MS (environment variable, not marked required): Notification timeout for a client to be aware of disconnect (only applies to http transport).
  • MDB_MCP_PREVIEW_FEATURES (environment variable, not marked required): Comma separated values of preview features that are enabled.
  • MDB_MCP_READ_ONLY (environment variable, not marked required): When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations.
  • MDB_MCP_TELEMETRY (environment variable, not marked required): When set to disabled, disables telemetry collection.
  • MDB_MCP_TRANSPORT (environment variable, not marked required): Either 'stdio' or 'http'.
  • MDB_MCP_VOYAGE_API_KEY (environment variable, secret, not marked required): API key for Voyage AI embeddings service (required for creating Atlas Local deployments with auto-embed vector search capabilities).

RepositoryRegistry record (JSON)npm package

Being listed is not a safety check. Read the repository and check what a server asks for before you connect it. How the directory works.

Ratings and reviews

No reviews yet.