首页/ AI 技能 / @skilllib/skill-2014279382490099714
Skill站外收录 @skilllib/skill-2014279382490099714

mongodb-usage

提供对 MongoDB 数据库的只读查询能力,支持浏览数据库与集合、获取表结构、检索记录及分析索引信息,适用于需要从 MongoDB 中提取数据进行展示或分析的场景。通过连接字符串建立连接后,可按需调用相应接口完成数据访问。

0.0 (0) 536 次安装 原作者 编程导航
收录于 2026-01-22
数据库 AI 技能

Skills.MD

# MongoDB MCP Usage Use the MongoDB MCP server to integrate database queries into workflows. ## Read-Only Access MongoDB MCP is configured in read-only mode. Only queries and data retrieval are supported. No write, update, or delete operations. ## Database Queries Use `mcp__mongodb__*` tools for: - Listing databases - Viewing collection schemas - Querying collection data - Analyzing indexes ## Integration Pattern 1. List available databases with `mcp__mongodb__list_databases` 2. Explore collections with `mcp__mongodb__list_collections` 3. Get schema information with `mcp__mongodb__get_collection_schema` 4. Query data as needed for analysis 5. Format results for user consumption ## Environment Variables MongoDB MCP requires: - `MONGODB_URI` - Connection string (mongodb://...) Configure in shell before using the plugin. ## Cost Considerations - Minimize database calls when possible - Use schema queries before running analysis queries - Cache results locally if multiple calls needed - Prefer aggregation pipelines for complex operations

评论 0

还没有评论,来抢沙发。