dbsectrainer avatar

Mcp Legal Doc Analyzer

dbsectrainer/mcp-legal-doc-analyzer

This server brings legal document analysis directly into Claude through nine tools that extract clauses, flag risks, and run compliance checks against nine bundled templates (NDAs, employment agreements, SaaS terms, and more). Everything runs locally on your machine with no external calls. Point it at a PDF or DOCX contract and you'll get structured clause boundaries with confidence scores, severity-ranked risk findings against YAML rule sets, and pass/fail compliance reports. The compare_versions tool diffs at the clause level, not raw lines. You can load custom templates from a directory, tune the confidence threshold, export HTML reports, or batch-process a folder of contracts. Useful when you need repeatable contract review workflows without uploading sensitive documents to third-party services.

GitHub stars
1
tools
9
auth
Secret needed
transport
STDIO
env var
1
last updated
Nov 4, 2026

Tools

9 tools

Public tool metadata for what this MCP can expose to an agent.

extract_clausesidentify and label clause boundaries with confidence scores; supports .pdf, .docx, .txt

identify and label clause boundaries with confidence scores; supports .pdf, .docx, .txt

No parameter schema in public metadata yet.

flag_risksseverity-ranked risk findings against a compliance template

severity-ranked risk findings against a compliance template

No parameter schema in public metadata yet.

check_compliancestructured pass/fail checklist validation per rule

structured pass/fail checklist validation per rule

No parameter schema in public metadata yet.

summarize_termsplain-English bullet-point summary of key provisions

plain-English bullet-point summary of key provisions

No parameter schema in public metadata yet.

compare_versionsclause-level diff between two document versions

clause-level diff between two document versions

No parameter schema in public metadata yet.

list_templatesenumerate all available compliance templates

enumerate all available compliance templates

No parameter schema in public metadata yet.

export_analysis_reportself-contained HTML report with clause table and risk findings; suitable for printing

self-contained HTML report with clause table and risk findings; suitable for printing

No parameter schema in public metadata yet.

export_audit_logexport the analysis audit log in JSON or CSV format with optional date-range filtering

export the analysis audit log in JSON or CSV format with optional date-range filtering

No parameter schema in public metadata yet.

bulk_analyzeprocess a portfolio of contract files in batch with progress notifications

process a portfolio of contract files in batch with progress notifications

No parameter schema in public metadata yet.

Sponsors

Configuration

YOUR_API_KEY*secret

Your API key for the service

Readme

MCP Legal Document Analyzer

npm mcp-legal-doc-analyzer package

Domain-specific MCP tooling for legal document workflows. Extract key clauses from contracts, flag risky provisions against configurable rule templates, compare document versions at the clause level, and check compliance against standard checklists — all locally, without documents leaving your machine.

Tool reference | Configuration | Contributing | Troubleshooting

Key features


View the full README on GitHub

Details

Repository
github.com/dbsectrainer/mcp-legal-doc-analyzer
Category
Documents & Knowledge
Package
mcp-legal-doc-analyzer
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from dbsectrainer

Related Documents & Knowledge MCP servers

View all
1duhokim avatarNebulamindduhokim/nebulamindAI astronomy wiki with open agent peer-review. Vote on evidence, propose edits, earn reputation.1stars
2tencent-lexiang avatarTencent Lexiang MCP Servertencent-lexiang/lexiang-mcp-serverTencent Lexiang AI knowledge base MCP server for searching, managing entries, and editing docs.1stars
3xiaojiou176-open avatarProvenote MCPxiaojiou176-open/provenoteFirst-party Provenote MCP server for drafts, research threads, auditable runs, and knowledge search.1stars
4joesaby avatarDoctree Mcpjoesaby/doctree-mcpBM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.1stars
5joshua-auchincloss avatarFactsets MCP Serverjoshua-auchincloss/factsetsAn MCP server that provides a local, persistent, self-maintaining knowledge base for AI agents1stars
6makeamouse avatarfish-bridge — Session Knowledge Graphmakeamouse/fish-bridge-mcpCompresses AI chat sessions into a typed knowledge graph. Local/offline via Ollama.1stars