Skip to main content
Glama

Sift

The data tool your agent can't fudge.

Sift audits, cleans and reshapes customer data and the other files a business runs on: CSV, Excel, JSON and Parquet files, and read-only database tables. It works two ways:

  • With your agent. A local MCP server with fourteen tools. Your agent sends file paths; Sift counts, fixes and proves it, and sends back counts, flagged row IDs and a receipt ID. The rows never pass through the model.

  • By hand. A browser app at siftdata.app/app. Drop a CSV, Excel or PDF, approve each fix, download a clean file. Nothing is uploaded.

No AI runs inside Sift. The same file always gives the same answer.

Sift makes the answer exact, not the question right: your agent still picks the columns and the condition. And it is new, first released on 28 November 2026 and maintained by one person, so cross-check any number that matters. When to use it, and when a script will do.

Use it with Claude

Needs Node 18 or newer. Add this to .mcp.json (Claude Code) or Claude Desktop's config:

{
  "mcpServers": {
    "sift": { "command": "npx", "args": ["-y", "@heyife/siftdata@0.8.2"] }
  }
}

The package is @heyife/siftdata. To run from source instead: npm install, npm run agent:build, and point node at dist-agent/sift-mcp.mjs. Full steps: docs/agents.md.

Built and tested with Claude Code. Other MCP clients should work.

The version is pinned, so Sift only changes when you change that number. Read CHANGELOG.md before you do. What leaves your machine (nothing from the agent tool, unless you turn on its usage ping), one output folder, masked receipts and siftdata clean are in docs/agents.md.

Sift sends nothing unless you ask it to. Set SIFT_TELEMETRY=1 to share which tools you use (tool name, version, worked or not, a row band, your agent's name; never anything from your files). See what leaves your machine.

Related MCP server: jsonloupe

The tools

Tool

Gives back

Writes files

sift_profile

Rows, columns, blanks, values not in standard form, and on request the most common values in each column

No

sift_count

Duplicates (exact and trimmed/lowercased), blank key fields, values not on an allowed list, and rows meeting a condition with a sum and average

No

sift_match

Matched, left only, right only, match rate, and rows, customers, sums, averages and days between two dates for checks across the join

No

sift_prepare_import

Rows to hold back before an import, with a reason each, and optional ready and held files

Only when asked

sift_reshape

Proposes a column mapping to another system's layout, then with the agreed mapping writes a new CSV in that layout, with readiness counts and a receipt

Only with an agreed mapping

sift_check

Pass or fail against the rules file's limits, and what moved since the last run

Only a history file, when asked

sift_sample

A repeatable sample of customers, traced through every file: found, missing, and the fields you name

Only when asked

sift_fix_dry_run

What a fix would change, how many rows each reason flagged, and a dry run ID. Fixes: phone, email, postcode, company_name, trim, case, map_values, number, date_format, strip_currency, set_if, blank_to, mark_duplicates, status, fill_id

Only the flagged-rows file, when asked

sift_fix_apply

The new file's path, a receipt ID and a changes-only file, or why it stopped

A new copy, a receipt and a changes-only file

sift_fix_undo

The restored file's path and whether it matches the original

A restored copy

sift_check_landed

After an import, which changes reached the CRM, by record ID

No

sift_measures

Health measures for every complete month: active share, activation, repeat, win-back

Only a history file, when asked

sift_holdout

Picks a hold-out group by seed, or tops one up, and writes the list for the email tool

A hold-out list

sift_lift

Lift against the hold-out over a window: each group, the difference, a 95% range, and the same before the start

Only a history file, when asked

Most work uses profile, count, match, prepare, check and the fixes. sift_measures, sift_holdout and sift_lift are for one narrower job, measuring a lifecycle programme.

Profile, count and match read every format above. Big files and databases go through a DuckDB engine that runs the same checks as SQL and gives the same numbers. Live database connections are off until you turn them on. Fixes are CSV only, so undo stays exact. Details: docs/agents.md.

The same checks run without an agent, for n8n, cron or CI:

npx @heyife/siftdata@0.8.2 check list.csv --rules rules.contacts.json --history runs.jsonl

Exit code 0 pass, 1 a limit failed, 2 could not run.

Guardrails

These cover Sift for agents. The browser cleaner lets you remove empty or duplicate rows from your export if you choose to; your original is never changed.

  • Never deletes a row. Duplicates are marked, not removed.

  • Never edits a field the rules file marks hands-off.

  • Never writes over your file.

  • Always a dry run first, on the exact file you apply to.

  • Stops if a fix would change too many rows, and says why.

What counts as complete, allowed or hands-off lives in a rules file, one per record type. See rules.companies.json.

Proof

test-data/ holds fake files and ANSWERS.md, the numbers Sift must hit. The tests check every one.

npm test

Run the website

npm install
npm run dev    # http://localhost:3003

Editing the docs

public/docs.md is the source. docs/agents.md and the tools table above are copied from it, so edit public/docs.md and run npm run docs. The docs page, llms.txt, this README and SECURITY.md are written by hand, and src/agent/docs.test.ts checks them all against the code: every tool, fix, setting and command must be named, none that doesn't exist, and any tool count must be right. The version comes from packages/siftdata/package.json and is written in by npm run npm:pack.

Updates and feedback

  • Follow releases: Watch, then Custom, then Releases, at the top of this page, or the release feed.

  • Tell me how you use it: a post in Show and tell (public), or a message on LinkedIn (private). Never paste customer data.

  • The tool list is frozen for now. The work is on keeping these correct. New tools will come from what people ask for.

Licence

MIT. What changed in each version is in CHANGELOG.md. Part of Constellations, a library of tools by heyife.

Security

Report problems privately through the Security tab. What Sift promises and how: SECURITY.md.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to inspect, read, and make targeted edits to local Office documents, PDFs, images, archives, media and other files, writing changes into new reviewable copies while leaving originals intact and returning JSON receipts. It also screens supported files for hidden content and privacy risks, running entirely offline as a local server over stdio.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Lets an agent query JSON files too large for its context: JSONPath with aggregation pipes, schema, field profiles, samples, identity-keyed diff, CSV and spreadsheet export, and checks that gate a file. Int64 IDs and decimals keep their exact digits, and zstd, Base64-Zstd and PostgreSQL bytea payloads open directly.
      12
      68 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to inspect local files, validate supported formats, profile CSV datasets, find duplicates, compare versions, diagnose structural issues, and perform explicitly authorized normalizations with preconditions and post-write verification.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables local, deterministic inspection, conversion, and sampling of CSV, JSONL, and xlsx files, including schema and dirty-row reporting, without network access or data leaving the machine.
      MIT