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.
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.
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 + 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.
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
- Create a user with only
readon the database the agent should see:use admin db.createUser({ user: "amcp_reader", pwd: "change-me", roles: [{ role: "read", db: "shop" }] }) - Set
MONGODB_HOST,MONGODB_PORT(27017),MONGODB_DATABASE,MONGODB_USERandMONGODB_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 ChatGPT
ChatGPT supporta server MCP tramite la funzione Connectors (piani Plus / Pro / Team / Enterprise). Il piano gratuito non supporta connettori personalizzati.
- Apri ChatGPT → Impostazioni → Connectors (o clicca l'icona 🔧 nel composer → Manage connectors).
- Clicca "Add custom connector".
- Compila:
- Name:
MongoDB - MCP server URL:
https://cloud.anythingmcp.com/mcp - Authentication: Bearer token → incolla la tua MCP API key (da AnythingMCP → Profile → MCP API Keys → New Key)
- Name:
- Clicca Connect per autorizzare.
Tool disponibili
| Tool | What it does |
|---|---|
mongodb_schema | Introspect the database: every collection, its estimated document count and the field names and types inferred from a sampled document |
mongodb_find | Run a read-only find |
mongodb_find_recent | Read the most recent documents of one collection, newest first by a timestamp field |
mongodb_matching | Return the documents of one collection matching a filter, projecting only their ids, so a population can be sized without transferring it |
mongodb_query_examples | Show worked MongoDB query specs for this connector: filters, operators, projection, sort and the limits that apply |
FAQ
Il piano free di ChatGPT funziona con i Connectors MCP custom? No — servono Plus, Pro, Team o Enterprise.
Prossimi passi
Questa guida ti è stata utile?