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.
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.
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
- 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. …
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" }
}
}
}
- Hole deinen MCP API Key aus AnythingMCP → Profil → MCP API Keys → Neuer Key.
- Speichern und Cursor neu starten.
- Cursor → Einstellungen → MCP öffnen und prüfen, ob
MongoDBals "Connected" gelistet ist. - Chatten — alle
MongoDB-Tools sind aufrufbar.
Verfügbare Tools
| 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
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?