icetrace-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
icetrace
Cut Apache Iceberg bills in 10 seconds.
Zero data scanned. Strictly read-only. Diagnose → Safe Fix Plan → Verify for Apache Iceberg — from your terminal, CI/CD, Cursor, or Claude Code.

icetrace connects to your catalog (AWS Glue, Polaris, Lakekeeper, Nessie, S3 Tables, Hive, or SQL), reads only metadata (zero data files scanned, strictly read-only), and closes the full optimization loop:
Diagnose — X-ray an entire database (
icetrace scan) or simulate exact 4-stage scan pruning (icetrace explain) to catch silent pruning bugs and dead snapshot storage (icetrace roi).Fix safely — Generate risk-ordered, copy-pasteable remediation scripts for Spark, Athena, Trino, AWS Glue, or PyIceberg (
icetrace fix), complete with rollback commands, pre-checks, and PR/Jira Markdown runbooks.Verify & Gate in CI — Prove the fix worked with
icetrace diffand block future regressions in GitHub Actions / GitLab CI withicetrace check.
Try It in 5 Seconds (No Credentials Required)
uvx icetrace demo
# Or preview the generated fix plan for your own engine:
uvx icetrace demo --engine athena # spark | athena | trino | glue | pyicebergOr run the full loop on your own catalog — read-only, zero infrastructure to deploy:
# 1. X-ray an entire database and rank worst offenders (0–100)
ICETRACE_CATALOG_TYPE=glue icetrace scan --namespace analytics
# 2. Generate a safe, risk-ordered fix plan (with rollback & verify commands)
ICETRACE_CATALOG_TYPE=glue icetrace fix analytics.events --engine glue --show-rollback
# 3. Export a PR / Jira runbook or pipe runnable SQL
ICETRACE_CATALOG_TYPE=glue icetrace fix analytics.events --engine spark --format markdown
# 4. Gate table health in CI/CD (exits 1 on violation)
ICETRACE_CATALOG_TYPE=glue icetrace check analytics.events --min-score 75 --fail-on-missing-metricsRelated MCP server: MCP Trino Server
Agent-Native Workflow (Cursor & Claude Code MCP)
icetrace-mcp exposes 9 strictly read-only MCP tools plus a companion Agent Skill. Because generate_fix_plan returns structured properties_to_set, repo_search_hints, rollback_commands, and verification commands, your coding agent can diagnose a production table, patch the dbt model / Terraform / Spark job in your repo, and verify the new snapshot after deployment:
"Scan our
analyticsdatabase, generate a safe Glue fix plan for the worst table, and update its Terraform/Spark config in this repo."
"Why didWHERE tenant_id = 'org_prod_8491'scan 180 GB onanalytics.events, and what's the safest fix?"
Claude Code:
claude mcp add --transport stdio --scope user icetrace -- uvx --from "icetrace[glue]" icetrace-mcpCursor (.cursor/mcp.json or ~/.cursor/mcp.json):
{
"mcpServers": {
"icetrace": {
"command": "uvx",
"args": ["--from", "icetrace[glue]", "icetrace-mcp"],
"env": {
"ICETRACE_CATALOG_TYPE": "glue",
"AWS_PROFILE": "${env:AWS_PROFILE}",
"AWS_REGION": "us-east-1"
}
}
}
}How It Finds Waste in Seconds (Without Reading Your Data)
Apache Iceberg already stores every Parquet file's partition values, column min/max bounds, file sizes, and snapshot history inside tiny metadata files (metadata.json and Manifest Avro files — typically kilobytes to a few megabytes, even for 100 TB tables).
icetrace never touches your Parquet data files (0 data bytes scanned, $0 query cost). Instead, it fetches only those metadata files in parallel (16-way concurrent) and runs Iceberg's exact 4-stage pruning math locally:
metadata.json ──▶ Manifest Lists (16x parallel) ──▶ Manifest Avro (min/max bounds & file sizes)
│
┌──────────────────────────────────────────────────┴─────────────────────────────────┐
▼ ▼ ▼
4-Stage Pruning Sim Dead Snapshot Diff Safe Fix Plan + ROI
(exact PyIceberg parity) (active vs old files) (Spark/Athena/Glue/Trino)Query waste: Simulates Iceberg's exact file-skipping rules against column bounds & computes $O(N \log N)$ interval overlap (
0.00= sorted,1.00= full overlap) to prove how many bytes a fix will skip.Storage waste: Diffs the file paths referenced by your current snapshot vs. older snapshots — measuring exact reclaimable S3/GCS bytes without listing buckets or scanning data.
Why Teams Actually Use This
Query engines (Athena, Trino, Spark, ClickHouse, Snowflake) execute your query and hand you the bill — they don't tell you why Iceberg failed to skip files or how to fix it safely. icetrace catches the exact silent traps that cause 10x–100x over-scanning:
Columns past #32 have zero bounds (
MISSING_METRICS_COL_LIMIT) — Iceberg stops recording min/max stats after column 32 by default.16-char string truncation collisions (
TRUNCATED_BOUNDS) — defaulttruncate(16)collapses prefixed IDs/URIs (org_prod_us_east_...) across every file, turning data skipping to 0%.Compaction destroyed your clustering (
OVERLAPPING_RANGES) — binpack or arrival-order writes make every file span the full domain (overlap = 0.98).Missing writer stats & interleaved manifests — catches zero-copy
add_filesjobs that omitted Parquet stats, evolved partition-spec mismatches, and V2/V3 delete-file amplification.Ghost storage in old snapshots — measures exact historical-only bytes locked in un-expired snapshots.
Install
# Zero-install (recommended)
uvx icetrace demo
# Homebrew (macOS / Linux)
brew tap sanspareilsmyn/icetrace https://github.com/sanspareilsmyn/icetrace
brew install icetrace
# uv tool (with AWS Glue & S3)
uv tool install "icetrace[glue]"Works out of the box with ~/.pyiceberg.yaml, ICETRACE_CATALOG_TYPE (glue, rest, sql, hive), and standard AWS/GCP credentials.
9 Read-Only Tools (CLI & MCP)
CLI / MCP Tool | What You Get (Metadata Only) |
| Concurrently X-ray all tables in a database, score |
| Risk-ordered Spark/Athena/Trino/Glue/PyIceberg fix scripts, rollback commands, repo patch hints, and verification commands. |
| CI/CD health gate ( |
| Historical snapshot S3 waste ( |
| 4-stage pruning funnel (100% parity with PyIceberg |
| Per-column pruning grade ( |
| Pinpoint which commit spiked manifests, dropped bounds, or regressed query pruning. |
| Instant |
| Catalog & namespace discovery. |
Safety First — Built for Production Tables
Strictly Read-Only — never mutates, compacts, or expires tables (
readOnlyHint: true,destructiveHint: false).icetrace fixgenerates reviewable scripts; it never executes them.Risk-Tiered Remediation — always orders
SAFE_METADATA_ONLY→COMPUTE_REWRITE(with snapshot rollback) →DESTRUCTIVE_CLEANUP(safe 7-day /retain_last=5defaults + pre-checks).Manifest-Safe Defaults — uses bounded
truncate(32)/truncate(64)on string columns instead of unboundedfullto prevent Avro manifest bloat.Zero Data Scanned & 100% Local — reads only metadata files (16-way concurrent, bounded by
max_manifests); credentials never leave your machine.
Roadmap · Changelog · Agent Skill · Contributing · Apache-2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Monitor MCP servers, API contracts and AI outputs for schema drift. Alerts on breaking changes.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Hosted MCP server for RudderStack, the agentic CDP that runs on your warehouse. Ask Claude, ChatGPT, Cursor or Codex why events failed, which warehouse loads broke, or where your tracking plan is violated. Build and test transformations and audiences. OAuth login, your permissions, PII masked.
MCP deployment checks: required tools, schema drift and verifiable receipts. Free preflight.
Related MCP Servers
- AlicenseCqualityDmaintenanceAn MCP server that enables natural language interaction with Apache Iceberg data lakehouses, allowing users to query table metadata, schemas, and properties through Claude, Cursor, or other MCP clients.541Apache 2.0
- AlicenseBqualityBmaintenanceA Model Context Protocol server that provides seamless integration with Trino and Iceberg, enabling data exploration, querying, and table maintenance through a standard interface.22431 PyPI25Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server providing seamless integration with Trino and Iceberg for advanced data exploration, querying, and table maintenance.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP Server for Apache Iceberg, enabling users to read, query, and manipulate data within Iceberg catalogs.316 PyPI2Apache 2.0