Connector guide2-minute read5 MCP toolsEN · DE · IT

MongoDB mit Cursor verbinden — über 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 teamAktualisiert 2 min read Open Source auf GitHub

Keine Kreditkarte · 7 Tage Test · Self-Hosting-Alternative verfügbar

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.

Tools

5

Region

INTL

Kategorie

Databases

Authentifizierung

Connection string

Benötigte Env-Vars

MONGODB_HOSTMONGODB_PORTMONGODB_DATABASEMONGODB_USERMONGODB_PASSWORDMONGODB_AUTH_SOURCE
Mit einem Klick in der Cloud installieren

7 Tage kostenlos testen · Keine Kreditkarte

  • 7 Tage kostenlos
    Keine Kreditkarte nötig
  • GDPR & SOC 2 ready
    EU-Datenhaltung, Audit-Logs
  • Open Source auf GitHub
    Open-Source · AGPL-3.0
  • Funktioniert mit ChatGPT, Claude, Gemini
    Jeder MCP-kompatible Client

Installation überspringen. In unter 2 Minuten einsatzbereit.

Starte eine kostenlose Testphase auf cloud.anythingmcp.com, füge MongoDB mit einem Klick hinzu und richte deinen KI-Client (Claude, ChatGPT, Copilot oder Cursor) auf den erzeugten MCP-Endpoint. Kein Docker, kein git clone, keinerlei Entwicklungserfahrung nötig.

Kostenlos testen

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.

Frag einfach

Beispiel-Prompts für MongoDB

Klick auf einen Prompt, um ihn zu kopieren. In Claude, ChatGPT, Cursor, Gemini, Copilot oder OpenClaw einfügen — und gegen diesen Connector laufen lassen.

MongoDB · live via MCP
Teilen
Opus 4.7

Claude ist KI und kann Fehler machen. Bitte Antworten gegenprüfen.

💡 Keine Installation? Nutze cloud.anythingmcp.com direkt. Einloggen, Connectors → MongoDB klicken, Zugangsdaten einfügen, MCP-API-Key erzeugen — fertig. Kein Docker, kein git clone, kein lokaler Server.

MongoDB + Cursor

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.

Voraussetzungen

Die vollständige Setup-Anleitung ist in den Connector eingebaut (im Store sichtbar, wenn du den Connector auswählst). Benötigte Umgebungsvariablen für diesen Connector:

MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD, MONGODB_AUTH_SOURCE

Schritt 1 — Zugangsdaten holen

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.

Schritt 2 — Adapter installieren

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

Schritt 3 — Connector in Cursor hinzufügen

Cursor liest MCP-Server aus ~/.cursor/mcp.json. Füge diesen Eintrag hinzu:

{
  "mcpServers": {
    "anythingmcp": {
      "url": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. Hole deinen MCP API Key aus AnythingMCP → Profil → MCP API Keys → Neuer Key.
  2. Speichern und Cursor neu starten.
  3. Cursor → Einstellungen → MCP öffnen und prüfen, ob MongoDB als "Connected" gelistet ist.
  4. Chatten — alle MongoDB-Tools sind aufrufbar.

Verfügbare Tools

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

Unterstützt Cursor benutzerdefinierte MCP-Server im Free-Tier? Ja — MCP ist auf Hobby, Pro und Business verfügbar.

Nächste Schritte

War dieser Guide hilfreich?

Your MongoDB agent is one click away.

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

Verwandte Anleitungen

connectors

MongoDB mit ChatGPT verbinden — über 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 mit Claude verbinden — über 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 mit Gemini verbinden — über 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 mit MCP für KI-Agenten verbinden

Verbinde MongoDB-Datenbanken direkt über MCP mit KI-Agenten. Frage Collections in natürlicher Sprache mit dem schreibgeschützten Datenbank-Connector von AnythingMCP ab.

connectors

AFAS Profit mit Cursor verbinden — über 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 mit Cursor verbinden — über 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.