cosmic-mcp

All servers

mongodb-mcp-server

io.github.mongodb-js/mongodb-mcp-server ยท version 3.2.2

Community listing. Not installed or verified by cosmic-mcp. Read the source and its permissions before you run it.

MongoDB Model Context Protocol Server

https://github.com/mongodb-js/mongodb-mcp-server

Quick facts

  • Listing: Community
  • Published Nov 4, 14:41 UTC
  • Transport: stdio
  • Package: npm mongodb-mcp-server 3.2.2
  • Listed by cosmic-mcp: Nov 9, 04:26 UTC
  • Repository: https://github.com/mongodb-js/mongodb-mcp-server
  • npm: https://www.npmjs.com/package/mongodb-mcp-server
  • Needs settings: MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS MDB_MCP_ALLOW_REQUEST_OVERRIDES MDB_MCP_API_CLIENT_ID MDB_MCP_API_CLIENT_SECRET MDB_MCP_ASSISTANT_BASE_URL MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS MDB_MCP_CONFIRMATION_REQUIRED_TOOLS MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS MDB_MCP_CONNECTION_SCOPE MDB_MCP_CONNECTION_STRING MDB_MCP_CONNECTION_STRINGS MDB_MCP_DANGEROUS_HOST_BINDING MDB_MCP_DISABLE_SERVER_SIDE_JS MDB_MCP_DISABLE_UNTRUSTED_DATA_WARNING MDB_MCP_DISABLED_TOOLS MDB_MCP_DRY_RUN MDB_MCP_ELICITATION_TIMEOUT_MS MDB_MCP_EVICTION_IDLE_GRACE_M_S MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS MDB_MCP_EXPORT_TIMEOUT_MS MDB_MCP_EXPORTS_PATH MDB_MCP_EXTERNALLY_MANAGED_SESSIONS MDB_MCP_HEALTH_CHECK_HOST MDB_MCP_HEALTH_CHECK_PORT MDB_MCP_HTTP_BODY_LIMIT MDB_MCP_HTTP_HEADERS MDB_MCP_HTTP_HOST MDB_MCP_HTTP_PORT MDB_MCP_HTTP_RESPONSE_TYPE MDB_MCP_IDLE_TIMEOUT_MS MDB_MCP_INDEX_CHECK MDB_MCP_LOG_PATH MDB_MCP_LOGGERS MDB_MCP_MAX_ACTIVE_CONNECTIONS MDB_MCP_MAX_BYTES_PER_QUERY MDB_MCP_MAX_DOCUMENTS_PER_QUERY MDB_MCP_MAX_SESSIONS MDB_MCP_MAX_TIME_M_S MDB_MCP_MCP_CLIENT_LOG_LEVEL MDB_MCP_MONITORING_SERVER_FEATURES MDB_MCP_MONITORING_SERVER_HOST MDB_MCP_MONITORING_SERVER_PORT MDB_MCP_NOTIFICATION_TIMEOUT_MS MDB_MCP_PREVIEW_FEATURES MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP MDB_MCP_QUERY_COUNT_TIMEOUT_MS MDB_MCP_READ_ONLY MDB_MCP_TELEMETRY MDB_MCP_TIMEOUT_MS MDB_MCP_TRANSPORT MDB_MCP_VOYAGE_API_KEY

AI and LLMs Databases

Setup snippets

Generated from the registry entry. cosmic-mcp has not run or reviewed this server; values in angle brackets are yours to fill in.

Run it locally (npm)

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "mongodb-mcp-server": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp aggregation count max time ms cap>",
        "MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS": "<your mdb mcp aggregation count timeout ms>",
        "MDB_MCP_ALLOW_REQUEST_OVERRIDES": "<your mdb mcp allow request overrides>",
        "MDB_MCP_API_CLIENT_ID": "<your mdb mcp api client id>",
        "MDB_MCP_API_CLIENT_SECRET": "<your mdb mcp api client secret>",
        "MDB_MCP_ASSISTANT_BASE_URL": "<your mdb mcp assistant base url>",
        "MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS": "<your mdb mcp atlas temporary database user lifetime ms>",
        "MDB_MCP_CONFIRMATION_REQUIRED_TOOLS": "<your mdb mcp confirmation required tools>",
        "MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS": "<your mdb mcp connection idle timeout ms>",
        "MDB_MCP_CONNECTION_SCOPE": "<your mdb mcp connection scope>",
        "MDB_MCP_CONNECTION_STRING": "<your mdb mcp connection string>",
        "MDB_MCP_CONNECTION_STRINGS": "<your mdb mcp connection strings>",
        "MDB_MCP_DANGEROUS_HOST_BINDING": "<your mdb mcp dangerous host binding>",
        "MDB_MCP_DISABLED_TOOLS": "<your mdb mcp disabled tools>",
        "MDB_MCP_DISABLE_SERVER_SIDE_JS": "<your mdb mcp disable server side js>",
        "MDB_MCP_DISABLE_UNTRUSTED_DATA_WARNING": "<your mdb mcp disable untrusted data warning>",
        "MDB_MCP_DRY_RUN": "<your mdb mcp dry run>",
        "MDB_MCP_ELICITATION_TIMEOUT_MS": "<your mdb mcp elicitation timeout ms>",
        "MDB_MCP_EVICTION_IDLE_GRACE_M_S": "<your mdb mcp eviction idle grace m s>",
        "MDB_MCP_EXPORTS_PATH": "<your mdb mcp exports path>",
        "MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS": "<your mdb mcp export cleanup interval ms>",
        "MDB_MCP_EXPORT_TIMEOUT_MS": "<your mdb mcp export timeout ms>",
        "MDB_MCP_EXTERNALLY_MANAGED_SESSIONS": "<your mdb mcp externally managed sessions>",
        "MDB_MCP_HEALTH_CHECK_HOST": "<your mdb mcp health check host>",
        "MDB_MCP_HEALTH_CHECK_PORT": "<your mdb mcp health check port>",
        "MDB_MCP_HTTP_BODY_LIMIT": "<your mdb mcp http body limit>",
        "MDB_MCP_HTTP_HEADERS": "<your mdb mcp http headers>",
        "MDB_MCP_HTTP_HOST": "<your mdb mcp http host>",
        "MDB_MCP_HTTP_PORT": "<your mdb mcp http port>",
        "MDB_MCP_HTTP_RESPONSE_TYPE": "<your mdb mcp http response type>",
        "MDB_MCP_IDLE_TIMEOUT_MS": "<your mdb mcp idle timeout ms>",
        "MDB_MCP_INDEX_CHECK": "<your mdb mcp index check>",
        "MDB_MCP_LOGGERS": "<your mdb mcp loggers>",
        "MDB_MCP_LOG_PATH": "<your mdb mcp log path>",
        "MDB_MCP_MAX_ACTIVE_CONNECTIONS": "<your mdb mcp max active connections>",
        "MDB_MCP_MAX_BYTES_PER_QUERY": "<your mdb mcp max bytes per query>",
        "MDB_MCP_MAX_DOCUMENTS_PER_QUERY": "<your mdb mcp max documents per query>",
        "MDB_MCP_MAX_SESSIONS": "<your mdb mcp max sessions>",
        "MDB_MCP_MAX_TIME_M_S": "<your mdb mcp max time m s>",
        "MDB_MCP_MCP_CLIENT_LOG_LEVEL": "<your mdb mcp mcp client log level>",
        "MDB_MCP_MONITORING_SERVER_FEATURES": "<your mdb mcp monitoring server features>",
        "MDB_MCP_MONITORING_SERVER_HOST": "<your mdb mcp monitoring server host>",
        "MDB_MCP_MONITORING_SERVER_PORT": "<your mdb mcp monitoring server port>",
        "MDB_MCP_NOTIFICATION_TIMEOUT_MS": "<your mdb mcp notification timeout ms>",
        "MDB_MCP_PREVIEW_FEATURES": "<your mdb mcp preview features>",
        "MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp query count max time ms cap>",
        "MDB_MCP_QUERY_COUNT_TIMEOUT_MS": "<your mdb mcp query count timeout ms>",
        "MDB_MCP_READ_ONLY": "<your mdb mcp read only>",
        "MDB_MCP_TELEMETRY": "<your mdb mcp telemetry>",
        "MDB_MCP_TIMEOUT_MS": "<your mdb mcp timeout ms>",
        "MDB_MCP_TRANSPORT": "<your mdb mcp transport>",
        "MDB_MCP_VOYAGE_API_KEY": "<your mdb mcp voyage api key>"
      }
    }
  }
}

Claude Code

claude mcp add 'mongodb-mcp-server' -- npx -y '[email protected]'

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "mongodb-mcp-server": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp aggregation count max time ms cap>",
        "MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS": "<your mdb mcp aggregation count timeout ms>",
        "MDB_MCP_ALLOW_REQUEST_OVERRIDES": "<your mdb mcp allow request overrides>",
        "MDB_MCP_API_CLIENT_ID": "<your mdb mcp api client id>",
        "MDB_MCP_API_CLIENT_SECRET": "<your mdb mcp api client secret>",
        "MDB_MCP_ASSISTANT_BASE_URL": "<your mdb mcp assistant base url>",
        "MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS": "<your mdb mcp atlas temporary database user lifetime ms>",
        "MDB_MCP_CONFIRMATION_REQUIRED_TOOLS": "<your mdb mcp confirmation required tools>",
        "MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS": "<your mdb mcp connection idle timeout ms>",
        "MDB_MCP_CONNECTION_SCOPE": "<your mdb mcp connection scope>",
        "MDB_MCP_CONNECTION_STRING": "<your mdb mcp connection string>",
        "MDB_MCP_CONNECTION_STRINGS": "<your mdb mcp connection strings>",
        "MDB_MCP_DANGEROUS_HOST_BINDING": "<your mdb mcp dangerous host binding>",
        "MDB_MCP_DISABLED_TOOLS": "<your mdb mcp disabled tools>",
        "MDB_MCP_DISABLE_SERVER_SIDE_JS": "<your mdb mcp disable server side js>",
        "MDB_MCP_DISABLE_UNTRUSTED_DATA_WARNING": "<your mdb mcp disable untrusted data warning>",
        "MDB_MCP_DRY_RUN": "<your mdb mcp dry run>",
        "MDB_MCP_ELICITATION_TIMEOUT_MS": "<your mdb mcp elicitation timeout ms>",
        "MDB_MCP_EVICTION_IDLE_GRACE_M_S": "<your mdb mcp eviction idle grace m s>",
        "MDB_MCP_EXPORTS_PATH": "<your mdb mcp exports path>",
        "MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS": "<your mdb mcp export cleanup interval ms>",
        "MDB_MCP_EXPORT_TIMEOUT_MS": "<your mdb mcp export timeout ms>",
        "MDB_MCP_EXTERNALLY_MANAGED_SESSIONS": "<your mdb mcp externally managed sessions>",
        "MDB_MCP_HEALTH_CHECK_HOST": "<your mdb mcp health check host>",
        "MDB_MCP_HEALTH_CHECK_PORT": "<your mdb mcp health check port>",
        "MDB_MCP_HTTP_BODY_LIMIT": "<your mdb mcp http body limit>",
        "MDB_MCP_HTTP_HEADERS": "<your mdb mcp http headers>",
        "MDB_MCP_HTTP_HOST": "<your mdb mcp http host>",
        "MDB_MCP_HTTP_PORT": "<your mdb mcp http port>",
        "MDB_MCP_HTTP_RESPONSE_TYPE": "<your mdb mcp http response type>",
        "MDB_MCP_IDLE_TIMEOUT_MS": "<your mdb mcp idle timeout ms>",
        "MDB_MCP_INDEX_CHECK": "<your mdb mcp index check>",
        "MDB_MCP_LOGGERS": "<your mdb mcp loggers>",
        "MDB_MCP_LOG_PATH": "<your mdb mcp log path>",
        "MDB_MCP_MAX_ACTIVE_CONNECTIONS": "<your mdb mcp max active connections>",
        "MDB_MCP_MAX_BYTES_PER_QUERY": "<your mdb mcp max bytes per query>",
        "MDB_MCP_MAX_DOCUMENTS_PER_QUERY": "<your mdb mcp max documents per query>",
        "MDB_MCP_MAX_SESSIONS": "<your mdb mcp max sessions>",
        "MDB_MCP_MAX_TIME_M_S": "<your mdb mcp max time m s>",
        "MDB_MCP_MCP_CLIENT_LOG_LEVEL": "<your mdb mcp mcp client log level>",
        "MDB_MCP_MONITORING_SERVER_FEATURES": "<your mdb mcp monitoring server features>",
        "MDB_MCP_MONITORING_SERVER_HOST": "<your mdb mcp monitoring server host>",
        "MDB_MCP_MONITORING_SERVER_PORT": "<your mdb mcp monitoring server port>",
        "MDB_MCP_NOTIFICATION_TIMEOUT_MS": "<your mdb mcp notification timeout ms>",
        "MDB_MCP_PREVIEW_FEATURES": "<your mdb mcp preview features>",
        "MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp query count max time ms cap>",
        "MDB_MCP_QUERY_COUNT_TIMEOUT_MS": "<your mdb mcp query count timeout ms>",
        "MDB_MCP_READ_ONLY": "<your mdb mcp read only>",
        "MDB_MCP_TELEMETRY": "<your mdb mcp telemetry>",
        "MDB_MCP_TIMEOUT_MS": "<your mdb mcp timeout ms>",
        "MDB_MCP_TRANSPORT": "<your mdb mcp transport>",
        "MDB_MCP_VOYAGE_API_KEY": "<your mdb mcp voyage api key>"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "mongodb-mcp-server": {
      "args": [
        "-y",
        "[email protected]"
      ],
      "command": "npx",
      "env": {
        "MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp aggregation count max time ms cap>",
        "MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS": "<your mdb mcp aggregation count timeout ms>",
        "MDB_MCP_ALLOW_REQUEST_OVERRIDES": "<your mdb mcp allow request overrides>",
        "MDB_MCP_API_CLIENT_ID": "<your mdb mcp api client id>",
        "MDB_MCP_API_CLIENT_SECRET": "<your mdb mcp api client secret>",
        "MDB_MCP_ASSISTANT_BASE_URL": "<your mdb mcp assistant base url>",
        "MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS": "<your mdb mcp atlas temporary database user lifetime ms>",
        "MDB_MCP_CONFIRMATION_REQUIRED_TOOLS": "<your mdb mcp confirmation required tools>",
        "MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS": "<your mdb mcp connection idle timeout ms>",
        "MDB_MCP_CONNECTION_SCOPE": "<your mdb mcp connection scope>",
        "MDB_MCP_CONNECTION_STRING": "<your mdb mcp connection string>",
        "MDB_MCP_CONNECTION_STRINGS": "<your mdb mcp connection strings>",
        "MDB_MCP_DANGEROUS_HOST_BINDING": "<your mdb mcp dangerous host binding>",
        "MDB_MCP_DISABLED_TOOLS": "<your mdb mcp disabled tools>",
        "MDB_MCP_DISABLE_SERVER_SIDE_JS": "<your mdb mcp disable server side js>",
        "MDB_MCP_DISABLE_UNTRUSTED_DATA_WARNING": "<your mdb mcp disable untrusted data warning>",
        "MDB_MCP_DRY_RUN": "<your mdb mcp dry run>",
        "MDB_MCP_ELICITATION_TIMEOUT_MS": "<your mdb mcp elicitation timeout ms>",
        "MDB_MCP_EVICTION_IDLE_GRACE_M_S": "<your mdb mcp eviction idle grace m s>",
        "MDB_MCP_EXPORTS_PATH": "<your mdb mcp exports path>",
        "MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS": "<your mdb mcp export cleanup interval ms>",
        "MDB_MCP_EXPORT_TIMEOUT_MS": "<your mdb mcp export timeout ms>",
        "MDB_MCP_EXTERNALLY_MANAGED_SESSIONS": "<your mdb mcp externally managed sessions>",
        "MDB_MCP_HEALTH_CHECK_HOST": "<your mdb mcp health check host>",
        "MDB_MCP_HEALTH_CHECK_PORT": "<your mdb mcp health check port>",
        "MDB_MCP_HTTP_BODY_LIMIT": "<your mdb mcp http body limit>",
        "MDB_MCP_HTTP_HEADERS": "<your mdb mcp http headers>",
        "MDB_MCP_HTTP_HOST": "<your mdb mcp http host>",
        "MDB_MCP_HTTP_PORT": "<your mdb mcp http port>",
        "MDB_MCP_HTTP_RESPONSE_TYPE": "<your mdb mcp http response type>",
        "MDB_MCP_IDLE_TIMEOUT_MS": "<your mdb mcp idle timeout ms>",
        "MDB_MCP_INDEX_CHECK": "<your mdb mcp index check>",
        "MDB_MCP_LOGGERS": "<your mdb mcp loggers>",
        "MDB_MCP_LOG_PATH": "<your mdb mcp log path>",
        "MDB_MCP_MAX_ACTIVE_CONNECTIONS": "<your mdb mcp max active connections>",
        "MDB_MCP_MAX_BYTES_PER_QUERY": "<your mdb mcp max bytes per query>",
        "MDB_MCP_MAX_DOCUMENTS_PER_QUERY": "<your mdb mcp max documents per query>",
        "MDB_MCP_MAX_SESSIONS": "<your mdb mcp max sessions>",
        "MDB_MCP_MAX_TIME_M_S": "<your mdb mcp max time m s>",
        "MDB_MCP_MCP_CLIENT_LOG_LEVEL": "<your mdb mcp mcp client log level>",
        "MDB_MCP_MONITORING_SERVER_FEATURES": "<your mdb mcp monitoring server features>",
        "MDB_MCP_MONITORING_SERVER_HOST": "<your mdb mcp monitoring server host>",
        "MDB_MCP_MONITORING_SERVER_PORT": "<your mdb mcp monitoring server port>",
        "MDB_MCP_NOTIFICATION_TIMEOUT_MS": "<your mdb mcp notification timeout ms>",
        "MDB_MCP_PREVIEW_FEATURES": "<your mdb mcp preview features>",
        "MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP": "<your mdb mcp query count max time ms cap>",
        "MDB_MCP_QUERY_COUNT_TIMEOUT_MS": "<your mdb mcp query count timeout ms>",
        "MDB_MCP_READ_ONLY": "<your mdb mcp read only>",
        "MDB_MCP_TELEMETRY": "<your mdb mcp telemetry>",
        "MDB_MCP_TIMEOUT_MS": "<your mdb mcp timeout ms>",
        "MDB_MCP_TRANSPORT": "<your mdb mcp transport>",
        "MDB_MCP_VOYAGE_API_KEY": "<your mdb mcp voyage api key>"
      },
      "type": "stdio"
    }
  }
}

Related servers

  • Harness Verified domain
    Start Claude Code and Codex agents the person can watch, wait for them and read their answers.
  • docs-mcp Verified domain
    Remote MCP server for Tandem docs, install guides, SDKs, workflows, and agent setup help.
  • spotdb Verified domain
    Ephemeral data sandbox for AI workflows with guardrails and security
  • Adako: ad ops for AI assistants Verified domain
    Google, Meta, LinkedIn and ChatGPT Ads for AI assistants. Every change needs your approval.
  • Aidoo for Odoo Verified domain
    Query and update your Odoo ERP in plain language, under your own Odoo access rules.
  • EXTREMELY agency Verified domain
    Your agency of AI agents in your AI app: what agents did, approvals, requests, jobs and reports.