Reads the user's own Clalit Health Services records (lab results, prescriptions, lab orders, medical documents) via CLI. Requires user-provided ID, CAPTCHA, and SMS OTP for login.
Ships in clalit-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read the user's own Clalit e-services records. Unofficial. Read-only.
Use the CLI when you can run shell commands on the user's machine with a normal residential network. Clalit sits behind Imperva; datacenter and cloud agent hosts usually get Error 16 and cannot log in.
git clone https://github.com/netanelavr/clalit-mcp.git
cd clalit-mcp
npm install
npm test
Every command below is run from the repo root:
npx tsx packages/cli/src/main.ts help
npx skills add netanelavr/clalit-mcp installs this skill for Cursor, Claude Code, Codex, and other agents that support skills.
The user must solve the portal CAPTCHA and enter the SMS OTP in a loopback browser page. Nothing is solved automatically.
npx tsx packages/cli/src/main.ts login
Session cookies are stored at ~/.config/clalit-mcp/session.json (mode 0600). Never commit or paste that file.
ID, CAPTCHA, and OTP may appear in the conversation when the user provides them — that is how interactive login works.
Use --json for machine-readable output.
npx tsx packages/cli/src/main.ts labs --json
npx tsx packages/cli/src/main.ts lab --ref TOKEN --json
npx tsx packages/cli/src/main.ts lab-document --ref TOKEN --out /tmp/clalit-lab.pdf
npx tsx packages/cli/src/main.ts prescriptions --json
npx tsx packages/cli/src/main.ts prescription-status --prescription NO --medication ID --form NAME --start DATE --section ID --json
npx tsx packages/cli/src/main.ts lab-orders --json
npx tsx packages/cli/src/main.ts lab-order --ref TOKEN --json
npx tsx packages/cli/src/main.ts documents --source visit_summaries --json # hospital_summaries | medical_approvals | form17
npx tsx packages/cli/src/main.ts document --ref TOKEN --out /tmp/clalit-doc.pdf
npx tsx packages/cli/src/main.ts records --source diagnoses --json # sensitivities | chronic_medications | medicines_purchased | medication_approvals | imaging_clinics | imaging_hospitals | imaging_external | hospital_visits | hospital_labs | referrals | appointments | recommendations | vaccinations | blood_type
npx tsx packages/cli/src/main.ts record-document --ref TOKEN --out /tmp/clalit-report.pdf
npx tsx packages/cli/src/main.ts export --out DIR # everything above into one folder, with a README for you to read first
npx tsx packages/cli/src/main.ts refresh-session
npx tsx packages/cli/src/main.ts logout
Take ref and prescription row fields from list output. Do not invent tokens.
When the user wants their whole history, a copy to keep, or many results at once, run export once and read the
folder (its README.md first) instead of calling lab per result: one sign-in covers everything, and the folder
outlives the session.
Exit codes: 0 success, 1 operation failure, 2 usage, 3 login / Imperva block.
Only when clalit-mcp MCP tools are already configured in the host. From a checkout, stdio MCP:
{
"mcpServers": {
"clalit-mcp": {
"command": "npx",
"args": ["tsx", "packages/cli/src/main.ts", "mcp"],
"cwd": "/absolute/path/to/clalit-mcp"
}
}
}
Tools: list_labs, get_lab_result, get_lab_document, list_prescriptions, get_prescription_issue_status, list_lab_orders, get_lab_order, list_documents, get_document, list_records, get_record_document, get_hospital_lab_result, plus clalit_login, clalit_session_status and clalit_logout.
When a tool says nobody is signed in, call clalit_login and give the user the link it returns. The user signs in on that page; with MCP, never ask for the ID, CAPTCHA or SMS code in the chat. The server keeps the session alive while it runs, until the length the user picked on the page.
Every record is real medical data. Anything you send to a model becomes part of that model's context.
Never paste ID numbers, cookies, session files, SMS codes, captcha images, lab PDFs, or HAR files into GitHub issues. Prefer a PR with a sanitized HTML fixture.
Security: see the repo SECURITY.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clalit, health-records, israeli-healthcare, lab-results, prescriptions
/clalit-mcp:clalit-mcpfrom clalit-mcp
npx claudepluginhub netanelavr/clalit-mcp --plugin clalit-mcpOther plugins' skills for the same job