mcp-data-observability-integration
Skill49 starsChanged 6 months agoMITView on GitHub
Guides agents to wire Model Context Protocol servers for live data platform observability including Spark execution plans, OOM diagnosis, Kafka consumer lag, and orchestration run state. Use when agents need cluster metrics, streaming lag, or job diagnostics instead of blind code changes.
In this repository80 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-data-agent-core.mdcCursor rule
- .cursor/rules/10-spec-first.mdcCursor rule
- .cursor/rules/20-platform-preset-selector.mdcCursor rule
- .cursor/rules/30-quality-gates.mdcCursor rule
- airflow-and-workflow-orchestrationSkill
- apache-beam-unified-batch-and-streamSkill
- apache-hudi-lakehouseSkill
- api-and-saas-ingestion-patternsSkill
- avro-protobuf-json-schema-registrySkill
- bigquery-and-dataform-platform-engineeringSkill
- cdc-and-incremental-loadingSkill
- clickhouse-real-time-analyticsSkill
- data-catalog-and-discoverySkill
- data-contract-testing-with-schema-registrySkill
- data-lake-and-zone-architectureSkill
- data-mesh-and-domain-oriented-designSkill
- data-migration-and-platform-cutoverSkill
- data-observability-and-sla-managementSkill
- data-platform-ci-cd-and-release-managementSkill
- data-platform-disaster-recovery-and-business-continuitySkill
- data-platform-operating-model-and-service-ownershipSkill
- dataplex-and-bigquery-governanceSkill
- data-quality-and-contract-testingSkill
- data-quality-platforms-and-rule-managementSkill
- data-reconciliation-and-financial-controlsSkill
- data-resiliency-testing-and-failure-injectionSkill
- data-security-compliance-and-regulated-dataSkill
- data-sharing-and-publishing-contractsSkill
- data-specificationSkill
- dbt-and-analytics-engineeringSkill
- debezium-and-kafka-connect-cdcSkill
- delta-lake-and-medallion-architectureSkill
- duckdb-local-analytics-and-devSkill
- enterprise-etl-and-data-integration-modernizationSkill
- esg-and-sustainability-regulatory-reportingSkill
- etl-elt-and-modernization-strategySkill
- feature-store-and-ml-data-pipelinesSkill
- file-and-partner-feed-ingestionSkill
- glue-data-catalog-and-lake-formation-governanceSkill
- great-expectations-deequ-and-cualleeSkill
- incident-triage-and-pipeline-recoverySkill
- java-data-engineering-and-integration-servicesSkill
- kafka-resilience-and-schema-evolutionSkill
- lakefs-and-data-versioningSkill
- lakehouse-table-format-engineeringSkill
- lineage-pii-and-governanceSkill
- lower-environment-data-masking-and-obfuscationSkill
- mainframe-modernization-and-data-offloadSkill
- master-data-and-entity-resolutionSkill
- microsoft-purview-and-azure-data-governanceSkill
- notebook-to-production-hardeningSkill
- openmetadata-datahub-and-openlineageSkill
- operational-datastore-selection-relational-and-nosqlSkill
- orchestration-and-backfillsSkill
- pipeline-planning-and-task-breakdownSkill
- privacy-retention-and-right-to-deleteSkill
- python-data-engineering-and-pipeline-packagingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Do not use MCP write capabilities for destructive fixes during incident triage unless explicitly approved and scoped.
- Distinctive: line 75
no allowlists on Kafka topics or warehouse schemas
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MCP Data Observability Integration
Overview
Agents that cannot see production signals guess at fixes — scaling clusters blindly, rerunning jobs that OOM for structural reasons, or changing Kafka consumers without checking lag. This skill pairs MCP server templates with safe read-only observability workflows so diagnosis precedes mutation.
When to Use
- diagnosing Spark OOM, shuffle skew, or stage failures
- inspecting Kafka consumer group lag before replay or consumer changes
- reviewing Airflow DAG run state, task duration drift, or failed retries
- validating warehouse publish state before reopening downstream consumers
- setting up IDE-integrated observability for data engineering agents
Do not use MCP write capabilities for destructive fixes during incident triage unless explicitly approved and scoped.
Workflow
- Choose the smallest MCP surface for the question.
- Spark plans and stage metrics:
mcp/spark.mcp.jsonormcp/databricks.mcp.json - Kafka lag and topic metadata:
mcp/kafka.mcp.json - Orchestration run state:
mcp/airflow.mcp.json - Warehouse inspection:
mcp/snowflake.mcp.json,mcp/bigquery.mcp.json, ormcp/postgres.mcp.json - Release and job metadata:
mcp/dbt-cloud.mcp.json,mcp/github.mcp.json
- Spark plans and stage metrics:
- Configure read-only first.
From
mcp/README.md:- replace placeholder
commandwith the MCP server binary in use - scope credentials to read-only inspection roles
- set allowlists (
topic, catalog, schema) to minimum necessary scope - validate connectivity outside the agent session before relying on tool output
- replace placeholder
- Establish the diagnostic sequence.
Typical order:
- confirm symptom (lag, failure rate, freshness breach)
- pull live metadata (consumer lag, last successful run, stage skew)
- compare against baseline or SLA from
data-observability-and-sla-management - form hypothesis before proposing code or infra changes
- record findings in incident or backfill evidence templates when action follows
Apply platform-specific investigation patterns.
- Spark OOM or timeout: inspect stage breakdown, shuffle read/write bytes, spill metrics, and partition counts; prefer physical plan fixes over blind scale-up
- Kafka lag: inspect group lag per partition, DLQ rate, and retention headroom; pause replay until lag root cause is classified
- Orchestration failures: inspect task logs, retry history, and upstream sensors; do not trigger wide backfills from a single red task without plan gates
Load
references/mcp-data-observability-patterns.mdfor tool-to-symptom mapping.- Pair observability with safety skills.
- replay or repair:
safe-backfill-and-replay-orchestration - streaming hardening:
kafka-resilience-and-schema-evolution - serverless Spark:
spark-serverless-reliability-and-state-management - incident response:
incident-triage-and-pipeline-recovery
- replay or repair:
- Close the loop after changes. Re-query MCP signals to confirm lag recovery, run success, or freshness restoration before publish reopen.
Common Rationalizations
| Rationalization | Reality |
| "We can infer the problem from logs alone." | Logs without lag, plan, and run metadata miss systemic causes like skew and consumer stall. |
| "MCP access should use admin credentials for speed." | Over-scoped tokens increase blast radius when agents suggest broad changes. |
| "Observability is only for on-call humans." | Agents without live signals replicate dangerous guesswork at machine speed. |
| "One MCP server is enough for every stack." | Multi-platform estates need focused templates per system, not one mega-connection. |
Red Flags
- agents propose infra or code changes without querying live signals
- MCP templates use write-capable credentials by default
- no allowlists on Kafka topics or warehouse schemas
- lag or run failure is acknowledged but not tied to an owner or SLA
- observability findings are not linked to backfill or incident evidence
Verification
- The correct MCP template is selected and validated read-only
- Live signals were queried before structural changes were proposed
- Findings map to a named safety skill when replay or publish is involved
- Post-change signals confirm recovery before publish reopen
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

