Sáltate la instalación. Funcionando en menos de 2 minutos.
Inicia una prueba gratuita en cloud.anythingmcp.com, añade MongoDB con un clic y apunta tu cliente de IA (Claude, ChatGPT, Copilot o Cursor) al endpoint MCP generado. Sin Docker, sin git clone, sin experiencia de desarrollo.
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.
Prueba a pedir
Prompts de ejemplo para MongoDB
Haz clic en un prompt para copiarlo. Pégalo en Claude, ChatGPT, Cursor, Gemini, Copilot u OpenClaw para ejecutarlo contra este conector.
Claude es IA y puede equivocarse. Verifica siempre las respuestas.
💡 ¿Sin instalación? Usa cloud.anythingmcp.com directamente. Inicia sesión, pulsa Connectors → MongoDB, pega tus credenciales, genera una MCP API key — listo. Sin Docker, sin
git clone, sin servidor local.
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.
Requisitos previos
Las instrucciones de configuración completas están incluidas en el conector (visibles en el store al seleccionarlo). Las variables de entorno requeridas:
MONGODB_HOST, MONGODB_PORT, MONGODB_DATABASE, MONGODB_USER, MONGODB_PASSWORD, MONGODB_AUTH_SOURCE
Paso 1 — Obtener credenciales
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. …
Paso 2 — Instalar el 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
Paso 3 — Añadir el conector en Claude
Ruta recomendada — funciona en claude.ai web sin tocar ningún archivo de configuración.
- Abre claude.ai/customize/connectors.
- Pulsa "Add custom connector".
- Rellena:
- Name:
MongoDB - URL:
https://cloud.anythingmcp.com/mcp - Authentication: Bearer token → pega tu MCP API key (de AnythingMCP → Profile → MCP API Keys → New Key)
- Name:
- Pulsa Connect para autorizar.
Todas las herramientas debajo aparecen en tu chat — empieza a escribir prompts.
Herramientas disponibles
| 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
¿Funciona con Claude Code igual que con Claude Desktop? Sí — apunta ambos a https://cloud.anythingmcp.com/mcp.
Siguientes pasos
¿Te ha sido útil esta guía?