MCP Legal Doc Analyzer
Extract clauses, flag risks and diff contract versions locally
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 1.0.1
- Listing updated
- 3 days ago
Similar MCP servers
About MCP Legal Doc Analyzer
MCP Legal Doc Analyzer is an MCP server for legal and government. It runs locally on your machine and is started by your AI client.
Aimed at lawyers and operations teams who review agreements, this server parses PDF, DOCX and plain-text contracts and labels clause boundaries such as termination, liability, IP and governing law, with confidence scores. Risk checks run against YAML rule templates and return severity-ranked findings, and a separate tool compares two versions of a document clause by clause rather than line by line.
Nine compliance templates ship in the box, covering NDAs, employment, SaaS customer, software licence, vendor, consulting, data processing, IP assignment and loan agreements, and custom templates and clause patterns can be loaded from your own YAML. Analysis is local; history is kept in a SQLite file that can be disabled with --no-history, and OCR for scanned PDFs is an opt-in flag with extra dependencies.
The README says outright that it is an analysis aid, not legal advice, and that pattern-matching extraction can miss or misread non-standard documents. Low-confidence results are flagged. It needs Node 20.19 or newer.
Install
Run in a terminal
claude mcp add mcp-legal-doc-analyzer --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y mcp-legal-doc-analyzerAdd to claude_desktop_config.json
{
"mcpServers": {
"mcp-legal-doc-analyzer": {
"command": "npx",
"args": [
"-y",
"mcp-legal-doc-analyzer"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-legal-doc-analyzer": {
"command": "npx",
"args": [
"-y",
"mcp-legal-doc-analyzer"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"mcp-legal-doc-analyzer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-legal-doc-analyzer"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-legal-doc-analyzer": {
"command": "npx",
"args": [
"-y",
"mcp-legal-doc-analyzer"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-legal-doc-analyzer": {
"command": "npx",
"args": [
"-y",
"mcp-legal-doc-analyzer"
],
"env": {
"YOUR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
YOUR_API_KEYYour API key for the serviceRequired
Tools this server provides (9)
Taken from the project documentation; the running server may differ.
- extract_clauses
- Identify and label clauses with confidence scores
- flag_risks
- Severity-ranked risk findings against a template
- check_compliance
- Pass/fail checklist validation
- summarize_terms
- Plain-English summary of key provisions
- compare_versions
- Clause-level diff of two versions
- list_templates
- List compliance templates
- export_analysis_report
- HTML report with clause table and risks
- export_audit_log
- Export the audit log as JSON or CSV
- bulk_analyze
- Analyse many contracts in batch
What it does
- Clause extraction
- Labels clauses in PDF, DOCX and text with confidence scores.
- Risk flagging
- Ranks findings by severity against YAML rules.
- Compliance checklists
- Pass/fail checks per requirement for common agreement types.
- Version diffing
- Compares two document versions at clause level.
- Bulk analysis
- Processes a batch of contracts with progress updates.
- Custom templates
- Load your own rule templates and clause patterns.
- Reports and audit
- HTML report and JSON or CSV audit log export.
Good for
- Triage an NDA for risky provisions
- Compare a redlined contract with the previous draft
- Check a data processing agreement against a checklist
- Review a portfolio of vendor contracts in bulk
MCP Legal Doc Analyzer FAQ
Is this legal advice?
No. The README calls it an analysis aid and says to have a qualified professional review outputs.
Do documents leave my machine?
The README says processing is local and documents are not transmitted.
Can it read scanned PDFs?
Optionally, with --ocr and extra peer dependencies.
Which templates are bundled?
Nine, including NDA, employment, SaaS, vendor and loan agreements.
How do I add MCP Legal Doc Analyzer to Claude Code?
Run this command in your terminal: claude mcp add mcp-legal-doc-analyzer --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y mcp-legal-doc-analyzer
What are the best alternatives to MCP Legal Doc Analyzer?
The closest alternatives to MCP Legal Doc Analyzer are Doc Extract MCP, Adeu, Bitsbound Contract Automation, Safe Docx and Contracko.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.