Skip to content

AI integration setup

Paisa ships a standalone MCP server (@paisa/mcp) that connects any MCP-compatible AI assistant to your financial data over HTTP. No database connection required — it calls the Paisa API using a Bearer token you generate.

The Model Context Protocol is an open standard for connecting AI assistants to external tools and data. It’s supported by Claude, Cursor, Windsurf, and other AI clients.

Once connected, your AI assistant gets 63 tools to read and write your Paisa data — transactions, budgets, goals, investments, and more.

  • Node.js 20+ or Bun
  • A Paisa account with an API token (Settings → Integrations → API Tokens)
  • An MCP-compatible AI client
Terminal window
npm install -g @paisa/mcp
# or
bun add -g @paisa/mcp

Or use it directly from the monorepo:

Terminal window
node /path/to/paisa/packages/mcp/dist/index.js
Terminal window
claude mcp add paisa -- node $(which paisa-mcp)

Then add your credentials to ~/.claude.json:

{
"mcpServers": {
"paisa": {
"type": "stdio",
"command": "node",
"args": ["/path/to/paisa-mcp/dist/index.js"],
"env": {
"PAISA_API_URL": "https://your-paisa-api.workers.dev",
"PAISA_API_TOKEN": "psa_your_token_here"
}
}
}
}
VariableRequiredDescription
PAISA_API_URLBase URL of your Paisa API
PAISA_API_TOKENAPI token from Settings → Integrations
PAISA_PINOptional6-digit PIN for private/encrypted mode
PAISA_USER_IDRequired if PIN setYour user ID (Settings → Profile)

If you use PIN encryption, add your PIN and user ID:

"env": {
"PAISA_API_URL": "...",
"PAISA_API_TOKEN": "...",
"PAISA_PIN": "123456",
"PAISA_USER_ID": "your-user-id-from-profile"
}

Restart your AI client and look for the Paisa tools listed. Try asking:

“Show me my dashboard” or “How much did I spend last month?”