For AI assistants New

Ask an assistant about a statement. On your machine.

A local tool server for Claude Desktop, Cursor and other MCP clients. 14 tools work out holdings, returns, gains and tax rows from the PDF where it is; no key and no upload.

  • No API key
  • The PDF is not uploaded
  • Identifiers off by default
# one command
npx -y @sachfolio/cas-mcp

# or in your client's settings
{ "mcpServers": { "sachfolio-cas": {
  "command": "npx",
  "args": ["-y", "@sachfolio/cas-mcp"],
  "env": { "CAS_PASSWORD": "your PDF password" }
} } }

14 tools

What you can ask.

Every answer is worked out on your machine from the statement's own rows.

You askToolIt returns
What is in this statement?read_casHoldings, a total and the checks that passed or failed.
Where is the money?list_holdingsBy fund category, fund house and direct or regular plan.
What happened in this fund?list_transactionsRows by fund, type and dates.
What did it earn?get_returnsXIRR per fund and overall, or why it can't be worked out.
What were the capital gains?get_capital_gainsBy financial year and lot, with flags such as a sale after a lien.
When do my units turn long term?list_open_lotsEach unsold lot's date, and the ELSS lock-in end.
What goes in Schedule 112A?get_schedule_112aThe rows for a year, in the e-filing portal's layout.
What dividends and TDS were there?get_incomeIDCW, TDS, STT and stamp duty by year.
Which shares and bonds are held?list_securitiesFrom an NSDL or CDSL statement.
How far can I trust this?get_checksWhat could not be read, on which page, and why.
What changed since last year?compare_statementsValue then and now, and the money in and out between.
Does the AIS agree with the statement?match_aisEach sale matched, differing or missing.
Which statement do I need?request_stepsThe steps to request it yourself. Nothing is submitted.
Can I keep the full data?save_exportJSON or CSV saved to your disk. The assistant sees only a receipt.

Each tool takes the PDF's path, password_env and include_identifiers, plus its own filters. Every tool's inputs

How it is built

Built so the statement stays private.

The password is never an argument

It comes from an environment variable on your machine, so it never passes through the AI provider.

Identifiers off by default

Names, PAN, folio numbers and addresses are removed from every tool's answer unless you turn them on.

Nothing is fetched or submitted

No tool requests a statement, reads an inbox or asks for an OTP.

Save without showing the model

The full JSON or CSV goes to a new file on your disk. It never replaces a file.

The same checked reader

Balances, units × NAV and totals are checked, as in the app and the SDK.

About the reader

No account

No key, no sign-up and no statement credits. Needs Node 22.13 or later.

How it works

Three steps.

  1. Add the server

    Paste your client's settings, or run the command.

  2. Set the password

    In the server's env, such as CAS_PASSWORD. Never in the chat.

  3. Ask about a statement

    Point the assistant at the PDF's path. It calls the tools and answers from the results.

Set it up

Settings for your client.

Restart the client after a change. Each PDF with a different password gets its own variable.

Claude Desktop

Settings › Developer › Edit Config.

{ "mcpServers": { "sachfolio-cas": {
  "command": "npx",
  "args": ["-y", "@sachfolio/cas-mcp"],
  "env": {
    "CAS_PASSWORD": "your PDF password",
    "AIS_PASSWORD": "your AIS password"
  }
} } }

Claude Code

Add --scope user for every project.

claude mcp add sachfolio-cas   -e CAS_PASSWORD="your PDF password"   -- npx -y @sachfolio/cas-mcp

Cursor

The Claude Desktop block, in ~/.cursor/mcp.json or a project's .cursor/mcp.json.

VS Code

In .vscode/mcp.json. VS Code asks for the password and keeps it out of the file.

{
  "inputs": [{ "type": "promptString", "id": "cas-password",
               "description": "CAS PDF password", "password": true }],
  "servers": { "sachfolio-cas": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@sachfolio/cas-mcp"],
    "env": { "CAS_PASSWORD": "${input:cas-password}" }
  } }
}

Other clients: stdio, command npx -y @sachfolio/cas-mcp. On Windows, if npx won't start, use cmd /c npx -y @sachfolio/cas-mcp.

Reference

Files it saves, and server details.

save_export formatFileIdentifiers
jsonThe full parsed statementYes
json_redactedThe same, without names, PAN, folios or addressesNo
casparser_jsoncasparser's JSON shapeYes
holdings_csvOne row per holdingYes
transactions_csvOne row per transactionYes
gains_jsonCapital gains, lot by lotYes
returns_jsonXIRR with every cash flowYes
schedule_112a_csvSchedule 112A in the portal's upload layoutNo
DetailValue
Package@sachfolio/cas-mcp
Server namesachfolio-cas
MCP versions2025-06-18, 2025-03-26, 2024-11-05
Transportstdio, on your computer
Writes filesOnly save_export, to a new path
NeedsNode 22.13 or later

What the model sees

The numbers a tool returns go to the AI model you use.

Holdings, values, units and costs are sent to your assistant's provider. The PDF, its password and, by default, every identifier are not.

See how we test privacy

Network after a file is pickedWatching
0
requests
0 bytes
sent
0
files stored

Plain limits

What it does not do.

It reads and works out. It does not collect.

  • Fetching a statementIt reads a PDF you already have. It lists the steps to request one; you submit the form.
  • Tax amounts and adviceIt gives the gain, the term and the rule applied. Never a tax figure or a recommendation.
  • Share transactionsNSDL and CDSL statements are read for holdings. Their transactions are not read.
  • Hosted useIt runs on the user's computer, not as a remote server.

Ask your assistant about a statement.

Free to run. For your own product, the SDK and API are in Business.