npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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.

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