# Connect LeanLaw to Your AI Agent (Universal MCP)

> Use your AI to send invoices, track billing, and manage accounting in LeanLaw — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http leanlaw https://api.universalmcp.app/mcp/leanlaw`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/leanlaw` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "leanlaw", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: LeanLaw | Category: ERP & Accounting (LeanLaw) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Trust and ledger data, Time and matter records, Invoices in QuickBooks; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=leanlaw | Guide: https://universalmcp.app/mcp/leanlaw
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (11 actions: 4 Read, 7 Write)
Perform over 10 actions across invoices, e-payments, time capture, reporting, accounting, and trust accounting. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Invoices (3):** Create Draft Invoice (write), Approve Invoice (write), Submit LEDES Invoice (write)
- **E-Payments (2):** Collect Online Payments (write), Send Retainer Replenishment Link (write)
- **Time Capture (2):** Record Billable Time (write), Track Billable Activity (read)
- **Reporting (2):** Get AR Aging Report (read), Get Realization Rate (read)
- **Accounting (1):** Sync Invoices To QuickBooks (write)
- **Trust Accounting (1):** Get Client Ledger (read)

## Example Prompts for LeanLaw
- **Aging receivables:** "Show LeanLaw receivables aged over 60 days by client matter, with the responsible attorney for each."
- **Trust ledger review:** "List LeanLaw trust ledger entries from the last 30 days that lack a matching bank transaction."
- **Billable hours summary:** "Summarise LeanLaw billable hours by timekeeper for this month against each matter's budget."
- **Draft invoice:** "Draft a LeanLaw invoice for matter HR-2041 from the unbilled time entries and wait for my approval before sending."
