Guides · For agents
Add Sift to Claude Code as an MCP server
To add an MCP server to Claude Code, run claude mcp add with a name, two dashes, and the command that starts the server. For Sift that is one line, and then you start a new session. You need Node 18 or newer, and nothing else.
1. Check you have Node
In a terminal, run node --version. It should say v18 or higher. If it says "command not found", install Node from nodejs.org first. Sift is fetched by npx, which comes with Node.
2. Add the server
Run this in the folder you work in:
claude mcp add sift -- npx -y @heyife/siftdata@0.8.2
Everything after the two dashes is the command Claude Code runs to start Sift. The first time, npx downloads the published package. The @0.8.2 pins the version, so Sift only changes when you change that number.
--scope user before sift--scope project. Claude Code writes a .mcp.json file you can share.Or add a .mcp.json file
If you would rather not use the command, save this as .mcp.json in the folder you work in. It does the same as --scope project.
{
"mcpServers": {
"sift": {
"command": "npx",
"args": ["-y", "@heyife/siftdata@0.8.2"]
}
}
}
3. Start a session and check it
- Open a new Claude Code session in that folder. A server from a .mcp.json file asks you to approve it the first time. Approve
sift. - Type
/mcpin the session, or runclaude mcp listin a terminal. Sift should show as connected. - If you change the config, start a new session so it is read again.
4. Try it
The test files are fake. Download them, then paste this, using your own full paths.
Use Sift to match /path/to/crm_companies.csv on customer_id to /path/to/product_accounts.csv on account_id. Tell me matched, CRM only, product only and the match rate.
If your numbers differ, check that Claude called the Sift tool and did not count the rows itself.
5. Keep Claude out of the exports
Sift sends Claude counts and record IDs, never rows. But Claude Code has its own file tools and will open an export if asked. Block that for your exports folder in .claude/settings.json:
{ "permissions": { "deny": ["Read(./exports/**)"] } }
That covers Claude's file tools and simple reads such as cat and head. For other shell commands and scripts, also turn on Claude Code's sandbox with a read block on the same folder. Sift runs as its own process, so it can still read the files. These stop an accident; they are not a wall.
Settings you might want
Sift reads settings from its entry in the config. To keep every file Sift writes in one folder, add --env when you add it:
claude mcp add --env SIFT_OUTPUT_DIR=/Users/you/sift-output --transport stdio sift -- npx -y @heyife/siftdata@0.8.2
Keep another option, such as --transport stdio, between --env and the name, or Claude Code reads the name as another setting. To change a setting or move to a new version, run claude mcp remove sift and add it again. Every setting is listed in the docs.
Questions
No. You need Node 18 or newer. Claude Code starts Sift with npx, which fetches the published package the first time.
The default keeps Sift to you, in this folder. Use
--scope user to have it in every folder, or --scope project to share it with everyone working on the project.Sift is built and tested with Claude Code. Other MCP clients should work. Claude Desktop steps are in the docs.
No. Sift runs on your machine and makes no network calls, unless you turn on a live database connection or the usage ping yourself.
Claude Desktop and building from source are covered in the docs.