Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 12, 2026·2 min de lecture

mcp-mongo-server — MongoDB MCP with Read-Only Mode

mcp-mongo-server is an MCP server you can run via `npx` to let assistants query MongoDB, with a read-only mode for safer database access.

MCP Hub
MCP Hub · Community
Prêt pour agents

Cet actif peut être lu et installé directement par les agents

TokRepo expose une commande CLI universelle, un contrat d'installation, le metadata JSON, un plan selon l'adaptateur et le contenu raw pour aider les agents à juger l'adaptation, le risque et les prochaines actions.

Needs Confirmation · 62/100Policy : confirmer
Surface agent
Tout agent MCP/CLI
Type
Mcp
Installation
Manual
Confiance
Confiance : Established
Point d'entrée
npx -y mcp-mongo-server mongodb://localhost:27017/database
Commande CLI universelle
npx tokrepo install b71adadc-2c90-5a66-85a9-207e783d8aee
Introduction

mcp-mongo-server is an MCP server you can run via npx to let assistants query MongoDB, with a read-only mode for safer database access.

  • Best for: Giving agents structured MongoDB access while keeping a safety dial (read-only)
  • Works with: MongoDB connection URI; MCP clients like Claude Desktop/Cursor/Windsurf (integration guide linked in README)
  • Setup time: 2–10 minutes

Practical Notes

  • GitHub: 278 stars · 54 forks; pushed 2026-02-06 (verified via GitHub API).
  • README shows npx -y mcp-mongo-server <mongodb-uri> and --read-only as the primary usage pattern.
  • README documents env vars like MCP_MONGODB_URI and MCP_MONGODB_READONLY for configuration.

Main

Safer database access patterns for assistants:

  1. Start in read-only until you’ve validated tool behavior and logging.
  2. Prefer a dedicated MongoDB user with minimal privileges, even when read-only is enabled.
  3. Use the MCP client’s system prompt to declare what “allowed queries” mean (collections, time range, limits).
  4. Treat DB writes as a separate workflow with explicit approvals.

The key is turning “ask the DB” into a controllable tool boundary, not an unrestricted superpower.

FAQ

Q: Is npx required? A: That’s the documented default in the README (npx -y mcp-mongo-server …).

Q: How do I enable read-only? A: Pass --read-only or set MCP_MONGODB_READONLY (README).

Q: What clients can use it? A: README links an integration guide for Claude Desktop, Windsurf, Cursor, and Docker setups.

🙏

Source et remerciements

Source: https://github.com/kiliczsh/mcp-mongo-server > License: MIT > GitHub stars: 278 · forks: 54

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires