Mida MCP Server
Integrates with Grafana Loki to search and trace logs, find errors, and diagnose queue issues.
Provides read-only tools for session tracing, replica integrity checks, and analytics queries against MongoDB shards.
Allows checking app embed status, script tags, and theme settings via the Shopify Admin API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Mida MCP Serverinvestigate why sessions are not recording for shop 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mida-mcp
MCP server cho hệ thống Mida — giúp AI tự động làm Root Cause Analysis (RCA) cho issues của app (session không ghi, heatmap trống, replica drift, lỗi hiển thị...).
Tính năng
Nhóm tool | Số tool | Mô tả |
| 5 | Trace log, tìm lỗi, chẩn đoán queue (Loki/Grafana) |
| 15 | Session trace, replica integrity, analytics (MongoDB read-only) |
| 3 | Kiểm tra app embed, script tag, theme (Shopify Admin API) |
| 2 | Trạng thái shop từ Mida backend |
| 4 | Render rrweb replay, so sánh với live site (Playwright) |
| 1 | Tìm trong tài liệu Mida (MiniSearch) |
Resources: mida-doc://index, mida-doc://page/{slug}
Prompts RCA: system_prompt, rca_investigate, rca_recording, rca_data_integrity, rca_rrweb
Related MCP server: ClipSense MCP Server
Cài đặt
npm install
npx playwright install chromium # cần cho rrweb_render / rrweb_diagnose
cp .env.example .env # điền các URI / tokenCấu hình .env
Biến | Bắt buộc | Mô tả |
| ✓ |
|
| khi http | Secret ≥ 32 ký tự |
| MongoDB proxy (shard resolver) | |
| MongoDB api shard 1/2 | |
| MongoDB heatmap shard 1/2 | |
| MongoDB recorder shard 1/2 | |
| Redis (mặc định | |
| Grafana Loki endpoint | |
| Bearer token (hoặc dùng | |
| Mặc định | |
| Mida backend URL | |
| crawl | API key Firecrawl |
| crawl | URL trang docs để crawl |
Chạy
# HTTP mode (remote, cần JWT)
npm start
# Stdio mode (local, Claude Desktop / Claude Code)
MCP_TRANSPORT=stdio npm start
# Dev với hot reload
npm run devCrawl tài liệu
npm run crawl:docs # Firecrawl → data/mida-doc/*.md
npm run docs:index # Build MiniSearch index → data/mida-doc/index.jsonCấu hình Claude Desktop / Claude Code
Sao chép .mcp.json.example → .mcp.json và điền đường dẫn tuyệt đối.
RCA workflow
Issue → rca_investigate prompt
→ docs_search (hiểu hành vi đúng)
→ mongo_resolve_shop (xác định shard)
→ loki_search_errors / loki_trace (khoanh vùng log)
→ mongo_session_trace (tìm tầng đứt nếu "không ghi")
→ mongo_compare_replica + mongo_missing_report (drift check)
→ rrweb_diagnose (lỗi hiển thị)
→ shopify_check_embed (phía Shopify)
→ Kết luận: Root Cause · Evidence · Fix · ConfidenceBảo mật
Tất cả MongoDB connection là read-only user
Whitelist collection theo từng DB, chặn
$out,$merge,$function,$whereaccess_tokenvà secrets bị redact khỏi mọi outputApp API chỉ cho phép GET và whitelist path prefix
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/quyensatoru/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server