mongodb_usage
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? |
More from vuralserhat86/antigravity-agentic-skills
skill_creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
37huggingface_transformers
Hugging Face Transformers best practices including model loading, tokenization, fine-tuning workflows, and inference optimization. Use when working with transformer models, fine-tuning LLMs, implementing NLP tasks, or optimizing transformer inference.
22responsive_design
Build responsive, mobile-first layouts using fluid containers, flexible units, media queries, and touch-friendly design that works across all screen sizes. Use this skill when creating or modifying UI layouts, responsive grids, breakpoint styles, mobile navigation, or any interface that needs to adapt to different screen sizes. Apply when working with responsive CSS, media queries, viewport settings, flexbox/grid layouts, mobile-first styling, breakpoint definitions (mobile, tablet, desktop), touch target sizing, relative units (rem, em, %), image optimization for different screens, or testing layouts across multiple devices. Use for any task involving multi-device support, responsive design patterns, or adaptive layouts.
20cache_patterns
Instruction set for enabling and operating the Spring Cache abstraction in Spring Boot when implementing application-level caching for performance-sensitive workloads.
16zustand_state
Production-tested setup for Zustand state management in React. Includes patterns for persistence, devtools, and TypeScript patterns. Prevents hydration mismatches and render loops.
14vitest_runner
Modern JavaScript/TypeScript testing with Vitest including mocking and coverage.
13