🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

legal-doc-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

legal-doc-analyzer

Legal vertical MCP server for document analysis - contract summarization, risk assessment, version comparison, compliance checking, and plain-English summaries.

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

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

PlanPriceIncludes
Basic$20/moanalyze_contract, find_risks, generate_summaryBuy →
Pro$35/moAll 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

ToolDescription
analyze_contractIdentifies parties, contract type, dates, obligations, liability, termination, governing law
find_risksFlags one-sided clauses, unlimited liability, auto-renewal traps, non-competes, vague language, missing protections, IP concerns. Risk score 0-100
compare_versionsCompares two document versions with side-by-side diff, material change highlighting, and risk impact flags
generate_summaryPlain-English summary, key terms table, action items timeline, one-page executive brief
check_complianceChecks 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-analyzer

Or install globally:

npm install -g legal-doc-analyzer

Usage

Stdio (default)

npx -y legal-doc-analyzer

SSE / HTTP (Streamable HTTP)

npx -y legal-doc-analyzer --sse
# or
PORT=4000 npx -y legal-doc-analyzer --sse

Claude 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

Keywords

mcp

FAQs

Package last updated on 04 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts