LedgerSense
Forensic financial analysis for UK legal and accountancy practices, delivered as a Model Context Protocol server. Install into Claude, authorise with your firm's tenant, and reach twenty tools that turn bank statements and ledgers into court-ready working papers.
Install LedgerSense in Claude
- 01Add the connector
In Claude, open Settings → Connectors → Add custom connector and paste the MCP endpoint above. Claude auto-discovers the OAuth flow from the /v1/.well-known/oauth-authorization-server URL.
- 02Authorise with your firm
Claude redirects you to a branded consent page. First-time users register a new tenant by entering their firm name; returning users sign back into the existing tenant. Consent selects which of the six scopes to grant.
- 03Try it
Ask Claude something like "Open a new director's loan reconstruction matter for Acme Ltd, respondent Miss J. Smith". Claude will call create_matter, return the new matter ID, and LedgerSense will start writing to your tenant's Airtable base.
OAuth 2.1 + PKCE
LedgerSense uses OAuth 2.1 with PKCE (S256), dynamic client registration (RFC 7591), and RS256-signed JWT access tokens. Every token is bound to a specific tenant; there is no shared bearer token and no dev-token bypass in production.
https://mcp.ledgersense.smartscanitgroup.co.uk/v1/.well-known/oauth-authorization-server
https://mcp.ledgersense.smartscanitgroup.co.uk/v1/.well-known/jwks.json
POST /v1/oauth/register
GET /v1/oauth/authorize · POST /v1/oauth/token
Six scopes, all read/write split
| Scope | What it grants |
|---|---|
| ledgersense.matters.read | List matters and read matter state |
| ledgersense.matters.write | Create matters and edit matter metadata |
| ledgersense.documents.read | Read attached documents and parsed statements |
| ledgersense.documents.write | Attach and ingest new documents |
| ledgersense.analysis.run | Run analyses (DLA, solvency timeline) |
| ledgersense.schedules.produce | Produce Form E, SoA, schedule of loss, buy-side DD, court-ready PDFs |
Users see a per-scope consent checklist on first-run authorisation and can revoke access at any time via the SmartScanit tenant portal.
Twenty tools across five groups
Every tool declares title, readOnlyHint and destructiveHint annotations per the MCP specification. LedgerSense is append-only — no tool ever deletes existing state, and destructiveHint is false everywhere.
Matter management
Open a new forensic matter with reference, type, parties, and instructing party.
Read the current state of a matter, its pending jobs, and last activity.
List every document attached to a matter with kind, size, and audit-chain position.
Return the append-only audit chain for a matter — hashes, actors, timestamps.
Document ingest and parsing
Register a CSV upload against a matter and receive a document identifier.
Ingest a batch of financial documents (bank statements, ledgers, statutory accounts) and queue them for parsing.
Submit the parsed rows of a bank statement Cowork produced in-conversation.
Retrieve the parsed rows and metadata for a previously ingested statement.
Categorisation and reconciliation
Classify parsed transactions into income, expense, transfer, drawings and other categories using the LedgerSense taxonomy.
Persist categorised transactions for downstream schedule production.
Reconcile a ledger extract against parsed bank movements and flag exceptions.
Analysis and schedule production
Reconstruct a director's loan account from bank movements — day-by-day balance schedule, itemised drawings, repayments, flag set.
Build a dated indicator matrix and nominate a point of no return for wrongful-trading analysis under s.214 Insolvency Act 1986.
Assemble the HMCTS Form E Section 2 financial statement for matrimonial finance proceedings.
Draft the schedule of loss for either an Employment Tribunal claim or a personal injury claim (Ogden multipliers applied for future loss).
Build the asset and liability schedule feeding Form E, Statement of Affairs or buy-side DD.
Prepare a Statement of Affairs in the form prescribed by the Insolvency (England and Wales) Rules 2016, routed by insolvency process.
Produce a buy-side financial due diligence report — QoE, adjusted EBITDA bridge, normalised working capital, debt-like items.
Render the final PDF from any of the produced schedules with the SmartScanit / LedgerSense letterhead and audit-chain footer.
Persist a produced schedule against a matter and generate its audit-trail entry.
A director's loan reconstruction end to end
A typical LedgerSense engagement takes a bank statement in and produces a court-ready DLA schedule out. Six calls, five minutes of Claude conversation.
- create_matter — Acme Ltd, matter type director_loan_reconciliation, parties company + director.
- attach_csv_upload — register the CSV export of the company bank statement (or PDF viaingest_financial_documents).
- submit_parsed_statement — Claude parses the CSV rows in-conversation and pushes them to LedgerSense.
- categorise_transactions — LedgerSense classifies each row as drawing, repayment, salary, dividend, expense or other under the DLA taxonomy.
- analyse_director_loan — LedgerSense builds the day-by-day balance schedule, itemises drawings and repayments, and flags transactions worth a closer look.
- produce_court_ready_pdf — LedgerSense renders the branded PDF the practitioner reviews and signs.
Every step writes an entry to the matter's append-only audit chain, scoped to the tenant. The practitioner reviews the working papers and signs off before anything reaches a court or a client.
Per-tenant isolation, audit chain, no shared bearer
LedgerSense is multi-tenant by design. Airtable records, uploaded documents, KV state and every MCP call are partitioned by scalar tenant identifier. Tokens are RS256-signed JWTs bound to a specific tenant. A full architecture and controls summary is on the security page.
Getting help
SmartScanit Group Ltd · Company number 17311565 · Registered office 66 Paul Street, London EC2A 4NA · ICO registration ZC189364.