MCP and Docker
Use it from an AI agent (MCP)
Agents now change pipelines and query data on their own. DataRanger can run as an MCP server, so an agent can check a table before it trusts it, and hand anything it cannot prove to a person.
With uv there is nothing to install first. Claude Code:
claude mcp add dataranger -- uvx dataranger mcp
Claude Desktop, Cursor or VS Code (add to the client's MCP config):
{
"mcpServers": {
"dataranger": { "command": "uvx", "args": ["dataranger", "mcp"] }
}
}
Or pip install dataranger and use dataranger mcp as the command. DataRanger is listed in the MCP Registry as io.github.akshaysharma1088/dataranger.
The server exposes six tools:
| Tool | What it does |
|---|---|
patrol_duckdb |
Patrol a fact table in a DuckDB file, with your column names |
patrol_files |
Patrol exported CSV, TSV or Parquet files |
patrol_snowflake |
Patrol a Snowflake table, reading only the last N days |
patrol_dbt |
Patrol the table behind a dbt model, using the mapping in its meta block |
get_incident |
Return the full evidence for one incident from a previous patrol |
run_demo |
Patrol generated data with planted problems, to see the output |
Each patrol returns the counts (auto-fixed, no action needed, escalate), the incidents that need a person, and the paths to the dashboard, audit log and proposed fixed version.
The tools are read-only towards your data. Inputs are opened read-only, nothing is written back, and fixes exist only in the proposed fixed version for review. An agent can learn what is wrong and what DataRanger could prove; it cannot change your warehouse through this server.
Try asking your agent: "Use DataRanger to run the demo and tell me which partitions need a person, and why."
Docker
Prebuilt images, one per release, on the GitHub Container Registry:
docker run --rm -i ghcr.io/akshaysharma1088/dataranger:latest
Runs DataRanger as the same MCP server over stdio, for hosts that run tools in a container rather
than a local Python environment. Pin a version instead of latest with
ghcr.io/akshaysharma1088/dataranger:v0.6.2, and so on for any tagged release.