Connect an AI assistant
Lejr speaks the Model Context Protocol (MCP). Point a compatible AI assistant at your books and it can record transactions, reconcile, and pull reports — with your permission, on your terms.
The server URL
Add Lejr to your assistant as a custom MCP connector using:
https://lejr.app/api/mcp
The first time you connect, your assistant walks you through a standard OAuth sign-in to Lejr. You approve access in your browser; the assistant never sees your password. Authorization is scoped to your account and the organizations you choose.
Supported clients
Any MCP client that supports remote servers with OAuth works. That includes:
- Claude (Desktop and Code) — add Lejr as a custom connector with the URL above. This is the path we test most heavily.
- Other MCP-compatible assistants — anything that can connect to a remote MCP server over streamable HTTP and complete an OAuth flow. The transport is assistant-agnostic; the same URL and sign-in apply.
We're expanding documented, screenshotted setups for additional clients. If your assistant speaks MCP, it can already connect today.
What the assistant can do
Once connected, the assistant acts as your accountant: creating customers and invoices, posting balanced journal entries, categorizing bank activity, recording payments, and running reports (P&L, balance sheet, trial balance). Every write is double-entry and immutable — mistakes are fixed with correcting entries, never silent edits, so your audit trail stays intact.
Permissions & safety
- You authorize every connection. Access uses a scoped bearer token issued through OAuth — not your login.
- Multi-organization guardrails. If your token can reach more than one organization, the assistant must confirm which one before touching data — it will not guess.
- Role-aware. A viewer-scoped user gets read-only access; write tools refuse with a clear message.
- Revoke anytime. Manage and revoke connected assistants under Settings → Integrations. Revocation is immediate.
- Every action is logged. Tool calls are recorded per organization (Settings → Activity) so you can see exactly what ran and when.
Token management
Issued tokens, their scope, last-used time, and call counts live in Settings → AI Connections. You can bind a token to a single organization, allow it across several, or revoke it outright.
Questions
Building against Lejr or hit a snag connecting? support@lejr.app.