Caplets Catalog
official
spiritledsoftware/caplets

MongoDB

Inspect MongoDB databases, collections, schemas, indexes, queries, and Atlas resources through MongoDB's MCP server with read-only access by default.

Install
caplets install spiritledsoftware/caplets mongodb

Inspect before installing

  • Local controlThis Caplet can operate against local project or machine state.
  • Setup requiredThis Caplet includes setup steps that should be completed before use.
CAPLET.md

Frontmatter

FieldValue
nameMongoDB
descriptionInspect MongoDB databases, collections, schemas, indexes, queries, and Atlas resources through MongoDB's MCP server with read-only access by default.
tagsmongodb, atlas, database, queries, nosql
catalog.iconhttps://www.mongodb.com/favicon.ico
setup.verify[0].labelCheck Node.js is available
setup.verify[0].commandnode
setup.verify[0].args--version
setup.verify[1].labelCheck npx is available
setup.verify[1].commandnpx
setup.verify[1].args--version
mcpServer.commandnpx
mcpServer.args-y, mongodb-mcp-server@latest, --readOnly
mcpServer.env.MDB_MCP_CONNECTION_STRING$vault:MDB_MCP_CONNECTION_STRING
mcpServer.startupTimeoutMs100000
mcpServer.callTimeoutMs300000

MongoDB

Use this Caplet when an agent needs MongoDB database, collection, schema, index, query, sample document, or Atlas operational context.

First Workflow

  1. Start by confirming the cluster, database, collection, Atlas project, environment, and read-only intent before querying data.
  2. Inspect schema samples, indexes, query plans, and collection metadata before recommending query or index changes.
  3. Keep result windows small and project only the fields needed to answer the question.
  4. Summarize proposed writes, index changes, Atlas actions, or migration steps before removing --readOnly or changing credentials.

Operate Carefully

  • The catalog entry starts MongoDB MCP with --readOnly and a Vault-backed connection string by default.
  • MongoDB data can contain production records, PII, secrets, and customer information. Avoid broad scans and redact sensitive fields in summaries.
  • For Atlas API workflows, configure the upstream server with least-privilege Atlas service account credentials instead of a database connection string.
  • Avoid this Caplet when the task only needs local ODM models, migrations, or application code.