One-click install
npx skills add https://github.com/evolution-foundation/evo-nexus --skill db-mongo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-mongo
Source: https://github.com/evolution-foundation/evo-nexus/tree/main/.claude/skills/db-mongo
Command: npx skills add https://github.com/evolution-foundation/evo-nexus --skill db-mongo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymongo, and includes scripts (resource) components.

What problem does it solve?

This Skill removes the friction of manually connecting to MongoDB and writing ad-hoc scripts by letting you query and audit MongoDB collections using connection blocks defined in your local .env file.

Core Features & Use Cases

  • Explore configured connections: List available MongoDB connection labels/indices and test connectivity via a ping.
  • Read-only querying & exploration: Fetch documents with find, run aggregation pipelines, list collections, and retrieve database stats.
  • Safety guardrails: Enforces read-only behavior by default, blocks write stages in aggregation unless ALLOW_WRITE is explicitly enabled per connection block.

Quick Start

Ask your AI to run a MongoDB query using the configured connection label, for example: find the active customers from the "customers" collection in the "orders-dev" connection.

Frequently Asked Questions about db-mongo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query MongoDB data using connection details from my .env file?

Query MongoDB data by referencing connection blocks configured locally in your .env file. Select a connection by label or numeric index to run find queries and aggregation pipelines for exploring collections and validating contents.

Can I run MongoDB aggregation pipelines safely without risking accidental writes?

Aggregation pipelines enforce read-only guardrails by default, blocking write stages unless ALLOW_WRITE is explicitly enabled per connection block. Queries also use server-side timeouts and cap returned rows using MAX_ROWS.

Do I need pymongo installed to query MongoDB collections via environment-based config?

Yes, pymongo is required at runtime to query MongoDB collections via environment-based config. The dependency enables connectivity, executes find queries, runs aggregation pipelines, and emits single-line JSON results to stdout.

What's the best way to audit MongoDB collections and summarize data safely?

Audit MongoDB collections by running find queries and aggregation pipelines configured via local .env connection blocks. Retrieve database stats, list collections, and validate contents with read-only safety enforced by default.

Why does my MongoDB query return a limited number of rows?

MongoDB queries cap returned rows using the MAX_ROWS setting and apply server-side timeouts. This read-only safety mechanism prevents overly large result sets from overwhelming the connection or consuming excessive resources.