ต้นแบบ · เว็บนี้เป็นต้นแบบ แสดงข้อมูลจริง 100 ตัวจากทะเบียนทางการ ยังไม่ครบทุกตัว
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

MongoDB MCP Server

โดย mongodb-jsรุ่น 3.2.2i★ 1,157iรันบนเครื่อง
ชื่อใน registryio.github.mongodb-js/mongodb-mcp-server

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

MongoDB Model Context Protocol Server

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ฐานข้อมูลและชุดข้อมูล
  • ต้องใส่ค่าเหล่านี้: MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_CONNECTION_STRING, MDB_MCP_CONNECTION_STRINGS, MDB_MCP_VOYAGE_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add mongodb --env MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP='ใส่ค่าของคุณ' --env MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_ALLOW_REQUEST_OVERRIDES='ใส่ค่าของคุณ' --env MDB_MCP_API_CLIENT_ID='ใส่ค่าของคุณ' --env MDB_MCP_API_CLIENT_SECRET='ใส่ค่าของคุณ' --env MDB_MCP_ASSISTANT_BASE_URL='ใส่ค่าของคุณ' --env MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS='ใส่ค่าของคุณ' --env MDB_MCP_CONFIRMATION_REQUIRED_TOOLS='ใส่ค่าของคุณ' --env MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_CONNECTION_SCOPE='ใส่ค่าของคุณ' --env MDB_MCP_CONNECTION_STRING='ใส่ค่าของคุณ' --env MDB_MCP_CONNECTION_STRINGS='ใส่ค่าของคุณ' --env MDB_MCP_DANGEROUS_HOST_BINDING='ใส่ค่าของคุณ' --env MDB_MCP_DISABLE_SERVER_SIDE_JS='ใส่ค่าของคุณ' --env MDB_MCP_DISABLE_UNTRUSTED_DATA_WARNING='ใส่ค่าของคุณ' --env MDB_MCP_DISABLED_TOOLS='ใส่ค่าของคุณ' --env MDB_MCP_DRY_RUN='ใส่ค่าของคุณ' --env MDB_MCP_ELICITATION_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_EVICTION_IDLE_GRACE_M_S='ใส่ค่าของคุณ' --env MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS='ใส่ค่าของคุณ' --env MDB_MCP_EXPORT_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_EXPORTS_PATH='ใส่ค่าของคุณ' --env MDB_MCP_EXTERNALLY_MANAGED_SESSIONS='ใส่ค่าของคุณ' --env MDB_MCP_HEALTH_CHECK_HOST='ใส่ค่าของคุณ' --env MDB_MCP_HEALTH_CHECK_PORT='ใส่ค่าของคุณ' --env MDB_MCP_HTTP_BODY_LIMIT='ใส่ค่าของคุณ' --env MDB_MCP_HTTP_HEADERS='ใส่ค่าของคุณ' --env MDB_MCP_HTTP_HOST='ใส่ค่าของคุณ' --env MDB_MCP_HTTP_PORT='ใส่ค่าของคุณ' --env MDB_MCP_HTTP_RESPONSE_TYPE='ใส่ค่าของคุณ' --env MDB_MCP_IDLE_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_INDEX_CHECK='ใส่ค่าของคุณ' --env MDB_MCP_LOG_PATH='ใส่ค่าของคุณ' --env MDB_MCP_LOGGERS='ใส่ค่าของคุณ' --env MDB_MCP_MAX_ACTIVE_CONNECTIONS='ใส่ค่าของคุณ' --env MDB_MCP_MAX_BYTES_PER_QUERY='ใส่ค่าของคุณ' --env MDB_MCP_MAX_DOCUMENTS_PER_QUERY='ใส่ค่าของคุณ' --env MDB_MCP_MAX_SESSIONS='ใส่ค่าของคุณ' --env MDB_MCP_MAX_TIME_M_S='ใส่ค่าของคุณ' --env MDB_MCP_MCP_CLIENT_LOG_LEVEL='ใส่ค่าของคุณ' --env MDB_MCP_MONITORING_SERVER_FEATURES='ใส่ค่าของคุณ' --env MDB_MCP_MONITORING_SERVER_HOST='ใส่ค่าของคุณ' --env MDB_MCP_MONITORING_SERVER_PORT='ใส่ค่าของคุณ' --env MDB_MCP_NOTIFICATION_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_PREVIEW_FEATURES='ใส่ค่าของคุณ' --env MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP='ใส่ค่าของคุณ' --env MDB_MCP_QUERY_COUNT_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_READ_ONLY='ใส่ค่าของคุณ' --env MDB_MCP_TELEMETRY='ใส่ค่าของคุณ' --env MDB_MCP_TIMEOUT_MS='ใส่ค่าของคุณ' --env MDB_MCP_TRANSPORT='ใส่ค่าของคุณ' --env MDB_MCP_VOYAGE_API_KEY='ใส่ค่าของคุณ' -- npx -y mongodb-mcp-server

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "mongodb": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ],
      "env": {
        "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": "ใส่ค่าของคุณ"
      }
    }
  }
}

ค่าที่ต้องใส่เอง

  • MDB_MCP_AGGREGATION_COUNT_MAX_TIME_MS_CAP env
    Deprecated. Use `aggregationCountTimeoutMs` instead.
  • MDB_MCP_AGGREGATION_COUNT_TIMEOUT_MS env
    The maximum time in milliseconds for the count phase of aggregation operations. This is used to limit the time spent counting documents when determining if results were capped.
  • MDB_MCP_ALLOW_REQUEST_OVERRIDES env
    When set to true, allows configuration values to be overridden via request headers and query parameters.
  • MDB_MCP_API_CLIENT_ID ความลับ env
    Atlas API client ID for authentication. Required for running Atlas tools.
  • MDB_MCP_API_CLIENT_SECRET ความลับ env
    Atlas API client secret for authentication. Required for running Atlas tools.
  • MDB_MCP_ASSISTANT_BASE_URL env
    Base URL for the MongoDB Assistant API.
  • MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS env
    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 env
    Comma separated values of tool names that require user confirmation before execution. Requires the client to support elicitation.
  • MDB_MCP_CONNECTION_IDLE_TIMEOUT_MS env
    Milliseconds a MongoDB connection may stay unused (no tool call touching it) before it is closed to release the underlying connection pool and its server-side state. Applied per connection regardless…
  • MDB_MCP_CONNECTION_SCOPE env
    Visibility scope for MongoDB connections created at runtime. With 'session' (the default), each MCP session only sees the connections it created (plus the shared 'preconfigured' one) and they are clo…
  • MDB_MCP_CONNECTION_STRING ความลับ env
    MongoDB connection string for direct database connections, exposed under the connectionId "preconfigured". Optional, if not set, you'll need to call the connect tool before interacting with MongoDB d…
  • MDB_MCP_CONNECTION_STRINGS ความลับ env
    MongoDB connection strings keyed by name, as a JSON object (e.g. {"preconfigured": "mongodb://...", "analytics": "mongodb://..."}). Each name becomes a connectionId that the MongoDB tools can use dir…
  • MDB_MCP_DANGEROUS_HOST_BINDING env
    When set to true, allows binding the HTTP server (and monitoring server) to a non-loopback host such as 0.0.0.0, a LAN IP, or an empty host (all interfaces). Binding to a non-loopback host exposes th…
  • MDB_MCP_DISABLE_SERVER_SIDE_JS env
    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_DISABLE_UNTRUSTED_DATA_WARNING env
    When set to true, tool responses include potentially untrusted data (such as documents or query results) as-is, without wrapping it in delimiters and a prompt-injection warning.
  • MDB_MCP_DISABLED_TOOLS env
    Comma separated values of tool names, operation types, and/or categories of tools that will be disabled.
  • MDB_MCP_DRY_RUN env
    When true, runs the server in dry mode: dumps configuration and enabled tools, then exits without starting the server.
  • MDB_MCP_ELICITATION_TIMEOUT_MS env
    Time in milliseconds the user has to respond to an elicitation request (such as a tool confirmation prompt) before it fails.
  • MDB_MCP_EVICTION_IDLE_GRACE_M_S env
    How long a session must be idle before it becomes eligible for least-recently-used eviction when the HTTP transport is at its maxSessions cap (only used when transport is 'http'). Swept back to idleT…
  • MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS env
    Time in milliseconds between export cleanup cycles that remove expired export files.
  • MDB_MCP_EXPORT_TIMEOUT_MS env
    Time in milliseconds after which an export is considered expired and eligible for cleanup.
  • MDB_MCP_EXPORTS_PATH env
    Folder to store exported data files.
  • MDB_MCP_EXTERNALLY_MANAGED_SESSIONS env
    When true, the 2025-era HTTP transport accepts a session ID supplied externally through the 'mcp-session-id' header. When an external ID is supplied, the initialization request is optional, and an im…
  • MDB_MCP_HEALTH_CHECK_HOST env
    Deprecated. Use `monitoringServerHost` instead. Host address to bind the healthCheck HTTP server to (only used when transport is 'http'). If provided, `healthCheckPort` must also be set.
  • MDB_MCP_HEALTH_CHECK_PORT env
    Deprecated. Use `monitoringServerPort` instead. Port number for the healthCheck HTTP server (only used when transport is 'http'). If provided, `healthCheckHost` must also be set.
  • MDB_MCP_HTTP_BODY_LIMIT env
    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() middleware.
  • MDB_MCP_HTTP_HEADERS env
    Header that the HTTP server will validate when making requests (only used when transport is 'http').
  • MDB_MCP_HTTP_HOST env
    Host address to bind the HTTP server to (only used when transport is 'http').
  • MDB_MCP_HTTP_PORT env
    Port number for the HTTP server (only used when transport is 'http'). Use 0 for a random port.
  • MDB_MCP_HTTP_RESPONSE_TYPE env
    The HTTP response type for tool responses: 'sse' for Server-Sent Events, 'json' for standard JSON responses.
  • MDB_MCP_IDLE_TIMEOUT_MS env
    Idle timeout for a client to disconnect (only applies to http transport).
  • MDB_MCP_INDEX_CHECK env
    When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan.
  • MDB_MCP_LOG_PATH env
    Folder to store logs.
  • MDB_MCP_LOGGERS env
    Comma separated values of logger types.
  • MDB_MCP_MAX_ACTIVE_CONNECTIONS env
    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-used connection is closed and its connec…
  • MDB_MCP_MAX_BYTES_PER_QUERY env
    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 env
    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 and the tool's limit parameter.
  • MDB_MCP_MAX_SESSIONS env
    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, transport, and timers, so choose a value…
  • MDB_MCP_MAX_TIME_M_S env
    Deprecated. Use `timeoutMs` instead. The maximum time in milliseconds that operations are allowed to run on the MongoDB server.
  • MDB_MCP_MCP_CLIENT_LOG_LEVEL env
    Minimum severity level for log messages forwarded to the MCP client.
  • MDB_MCP_MONITORING_SERVER_FEATURES env
    Features to expose on the monitoring server: health-check, metrics, and process-metrics. process-metrics exposes /metrics with Node.js process metrics (only used when transport is 'http' and monitori…
  • MDB_MCP_MONITORING_SERVER_HOST env
    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 env
    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 env
    Notification timeout for a client to be aware of disconnect (only applies to http transport).
  • MDB_MCP_PREVIEW_FEATURES env
    Comma separated values of preview features that are enabled.
  • MDB_MCP_QUERY_COUNT_MAX_TIME_MS_CAP env
    Deprecated. Use `queryCountTimeoutMs` instead.
  • MDB_MCP_QUERY_COUNT_TIMEOUT_MS env
    The maximum time in milliseconds for the count phase of find operations. This is used to limit the time spent counting documents when determining if results were capped.
  • MDB_MCP_READ_ONLY env
    When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations.
  • MDB_MCP_TELEMETRY env
    When set to disabled, disables telemetry collection.
  • MDB_MCP_TIMEOUT_MS env
    The maximum time in milliseconds that MongoDB operations are allowed to run, applied as the driver's timeoutMS (client-side operation timeout, CSOT) on each connection. It bounds the entire operation…
  • MDB_MCP_TRANSPORT env
    Either 'stdio' or 'http'.
  • MDB_MCP_VOYAGE_API_KEY ความลับ env
    API key for Voyage AI embeddings service (required for creating Atlas Local deployments with auto-embed vector search capabilities).

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 5 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub mongodb-js ซึ่งเป็นเจ้าของ repo

  • ✓ ผ่าน

    ยังมีคนดูแล

    มีการแก้โค้ดล่าสุด วันนี้

  • ✓ ผ่าน

    มีสัญญาอนุญาต (license)

    ใช้ Apache-2.0

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    ต้องอ่านรายการเครื่องมือของ server ก่อน จะเริ่มตรวจในขั้นถัดไป

เทียบกับตัวอื่นในหมวด ฐานข้อมูลและชุดข้อมูลi

  • ดาวมากกว่า 67% ของอีก 3 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 100% ของอีก 3 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 3 ตัวในหมวดนี้

เทียบเฉพาะ server ที่อยู่ในต้นแบบนี้ ไม่ใช่ทั้ง registry

คำถามที่พบบ่อย

MongoDB MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 3 จาก 3 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: MDB_MCP_API_CLIENT_ID, MDB_MCP_API_CLIENT_SECRET, MDB_MCP_CONNECTION_STRING, MDB_MCP_CONNECTION_STRINGS, MDB_MCP_VOYAGE_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด วันนี้ และส่งรุ่นล่าสุด (3.2.2) เข้า registry เมื่อวาน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js, Docker ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Supabase, Elasticsearch MCP Server, Postgres MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Supabase

โดย supabase

server ทางการของ Supabase ให้ AI สร้างตาราง ถามข้อมูล และดูการตั้งค่าโปรเจกต์ในฐานข้อมูล Supabase ของคุณ

บนเครื่องหรือคลาวด์★ 2,993Apache-2.0อัปเดต 22 วันที่ผ่านมา

Elasticsearch MCP Server

โดย cr7258

MCP server for interacting with Elasticsearch

รันบนเครื่อง★ 315Apache-2.0อัปเดต 14 เดือนที่ผ่านมา

Postgres MCP

โดย pgEdge

Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI

รันบนเครื่อง★ 244PostgreSQLอัปเดต 10 เดือนที่ผ่านมา

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

MongoDB MCP Server

A Model Context Protocol server for interacting with MongoDB Databases and MongoDB Atlas.

Quick Start
Using the official MongoDB plugins for AI agents

MongoDB MCP Server comes bundled with the official MongoDB plugins for AI agents. The following plugins are available:

`mongodb-atlas` — connects to the MongoDB-hosted Atlas MCP server over OAuth. This does not require you to run anything locally, and is the recommended way to connect to MongoDB Atlas from your AI agent:

  • Cursor: marketplace
  • VSCode: Open the Extensions view (⇧⌘X / Ctrl+Shift+X), search for @agentPlugins, and install mongodb-atlas.
  • Claude: marketplace
  • Codex: Open /plugins and install mongodb-atlas.
  • GitHub Copilot CLI: Run copilot plugin install mongodb-atlas.
  • Grok: Open /marketplace in Grok Build and install mongodb-atlas.

`mongodb` — runs the MongoDB MCP server locally and connects to any self-managed deployment:

  • Cursor: marketplace
  • Claude: marketplace
  • Gemini: marketplace
  • Codex: Run codex plugin marketplace add mongodb/agent-skills, then open /plugins and install mongodb.
  • GitHub Copilot CLI: Run copilot plugin install mongodb.
  • Grok: Open /marketplace in Grok Build and install mongodb.
Using the setup script

You can manually set up the local MCP server by running the following command:

npx -y mongodb-mcp-server@latest setup

This will guide you through an interactive setup process, including configuring your MongoDB connection string or Atlas API credentials.

For more advanced setup options, see the Manual Setup section below.

Using the MongoDB MCP Server setup skill

You can add and use the MongoDB MCP Server setup skill to configure your local MCP server using an AI agent.

npx skills add https://github.com/mongodb/agent-skills --skill mongodb-mcp-setup
Using manual configuration

See Manual Setup for instructions on how to manually configure the MongoDB MCP Server.

📚 Table of Contents

  • 🚀 Getting Started
  • Prerequisites
  • Manual Setup
  • 🛠️ Supported Tools
  • MongoDB Atlas Tools
  • MongoDB Database Tools
  • MongoDB Assistant Tools
  • 📄 Supported Resources
  • ⚙️ Configuration
  • Configuration Options
  • Atlas API Access
  • Configuration Methods
  • Environment Variables
  • Command-Line Arguments
  • MCP Client Configuration
  • Proxy Support
  • 🚀 Deploy on Public Clouds
  • Azure Cloud
  • 🤝 Contributing

Prerequisites

[!NOTE]

Node 20.x support is deprecated and will be removed in a future release. Please upgrade to Node 22.13 or later. See https://nodejs.org/en/blog/migrations/v20-to-v22 for migration details.

  • Node.js
  • At least v22.13.0. Check with node -v.
  • A MongoDB connection string or Atlas API credentials.
  • _Service Accounts Atlas API credentials_ are required to use the Atlas tools. You can create a service account in MongoDB Atlas and use its credentials for authentication. See Atlas API Access for more details.
  • If you have a MongoDB connection string, you can use it directly to connect to your MongoDB instance.

Manual Setup

🔒 Security Recommendation 1: When using Atlas API credentials, be sure to assign only the minimum required permissions to your service account. See Atlas API Permissions for details.

🔒 Security Recommendation 2: For enhanced security, we strongly recommend using environment variables to pass sensitive configuration such as connection strings and API credentials instead of command line arguments. Command line arguments can be visible in process lists and logged in various system locations, potentially exposing your secrets. Environment variables provide a more secure way to handle sensitive information.

Most MCP clients require a configuration file to be created or modified to add the MCP server.

Note: The configuration file syntax can be different across clients. Please refer to the following links for the latest expected syntax:

Default Safety Notice: All examples below include --readOnly by default to ensure safe, read-only access to your data. Remove --readOnly if you need to enable write operations.

Option 1: Connection String

You can pass your connection string via environment variables, make sure to use a valid username and password.

{

"mcpServers": { "MongoDB": { "command": "npx", "args": ["-y", "mongodb-mcp-server@latest", "--readOnly"], "env": { "MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase" } } } }

NOTE: The connection string can be configured to connect to any MongoDB cluster, whether it's a local instance or an Atlas cluster.

Option 2: Connect to the MongoDB Atlas-Managed MCP Server

When working with MongoDB Atlas, the recommended approach is to install the mongodb-atlas plugin for your AI agent, which handles OAuth authentication automatically.

For manual configuration, see the client-specific instructions for setting up the Atlas Remote MCP server with OAuth. Alternatively, you can connect using the mongodb-atlas-mcp-remote package with Service Account credentials — see the package README for setup instructions.

Note: You cannot authenticate to the remote MongoDB MCP server using a static API key over HTTP. You must either:

- Use a client that supports the OAuth flow.

- Use the mongodb-atlas-mcp-remote stdio server, which you can authenticate into using the static MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET environment variables.

To connect with the mongodb-atlas-mcp-remote stdio server using Service Account credentials, add it to your client's MCP configuration:

{

"mcpServers": { "mongodb-atlas-mcp-remote": { "type": "stdio", "command": "npx", "args": ["-y", "mongodb-atlas-mcp-remote@latest"], "env": { "MDB_MCP_API_CLIENT_ID": "$CLIENT_ID", "MDB_MCP_API_CLIENT_SECRET": "$SECRET" } } } }

Option 3: Atlas API Credentials

Use your Atlas API Service Accounts credentials. Must follow all the steps in Atlas API Access section.

{

"mcpServers": { "MongoDB": { "command": "npx", "args": ["-y", "mongodb-mcp-server@latest", "--readOnly"], "env": { "MDB_MCP_API_CLIENT_ID": "your-atlas-service-accounts-client-id", "MDB_MCP_API_CLIENT_SECRET": "your-atlas-service-accounts-client-secret" } } } }

Option 4: Standalone Servic

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx