Use LoanCompass from your AI assistant or the terminal

You can run your ledger by asking. Tell your assistant “record a 200 payment from John on the car loan” or “any payments to confirm?” and it does it in your account, through a hosted connector you sign in to, or a local tool with a token you can revoke. The same operations exist as a terminal command for scripts.

What it is

LoanCompass exposes everything you can do on the loan pages as a set of tools an AI assistant can call: Claude, ChatGPT, Cursor, Codex, Windsurf, or any app that supports MCP. Add a person, record a loan or a repayment, move a loan to someone else, confirm a payment a borrower says they made, read what is due this month or when the money comes back. You describe the change in plain words; the assistant looks up the right person and loan, confirms anything destructive, and reports the new balance.

MCP is an open standard that lets assistants call tools. LoanCompass offers it two ways: a hosted connector you sign in to from the assistant (nothing to install), or a small local tool that runs on your machine with a personal access token. Either way the connection is yours alone, you can cut it off from Profile → Security at any time, and no AI service is involved on our side.

Option A: hosted connector (no install)

The easiest route, and the only one the web apps can use. Give the assistant this address, sign in to LoanCompass when it asks, and press Allow:

https://api.loancompass.app/mcp
  • Claude.ai: Settings → Connectors → Add custom connector, paste the address.
  • Claude Desktop and Cursor: add it as a remote (HTTP) MCP server in their connector or MCP settings.
  • ChatGPT: Settings → Connectors, paste the address. General-purpose tools like these need developer mode turned on.
  • Claude Code:
    claude mcp add --transport http loancompass https://api.loancompass.app/mcp

Each assistant you connect appears under Profile → Security → Connected apps, where one click disconnects it. No token to copy and nothing to install.

Option B, step 1: sign in once

The tool is the loancompass package on npm, so there is nothing to download by hand. It needs Node.js 20 or newer, which most assistants already require. Sign in, then check it:

npx loancompass login
npx loancompass whoami

Your browser opens on LoanCompass; press Authorize and the terminal picks it up. That creates a personal access token named after this computer and saves it to a config file in your home directory that only your user can read. npx loancompass logout forgets it; revoke it under Profile → Security → API tokens as well if the machine changes hands.

No browser on this machine?

Over SSH or in CI, create a token yourself under Profile → Security → API tokens (it starts with lcp_ and is shown once), then pass it in, or set LOANCOMPASS_TOKEN instead of storing it. Self-hosters add --api-url and --web-url.

npx loancompass login --token lcp_…

What a token can and cannot do

  • It can read and change your ledger: people, loans, repayments, charges, the inbox.
  • It cannot change your password, delete your account, or create, list or revoke tokens. Those need you signed in to the app.

Option B, step 2: connect your assistant

Register the server once in the assistant you use. Each block is the whole setup.

Claude Code

claude mcp add --scope user loancompass -- npx -y loancompass mcp

Claude Desktop, Cursor, Windsurf and most others

Add this to the app’s MCP settings (the JSON file or “Add server” form):

{
  "mcpServers": {
    "loancompass": { "command": "npx", "args": ["-y", "loancompass", "mcp"] }
  }
}

Codex CLI

codex mcp add loancompass -- npx -y loancompass mcp

ChatGPT and Claude.ai on the web

The web apps cannot run a local tool. Use the hosted connector in Option A instead.

Then just ask. The assistant resolves names to the right person and loan, asks when a name matches more than one, and always checks with you before deleting anything, moving a loan, or accepting a payment claim, because accepting records a real repayment.

Things you can ask

Recording

  • “Record a 200 payment from John on the car loan.”
  • “John paid 150 last Friday, note it as cash.”
  • “Add a 50 late fee to Maria’s laptop loan.”

People and loans

  • “Add Maria Cruz, maria@example.com.”
  • “Lend Maria 1,200 from today, 12 months diminishing balance at 1.5%.”
  • “Move the laptop loan to Maria.” · “Delete that duplicate repayment.”

Inbox

  • “Any payments to confirm?” Then accept or reject each claim.
  • “Who has asked me for a loan?” Approve to create the loan, or reject.

Insight

  • “Who still owes me this month?” · “What’s overdue?”
  • “When do I get my money back?” · “How is lending going this year?”

The other side

  • “What do I owe?” · “Tell Maria I paid 300 today.”
  • “Track the loan I owe Maria in my own book.” The assistant copies its terms and what you have repaid so far into your ledger as a loan from you.

CLI cheat sheet

Every tool your assistant uses is also a command. Ids come from the list commands; names can be searched instead of typed exactly. Install it globally with npm i -g loancompass to drop the npx.

npx loancompass whoami
npx loancompass borrowers list --search maria
npx loancompass loans list --search car
npx loancompass repayments add <loanId> --amount 200
npx loancompass loans update <loanId> --borrower <personId>   # move a loan
npx loancompass proposals list
npx loancompass proposals accept <loanId> <proposalId>
npx loancompass requests list
npx loancompass requests approve <requestId>
npx loancompass this-month
npx loancompass forecast --months 6
npx loancompass borrowed list                                  # what you owe

# Add --json to any command for machine-readable output.
# Deletes refuse to run without --yes.

Safety

A token is a key to your ledger. If one leaks, revoke it from Profile → Security and create a new one; tokens are stored hashed on the server, so a copy of the database does not reveal them. The hosted connector issues its own short-lived tokens after you press Allow, and disconnecting the app under Connected apps voids them at once. The local tool runs on your machine and talks only to LoanCompass, with no third party in between. Assistants ask your permission before each tool they have not been allowed yet, and the tools that delete or move money are marked so they ask even when the rest has been allowed.

Keep reading

Stop recalculating this by hand

LoanCompass keeps the schedule, the repayments and the running balance for every loan you have made, so the figures on this page stay current without you rebuilding them. It is free while in early access, and no money moves through it.