Esta página se muestra en inglés. Una traducción al español está en curso.
MCP ConfigsMay 12, 2026·2 min de lectura

MongoDB MCP Server — npx + Read-Only Safety by Default

MongoDB MCP Server exposes MongoDB queries and optional Atlas admin tools to MCP clients via npx or Docker, with a read-only mode that reduces risk.

Listo para agents

Staging seguro para este activo

Este activo primero queda en staging. El prompt copiado pide inspeccionar los archivos staged antes de activar scripts, config MCP o config global.

Stage only · 17/100Política: staging
Superficie agent
Cualquier agent MCP/CLI
Tipo
Mcp Config
Instalación
Stage only
Confianza
Confianza: Established
Entrada
Asset
Comando de staging seguro
npx -y tokrepo@latest install 060ccb08-f4b6-5e96-ad28-3fc2cc23bd44 --target codex

Primero deja archivos en staging; la activación requiere revisar el README y el plan staged.

Introducción

MongoDB MCP Server exposes MongoDB queries and optional Atlas admin tools to MCP clients via npx or Docker, with a read-only mode that reduces risk.

  • Best for: teams using MongoDB/Atlas that want MCP access with strong guardrails and a clear read-only baseline
  • Works with: MongoDB connection strings or Atlas API credentials, Node.js, MCP clients that can spawn npx commands
  • Setup time: 10-20 minutes

Practical Notes

  • Quant: start with --readOnly and a read-only DB user; you can still inspect schemas, run finds, and profile slow queries safely.
  • Quant: keep exported query results scoped—treat every agent query as data egress to the LLM provider.

Rollout pattern

  • Use read-only mode for the first week; log the exact prompts and tool calls agents make during real incidents.
  • Add Atlas credentials only after you decide which admin actions are safe to automate (users, clusters, indexes).
  • If you ever enable writes, require a separate server instance and stronger approval/audit controls.

Watchouts

Read-only mode reduces risk, but query results still leave your network when an agent summarizes them. Treat tool output as data egress and sanitize sensitive fields.

FAQ

Q: Can I use it without Atlas? A: Yes. You can connect via a plain MongoDB connection string and use database query tools only.

Q: What does --readOnly change? A: It limits the server to read/connect/metadata operations and blocks write-capable tools.

Q: How do I debug connection issues? A: Start with a local MongoDB URI, then move to Atlas with service-account credentials once the basics work.

🙏

Fuente y agradecimientos

Source: https://github.com/mongodb-js/mongodb-mcp-server > License: Apache-2.0 > GitHub stars: 1,019 · forks: 240

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados