Lavern
An agentic law firm. Yours. 67 specialist AI agents that review documents through evidence-backed debate, with mandatory human gates and a 10-pass verification loop. Apache 2.0.
What is Lavern?
Lavern is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to agentic law firm. yours. 67 specialist ai agents that review documents through evidence-backed debate, with mandatory human gates and a 10-pass verification loop. apache 2.0.
An agentic law firm. Yours. 67 specialist AI agents that review documents through evidence-backed debate, with mandatory human gates and a 10-pass verification loop. Apache 2.0.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An agentic law firm. Yours. 67 specialist AI agents that rev
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx lavernConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Lavern
Lavern is an agentic law firm platform that coordinates 67 specialist AI agents to review legal documents through structured, evidence-backed debate with mandatory human approval gates and a 10-pass verification loop. It supports Anthropic Claude, Mistral AI, and local Ollama models as inference backends, making it usable in air-gapped or EU-only data environments. Legal teams and developers use Lavern to automate contract review, due diligence, and compliance checks while maintaining a clear human-in-the-loop audit trail for every decision.
Prerequisites
- Node.js 18+ and npm installed
- An ANTHROPIC_API_KEY (for Claude backend) or MISTRAL_API_KEY (for Mistral backend), or a local Ollama installation
- Git to clone the repository
- Optional: Docker for containerized deployment
Install Lavern via the quick installer
On macOS or Linux, the installer script handles cloning, dependency installation, and environment setup in one step.
curl -fsSL lavern.ai/install.sh | shClone and install manually (alternative)
For full control over the installation, clone the repository and install dependencies for both the API server and the visualization dashboard.
git clone https://github.com/AnttiHero/lavern.git
cd lavern
npm install
(cd viz && npm install)Configure environment variables
Create a .env file in the repository root. Set your chosen LLM provider and API key. LAVERN_PROVIDER can be 'anthropic', 'mistral', or 'ollama'. SHEM_DEFAULT_BUDGET limits per-session spend in USD.
ANTHROPIC_API_KEY=sk-ant-xxx
LAVERN_PROVIDER=anthropic
LAVERN_AUTH_ENABLED=false
SHEM_PORT=3000
SHEM_DEFAULT_BUDGET=5.0Start the API server and dashboard
Run the API server on port 3000 and the Vite dashboard on port 5173 in separate terminals. The dashboard provides real-time visualization of agent debates and human approval gates.
# Terminal 1
npm run serve:dev
# Terminal 2
cd viz && npm run devRun autonomous Clawern daemon mode
For unattended monitoring and document review, use the Clawern daemon. It polls for new documents, runs the 10-pass verification loop, and pauses at human gates every 30 minutes.
npm run dev -- claw init
npm run dev -- claw startRun in EU-only mode with Mistral
For GDPR-compliant processing where data must not leave the EU, switch the provider to Mistral and enable the ethical flag. All inference stays within EU data centers.
LAVERN_PROVIDER=mistral MISTRAL_API_KEY=your-key npm run dev -- claw start --ethicalLavern Examples
Client configuration
Lavern runs as a local server rather than a typical MCP server. Connect your MCP client to it via its HTTP API or use the bundled MCP tools exposed through port 3000.
{
"mcpServers": {
"lavern": {
"command": "npx",
"args": ["lavern"],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-xxx",
"LAVERN_PROVIDER": "anthropic",
"SHEM_PORT": "3000",
"SHEM_DEFAULT_BUDGET": "5.0"
}
}
}
}Prompts to try
These prompts demonstrate Lavern's legal document analysis and multi-agent validation capabilities.
- "Review this NDA and flag any clauses that deviate from our standard template"
- "Analyze this SaaS subscription agreement for liability caps, data processing terms, and termination rights"
- "Run a 10-pass verification on this employment contract and summarize disagreements between reviewer agents"
- "Check this vendor contract for GDPR compliance and list all data transfer provisions"
- "Compare these two merger agreements and highlight the key differences in indemnification clauses"Troubleshooting Lavern
API server fails to start with 'Cannot find module' errors
Run 'npm install' again in both the root directory and the viz/ subdirectory. If errors persist, delete node_modules and package-lock.json in both directories and reinstall.
Agents produce responses but human approval gates are skipped
LAVERN_AUTH_ENABLED defaults to false which disables billing and auth but keeps human gates active. If gates are missing, check that you are accessing the dashboard at http://localhost:5173 and not sending requests directly to the API endpoint.
MISTRAL_API_KEY is set but Lavern still uses Anthropic
Explicitly set LAVERN_PROVIDER=mistral in your .env file. The provider env var takes precedence over which API keys are present.
Frequently Asked Questions about Lavern
What is Lavern?
Lavern is a Model Context Protocol (MCP) server that agentic law firm. yours. 67 specialist ai agents that review documents through evidence-backed debate, with mandatory human gates and a 10-pass verification loop. apache 2.0. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Lavern?
Follow the installation instructions on the Lavern GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Lavern?
Lavern works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Lavern free to use?
Yes, Lavern is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
Lavern Alternatives — Similar Business Applications Servers
Looking for alternatives to Lavern? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Lavern in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Lavern?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.