mongodb_usage
8
总安装量
5
周安装量
#35139
全站排名
安装命令
npx skills add https://github.com/vuralserhat86/antigravity-agentic-skills --skill mongodb_usage
Agent 安装分布
claude-code
4
trae
2
antigravity
2
codex
2
gemini-cli
2
Skill 文档
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
- List available databases with
mcp__mongodb__list_databases - Explore collections with
mcp__mongodb__list_collections - Get schema information with
mcp__mongodb__get_collection_schema - Query data as needed for analysis
- 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 MongoDB Usage v1.1 – Enhanced
ð Workflow
AÅama 1: Discovery & Inspection
- Connection:
mcp__mongodb__list_databasesile eriÅimi doÄrula. - Schema Analysis:
mcp__mongodb__get_collection_schemaile veri tiplerini ve yapıyı anla. - Index Check: Mevcut indeksleri listele (
list_indexesveya benzeri sorgu ile).
AÅama 2: Query Construction
- Filter: Sorguları indeksli alanlar (Prefix) üzerinden filtrele.
- Projection: Sadece gerekli alanları (
{ field: 1 }) seç (Network ve RAM tasarrufu). - Aggregation: KarmaÅık analizler için
$match,$group,$projectpipeline’ını kur.
AÅama 3: Performance Check (Explain Plan)
- Explain: Sorgunun
COLLSCAN(Tam tarama) mıIXSCAN(Index tarama) mı yaptıÄını kontrol et. - Optimization: YavaÅ sorgular için bileÅik indeks (Compound Index) öner.
Kontrol Noktaları
| AÅama | DoÄrulama |
|---|---|
| 1 | Sorgu 100ms’in altında cevap veriyor mu? |
| 2 | “In-memory sort” limiti aÅılıyor mu (disk kullanımı var mı)? |
| 3 | Regex sorguları indeksin baÅlangıcını (anchor ^...) kullanıyor mu? |