LawryAI
A local-first MCP server that connects to legal case-management systems like ActaPort, letting AI agents read and prepare work for lawyer approval by replaying saved browser sessions.
README
LawryAI Desktop
LawryAI Dev Drop #1 — the first public building block of LawryAI.
Own nothing. Orchestrate everything.
Legal AI should not start with another shiny interface. It should start where law firms already work: inside their existing systems. LawryAI Desktop is a local-first host that logs into the software a firm already uses and re-exposes it to any Model Context Protocol client (Claude Desktop, Cline, …), so an AI agent can read and prepare work for a lawyer to approve.
The ERP stays the ERP. The case-management software stays the case-management software. The AI layer connects, understands, and assists.
This repo is the host. The systems it talks to are connectors, each in its own repo. The first one is a connector for ActaPort, a German legal case-management system. It is compiled into the binary — one download, no plugin installation.
How it works
You log in yourself, and the host reuses that session, locally, on your behalf — it only ever reaches what your own account already can:
- The desktop app opens the service's login page in a WebView. You log in once; the app captures the session cookies into a local SQLite database.
- The same binary, launched with
--stdio, runs headless as an MCP server. Your MCP client spawns it as a subprocess; it replays the saved cookies and returns results as MCP tool calls.
Everything stays on your machine. There is no cloud proxy — calls go directly from your desktop to the service. See ARCHITECTURE.md and SECURITY.md.
Host and connector
Authentication lives only in the host. A connector receives a read-only SessionProvider — it can
use a session the host captured, but has no way to log in, store a session, or open a WebView.
src-tauri/
├── src/ auth · session · mcp · headless · recipes (composition root)
└── crates/recipe-core/ the connector SDK: Recipe trait, MCP tool types, SessionProvider
recipe-core is deliberately free of tauri, reqwest, rusqlite and tokio.
Download
Grab the latest .dmg from Releases.
macOS only for now (universal — Apple Silicon and Intel). Windows builds compile but the login
flow has not been verified there yet, so they are not published. Linux is untested.
Two assets are attached to each release; the .dmg is the one you want (the .app.tar.gz is a
fallback).
Installing (both steps are required)
-
Open the
.dmgand drag LawryAI to your Applications folder. -
Clear the quarantine flag:
xattr -dr com.apple.quarantine /Applications/LawryAI.app
These builds are unsigned — there is no Apple Developer ID yet. Without step 2 macOS refuses to open the app, and on Apple Silicon it reports it as "damaged and can't be opened", which looks like a corrupt download but is not. On macOS 15 and later, right-click → Open no longer works around this.
Do not run the app from
~/Downloads. A quarantined app is launched through macOS App Translocation from a randomised read-only path, and the config panel copies whatever path the app is running from. You would paste a temporary path into your MCP client, it would work once, and then break. Moving to Applications and clearing quarantine both avoid this.Self-check: if the path shown in the app contains
/AppTranslocation/, you skipped a step.
Quick start
Prefer to build it yourself? Prerequisites: Node.js 18+, Rust, and the Tauri prerequisites for your OS.
npm install
npm run tauri dev # develop (Vite + Tauri, live reload)
npm run tauri build # release binary + bundle
Then:
- Open the app and click Login to ActaPort; log in.
- Copy the Connect your MCP client config it shows (it fills in the real binary path).
- Paste it into your MCP client and restart the client.
Claude Desktop config
{
"mcpServers": {
"lawryai": {
"command": "/absolute/path/to/LawryAI",
"args": ["--stdio"]
}
}
}
On macOS the path is inside the app bundle, e.g. /Applications/LawryAI.app/Contents/MacOS/LawryAI.
The app's setup panel prints the correct path for you. Add "--readonly" to args to disable all
write tools.
The server reports itself as LawryAI, so your client lists one connector. Tools are grouped by
prefix — ActaPort's are actaport_*; future connectors add sibling prefixes.
Keep the app installed: when the session expires, open it and log in again — the MCP server reuses that session.
Tools
101 tools across 14 ActaPort modules, all carrying MCP annotations
(readOnlyHint / destructiveHint); destructive ones begin their description with DANGEROUS:.
The app lists every tool in your MCP client once you have logged in.
Write, send and delete tools are exposed by default. Your MCP client's own tool-approval UI is the
gate for each call. To remove the risk entirely, run with --readonly (or set
LAWRYAI_READONLY=1): write tools are hidden from the tool list and rejected if called.
Build from source
The connector is a private git dependency: the published .dmg already bundles it, and building
the full app from source needs access to that repo. With access:
cargo build --manifest-path src-tauri/Cargo.toml
bash scripts/mcp_smoke.sh src-tauri/target/debug/lawryai-desktop
cargo test --manifest-path src-tauri/Cargo.toml
The smoke test drives a real MCP handshake against an empty session store and asserts the protocol, the tool listing, a graceful "not authenticated" tool result, and read-only mode — no credentials needed.
Tests are split across the two repos: 4 protocol tests here, 3 query/RSQL tests in the connector. A green build here does not cover the connector's units.
There is no per-push CI — the project builds only when a release tag is pushed, and that job runs clippy, the tests, and the smoke test against the bundled app before publishing a draft. So run the commands above locally before you tag; nothing else will catch a break first.
To develop against a local connector checkout, point the dependency at it temporarily:
# in src-tauri/Cargo.toml
recipe_actaport = { package = "recipe-actaport-mcp", path = "../../recipe-actaport-mcp" }
Status and roadmap
This is a first public artifact, not the finished product. See ROADMAP.md.
License
AGPL-3.0-or-later — see LICENSE.
If you run a modified version of this software as a network service, the AGPL requires you to make your changes available to its users.
Trademarks and use
LawryAI is not affiliated with, endorsed by, or sponsored by ActaPort or any other vendor it connects to. "ActaPort" is a trademark of its respective owner, used here only to describe interoperability. For help with LawryAI, use this repository's issues — do not contact ActaPort support.
LawryAI acts only within a session you establish yourself, with your own credentials and your own permissions; it circumvents no access control. You are responsible for ensuring your use complies with your agreements with each vendor. Where a vendor offers an official integration API (ActaPort offers a paid REST API add-on), that is the sanctioned path for automation.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.