AI assistants

Use Lekha API from Claude and other AI assistants

Add Lekha API to your AI assistant and ask in plain words: "convert this statement to a CSV", "total my UPI spends for April", "list my biggest payments". The assistant reads the PDF from your computer, Lekha API turns it into balance-checked transactions, and the assistant answers from them.

1. Get an API key

Sign in with your email (new accounts get 50 free pages) and copy the key shown on your dashboard, or create one under API keys.

2. Add it to your app

Claude Desktop

No install or config files.

  1. Download lekha.mcpb and open it (double-click), or drag it onto Claude Desktop's Settings > Extensions page.
  2. Click Install and paste your API key when asked.
  3. Start a new chat and ask: "Convert the statement in my Downloads folder to a CSV."
Download for Claude Desktop

Claude Code, Cursor, VS Code and others

These run uvx lekha-mcp. Install uv once, then add the config for your app.

claude mcp add lekha --env LEKHA_KEY=your-key -- uvx lekha-mcp

"Cursor & more" also fits Windsurf and Gemini CLI. Where it goes: Cursor ~/.cursor/mcp.json, Windsurf ~/.codeium/windsurf/mcp_config.json, Gemini CLI ~/.gemini/settings.json, VS Code .vscode/mcp.json, Codex ~/.codex/config.toml. Restart the app afterwards.

3. Ask away

One credit per PDF page, charged only when parsing works. Long statements are saved to a file next to the PDF, so a statement is never paid for twice.

Privacy

The PDF is read on your computer and sent only to Lekha API, which processes it in memory and stores nothing. The parsed transactions go back to your AI assistant, so they become part of that conversation under your AI provider's terms. Passwords you give the assistant are used once to open the file. See the privacy policy.

Developers: the server is the open lekha-mcp package, also listed in the MCP Registry. Building your own integration instead? See the API docs.