The password is never an argument
It comes from an environment variable on your machine, so it never passes through the AI provider.
For AI assistants New
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.
# 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
Every answer is worked out on your machine from the statement's own rows.
| You ask | Tool | It returns |
|---|---|---|
| What is in this statement? | read_cas | Holdings, a total and the checks that passed or failed. |
| Where is the money? | list_holdings | By fund category, fund house and direct or regular plan. |
| What happened in this fund? | list_transactions | Rows by fund, type and dates. |
| What did it earn? | get_returns | XIRR per fund and overall, or why it can't be worked out. |
| What were the capital gains? | get_capital_gains | By financial year and lot, with flags such as a sale after a lien. |
| When do my units turn long term? | list_open_lots | Each unsold lot's date, and the ELSS lock-in end. |
| What goes in Schedule 112A? | get_schedule_112a | The rows for a year, in the e-filing portal's layout. |
| What dividends and TDS were there? | get_income | IDCW, TDS, STT and stamp duty by year. |
| Which shares and bonds are held? | list_securities | From an NSDL or CDSL statement. |
| How far can I trust this? | get_checks | What could not be read, on which page, and why. |
| What changed since last year? | compare_statements | Value then and now, and the money in and out between. |
| Does the AIS agree with the statement? | match_ais | Each sale matched, differing or missing. |
| Which statement do I need? | request_steps | The steps to request it yourself. Nothing is submitted. |
| Can I keep the full data? | save_export | JSON 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
It comes from an environment variable on your machine, so it never passes through the AI provider.
Names, PAN, folio numbers and addresses are removed from every tool's answer unless you turn them on.
No tool requests a statement, reads an inbox or asks for an OTP.
The full JSON or CSV goes to a new file on your disk. It never replaces a file.
Balances, units × NAV and totals are checked, as in the app and the SDK.
About the readerNo key, no sign-up and no statement credits. Needs Node 22.13 or later.
How it works
Paste your client's settings, or run the command.
In the server's env, such as CAS_PASSWORD. Never in the chat.
Point the assistant at the PDF's path. It calls the tools and answers from the results.
Set it up
Restart the client after a change. Each PDF with a different password gets its own variable.
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"
}
} } }
Add --scope user for every project.
claude mcp add sachfolio-cas -e CAS_PASSWORD="your PDF password" -- npx -y @sachfolio/cas-mcp
The Claude Desktop block, in ~/.cursor/mcp.json or a project's .cursor/mcp.json.
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
save_export format | File | Identifiers |
|---|---|---|
json | The full parsed statement | Yes |
json_redacted | The same, without names, PAN, folios or addresses | No |
casparser_json | casparser's JSON shape | Yes |
holdings_csv | One row per holding | Yes |
transactions_csv | One row per transaction | Yes |
gains_json | Capital gains, lot by lot | Yes |
returns_json | XIRR with every cash flow | Yes |
schedule_112a_csv | Schedule 112A in the portal's upload layout | No |
| Detail | Value |
|---|---|
| Package | @sachfolio/cas-mcp |
| Server name | sachfolio-cas |
| MCP versions | 2025-06-18, 2025-03-26, 2024-11-05 |
| Transport | stdio, on your computer |
| Writes files | Only save_export, to a new path |
| Needs | Node 22.13 or later |
What the model sees
Holdings, values, units and costs are sent to your assistant's provider. The PDF, its password and, by default, every identifier are not.
Plain limits
It reads and works out. It does not collect.
Free to run. For your own product, the SDK and API are in Business.