# Connect CosmoLex to Your AI Agent (Universal MCP)

> Use your AI to manage accounting, track billing, and review contracts in CosmoLex — and much more.

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

## Key Facts
- Software: CosmoLex | Category: ERP & Accounting (CARET (CosmoLex)) | Auth: Guided workspace authorization
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Trust ledger data, Billing and time entries, Client documents; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/cosmolex | Guide: https://universalmcp.app/mcp/cosmolex
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 6 Read, 9 Write)
Perform over 10 actions across billing & reporting, matters & documents, client relations, and trust accounting. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Billing & Reporting (4):** Log Billable Time (write), Generate Client Invoice (write), Review Unbilled Time (read), Pull Firm Revenue Report (read)
- **Matters & Documents (4):** Open New Client Matter (write), Search Matter Documents (read), Upload Client Document (write), Coordinate Casework Tasks (write)
- **Client Relations (4):** Review AI Intake Submissions (read), Track Lead Pipeline (read), Convert Lead To Client (write), Send Secure Client Message (write)
- **Trust Accounting (3):** Record Trust Deposit (write), Reconcile Trust Account (write), View Client Trust Balance (read)

## Example Prompts for CosmoLex
- **Trust reconciliation:** "Show every unmatched trust deposit and disbursement in CosmoLex for the current month with matter numbers."
- **Billable time review:** "List unbilled time entries by timekeeper in CosmoLex for open matters and total the billable hours."
- **Aging receivables:** "Summarize accounts receivable aging buckets in CosmoLex and identify matters over 60 days past due."
- **Draft client invoice:** "Draft a client invoice for Northwind Supply matter NS-2041 in CosmoLex and hold it for attorney approval before sending."
