Lavern

v1.0.0Business Applicationsstable

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.

agentic-aiai-agentsanthropicclaudecontract-review
Share:
125
Stars
0
Downloads
0
Weekly
0/5

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

Contract and document review
Evidence-backed legal analysis
Multi-agent legal validation
AnttiHero

Maintainer

LicenseApache-2.0
Languagetypescript
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx lavern

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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 | sh
2

Clone 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)
3

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.0
4

Start 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 dev
5

Run 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 start
6

Run 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 --ethical

Lavern 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.1k

A 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.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform 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.8k

AI 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.

Quick Config Preview

{ "mcpServers": { "lavern": { "command": "npx", "args": ["-y", "lavern"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides