Connector guide2-minute read5 MCP toolsEN · DE · IT

Come collegare MongoDB a Claude — via 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 teamAggiornato 2 min read Open source su GitHub

Nessuna carta di credito · 7 giorni di prova · Alternativa self-host disponibile

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.

tool

5

Regione

INTL

Categoria

Databases

Autenticazione

Connection string

Env vars richieste

MONGODB_HOSTMONGODB_PORTMONGODB_DATABASEMONGODB_USERMONGODB_PASSWORDMONGODB_AUTH_SOURCE
Installa con un clic su Cloud

7 giorni di prova gratuita · Nessuna carta di credito

  • Prova gratuita di 7 giorni
    Nessuna carta di credito
  • GDPR & SOC 2 ready
    Dati in UE, log di audit
  • Open source su GitHub
    Open source · AGPL-3.0
  • Funziona con ChatGPT, Claude, Gemini
    Qualsiasi client compatibile MCP

Salta l'installazione. Attivo in meno di 2 minuti.

Avvia una prova gratuita su cloud.anythingmcp.com, aggiungi MongoDB con un clic, poi punta il tuo client AI (Claude, ChatGPT, Copilot o Cursor) all'endpoint MCP generato. Niente Docker, niente git clone, nessuna esperienza di sviluppo richiesta.

Inizia la prova gratuita

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.

Prova a chiedere

Prompt di esempio per MongoDB

Clicca su un prompt per copiarlo. Incollalo in Claude, ChatGPT, Cursor, Gemini, Copilot o OpenClaw per eseguirlo contro questo connettore.

MongoDB · live via MCP
Condividi
Opus 4.7

Claude è un'AI e può sbagliare. Verifica sempre le risposte.

💡 Niente installazione? Vai direttamente su cloud.anythingmcp.com. Accedi, clicca Connectors → MongoDB, inserisci le credenziali, genera una MCP API key — fatto. Niente Docker, niente git clone, niente server locale.

MongoDB + Claude

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.

Prerequisiti

Le istruzioni di setup complete sono incluse nel connettore stesso (visibili nello store quando lo selezioni). Le variabili d'ambiente richieste sono:

MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD, MONGODB_AUTH_SOURCE

Step 1 — Ottieni le credenziali

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.

Step 2 — Installa l'adapter

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

Step 3 — Aggiungi il connettore in Claude

Percorso consigliato — funziona su claude.ai web senza toccare alcun file di configurazione.

  1. Apri claude.ai/customize/connectors.
  2. Clicca "Add custom connector".
  3. Compila:
    • Name: MongoDB
    • URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → incolla la tua MCP API key (da AnythingMCP → Profile → MCP API Keys → New Key)
  4. Clicca Connect per autorizzare.

Tutti i tool sotto compaiono nella tua chat — inizia a scrivere prompt.

Tool disponibili

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

Funziona con Claude Code come con Claude Desktop? Sì — punta entrambi a https://cloud.anythingmcp.com/mcp.

Prossimi passi

Questa guida ti è stata utile?

Your MongoDB agent is one click away.

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

Guide correlate

connectors

Come collegare MongoDB a ChatGPT — via 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

Come collegare MongoDB a Cursor — via 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

Come collegare MongoDB a Gemini — via 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

Come collegare MongoDB a MCP per agenti AI

Collega i database MongoDB direttamente agli agenti AI tramite MCP. Interroga le collezioni attraverso il linguaggio naturale con il connettore database in sola lettura di AnythingMCP.

connectors

Come collegare AFAS Profit a Claude — via 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

Come collegare Aruba Fatturazione Elettronica a Claude — via 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.