legal-doc-analyzer
v1.1.4
Published
Legal vertical MCP server for document analysis - contract summarization, risk assessment, version comparison, compliance checking, and plain-English summaries.
Maintainers
Readme
Legal Doc Analyzer
MCP server for legal document analysis -- contract analysis, risk assessment, version comparison, compliance checking, and plain-English summaries.
Disclaimer: This tool provides automated analysis for informational purposes only. It does not constitute legal advice. Always consult a qualified attorney for legal matters.
Pricing
| Plan | Price | Includes |
|------|-------|----------|
| Basic | $20/mo | analyze_contract, find_risks, generate_summary — Buy → |
| Pro | $35/mo | All 5 tools including compare_versions and check_compliance (GDPR, CCPA, SOC2, HIPAA) — Buy → |
Free trial: 3 calls total (shared across all tools), no credit card. License keys are emailed instantly after checkout. More info: aivp-mcp.vercel.app
Tools
| Tool | Description |
|------|-------------|
| analyze_contract | Identifies parties, contract type, dates, obligations, liability, termination, governing law |
| find_risks | Flags one-sided clauses, unlimited liability, auto-renewal traps, non-competes, vague language, missing protections, IP concerns. Risk score 0-100 |
| compare_versions | Compares two document versions with side-by-side diff, material change highlighting, and risk impact flags |
| generate_summary | Plain-English summary, key terms table, action items timeline, one-page executive brief |
| check_compliance | Checks against GDPR, CCPA, SOC2, HIPAA with per-framework scores, missing provisions, and suggested language |
Installation
No install step needed — run straight from npm:
npx -y legal-doc-analyzerOr install globally:
npm install -g legal-doc-analyzerUsage
Stdio (default)
npx -y legal-doc-analyzerSSE / HTTP (Streamable HTTP)
npx -y legal-doc-analyzer --sse
# or
PORT=4000 npx -y legal-doc-analyzer --sseClaude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"legal-doc-analyzer": {
"command": "npx",
"args": ["-y", "legal-doc-analyzer"],
"env": { "LICENSE_KEY": "<your license key — omit for free trial>" }
}
}
}Tool Examples
analyze_contract
{
"document_text": "This Employment Agreement is entered into as of January 1, 2025, between Acme Corp (\"Company\") and Jane Doe (\"Employee\")...",
"document_type": "employment"
}Returns structured analysis with parties, dates (effective, termination, renewal), obligations per party, liability clauses and limits, termination conditions, and governing law/jurisdiction.
find_risks
{
"document_text": "The Contractor shall not compete with the Company for a period of 3 years worldwide... The Contractor shall indemnify and hold harmless the Company from any and all claims without limitation..."
}Returns risk score (0-100), risk level, flagged risks with severity (high/medium/low), excerpts, recommendations, and missing standard protections.
compare_versions
{
"old_version": "Original contract text...",
"new_version": "Revised contract text...",
"labels": { "old": "v1 Draft", "new": "v2 Revised" }
}Returns diff summary with added/removed/modified sections, significance ratings, risk impact assessment for each change, and counts of material and risk-increasing changes.
generate_summary
{
"document_text": "Full legal document text here..."
}Returns plain-English summary, key terms table (parties, dates, value, payment terms, governing law, liability cap, etc.), action items with deadlines, and a one-page executive brief.
check_compliance
{
"document_text": "Data processing agreement text...",
"frameworks": ["gdpr", "ccpa"]
}Returns compliance checklist with pass/fail/partial status, overall and per-framework scores, recommendations for each gap, and suggested contractual language to add.
Supported Document Types
- NDA -- Non-Disclosure Agreements
- Employment -- Employment agreements and offer letters
- SaaS -- Software-as-a-Service and subscription agreements
- Freelance -- Independent contractor and consulting agreements
- Lease -- Rental and tenancy agreements
- General -- Any other legal document
Compliance Frameworks
- GDPR -- EU General Data Protection Regulation (7 checks)
- CCPA -- California Consumer Privacy Act (5 checks)
- SOC2 -- SOC 2 Trust Service Criteria (7 checks)
- HIPAA -- Health Insurance Portability and Accountability Act (5 checks)
How It Works
All analysis is performed locally using pure text analysis and pattern matching against a curated database of legal clause patterns, risk indicators, and compliance requirements. No external APIs or LLMs are called -- this IS the tool the LLM uses.
Analysis Capabilities
- 18 clause patterns for risk detection (non-compete, indemnification, liability limits, IP assignment, confidentiality, auto-renewal, penalties, arbitration, data handling, force majeure, termination, warranty disclaimers, non-solicitation, governing law, vague language, one-sided amendments, one-sided termination, unlimited IP assignment)
- 7 missing safeguard checks (liability cap, indemnification cap, termination rights, confidentiality, dispute resolution, force majeure, data protection)
- 24 compliance requirements across 4 frameworks with suggested contractual language
- 10 key term extraction patterns (contract type, dates, value, payment, renewal, termination, governing law, liability cap, confidentiality period)
License
MIT
