Connector guide2-minute read5 MCP toolsEN · DE · IT

Как подключить MongoDB к ChatGPT — через MCP

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

HCBy HelpCode teamОбновлено 2 min read Открытый код на GitHub

Без банковской карты · 7 дней пробного периода · Есть вариант self-host

MongoDB

MongoDB

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

инструментов

5

Регион

INTL

Категория

Databases

Аутентификация

Connection string

Требуемые env-vars

MONGODB_HOSTMONGODB_PORTMONGODB_DATABASEMONGODB_USERMONGODB_PASSWORDMONGODB_AUTH_SOURCE
Установить в Cloud одним кликом

7 дней бесплатно · Без карты

  • 7 дней бесплатно
    Без банковской карты
  • GDPR & SOC 2 ready
    Данные в ЕС, журналы аудита
  • Открытый код на GitHub
    Open source · AGPL-3.0
  • Работает с ChatGPT, Claude, Gemini
    Любой MCP-совместимый клиент

Пропустите установку. Заработает меньше чем за 2 минуты.

Начните бесплатный период на cloud.anythingmcp.com, добавьте MongoDB одним кликом и направьте свой ИИ-клиент (Claude, ChatGPT, Copilot или Cursor) на сгенерированный MCP-эндпоинт. Без Docker, без git clone, без опыта разработки.

Начать бесплатный период

Summary

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

Попробуй спросить

Примеры промптов для MongoDB

Кликни по промпту — он скопируется. Вставь в Claude, ChatGPT, Cursor, Gemini, Copilot или OpenClaw и запусти через этот коннектор.

MongoDB · live via MCP
Поделиться
Opus 4.7

Claude — это AI, он может ошибаться. Проверяйте ответы.

💡 Без установки? Используйте cloud.anythingmcp.com напрямую. Войдите, нажмите Connectors → MongoDB, вставьте учётные данные, создайте MCP API key — готово. Без Docker, без git clone, без локального сервера.

MongoDB + ChatGPT

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

Предварительные требования

Полные инструкции по настройке встроены в коннектор (видны в магазине при выборе коннектора). Требуемые переменные окружения:

MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD, MONGODB_AUTH_SOURCE

Шаг 1 — Получите учётные данные

Setup

  1. Create a user with only read on the database the agent should see:
    use admin
    db.createUser({
      user: "amcp_reader",
      pwd: "change-me",
      roles: [{ role: "read", db: "shop" }]
    })
    
  2. Set MONGODB_HOST, MONGODB_PORT (27017), MONGODB_DATABASE, MONGODB_USER and MONGODB_PASSWORD.

MONGODB_AUTH_SOURCE is the field that decides whether this works at all. MongoDB authenticates a user against the database the user was created in, not the one you want to read. A root or admin account created the usual way lives in admin, so MONGODB_AUTH_SOURCE must be admin even though MONGODB_DATABASE is shop.

Шаг 2 — Установите адаптер

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Шаг 3 — Добавьте коннектор в ChatGPT

ChatGPT поддерживает MCP-серверы через функцию Connectors (планы Plus / Pro / Team / Enterprise). Бесплатный план не поддерживает кастомные коннекторы.

  1. Откройте ChatGPT → Settings → Connectors (или нажмите 🔧 в composer → Manage connectors).
  2. Нажмите "Add custom connector".
  3. Заполните:
    • Name: MongoDB
    • MCP server URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → вставьте MCP API key
  4. Нажмите Connect.

Доступные инструменты

ToolWhat it does
mongodb_schemaIntrospect the database: every collection, its estimated document count and the field names and types inferred from a sampled document
mongodb_findRun a read-only find
mongodb_find_recentRead the most recent documents of one collection, newest first by a timestamp field
mongodb_matchingReturn the documents of one collection matching a filter, projecting only their ids, so a population can be sized without transferring it
mongodb_query_examplesShow worked MongoDB query specs for this connector: filters, operators, projection, sort and the limits that apply

FAQ

Работает ли бесплатный план ChatGPT с кастомными MCP Connectors? Нет — нужны Plus, Pro, Team или Enterprise.

Следующие шаги

Это руководство помогло?

Your MongoDB agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Похожие руководства

connectors

Как подключить MongoDB к Claude — через MCP

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

Как подключить MongoDB к Cursor — через MCP

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

connectors

Как подключить MongoDB к Gemini — через MCP

Query a MongoDB database directly: introspect collections and their field shapes, and run read-only find queries with filter, projection, sort and limit. Installs read-only; credentials are held encrypted rather than in the connection string.

databases

Как подключить MongoDB к MCP для AI-агентов

Подключи базы данных MongoDB напрямую к AI-агентам через MCP. Запрашивайте коллекции на естественном языке с помощью только для чтения коннектора баз данных AnythingMCP.

connectors

Как подключить AFAS Profit к ChatGPT — через MCP

AFAS Profit — Dutch ERP and HR: read any published GetConnector, list what is available, and inspect a connector's metadata. Token auth with AFAS's base64-wrapped XML token.

connectors

Как подключить Aruba Fatturazione Elettronica к ChatGPT — через MCP

Aruba Fatturazione Elettronica: send and track Italian e-invoices through the Sistema di Interscambio, read received invoices and their SDI notifications. Token auth against Aruba's B2B gateway.