Domain-specific MCP tooling for legal document workflows
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Legal Doc Analyzer.
extract_clausesidentify and label clause boundaries with confidence scores; supports .pdf, .docx, .txt
flag_risksseverity-ranked risk findings against a compliance template
check_compliancestructured pass/fail checklist validation per rule
summarize_termsplain-English bullet-point summary of key provisions
compare_versionsclause-level diff between two document versions
list_templatesenumerate all available compliance templates
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
mcp-legal-doc-analyzer is an analysis aid, not legal advice. Outputs should be reviewed by a qualified legal professional before making decisions. Clause extraction uses pattern matching and heuristics; results may be incomplete or incorrect for non-standard document formats. Low-confidence extractions are flagged explicitly.
Document contents are processed locally and stored in a local SQLite database. Do not share database exports containing confidential documents.
Add the following config to your MCP client:
To load custom compliance templates from a directory:
Amp · Claude Code · Cline · Cursor · VS Code · Windsurf · Zed
Provide a PDF or DOCX contract file, then enter:
Your client should return a list of extracted clauses and a risk report ranked by severity.
extract_clauses — identify and label clause boundaries with confidence scores; supports .pdf, .docx, .txtflag_risks — severity-ranked risk findings against a compliance templatecheck_compliance — structured pass/fail checklist validation per rulesummarize_terms — plain-English bullet-point summary of key provisionscompare_versions — clause-level diff between two document versionslist_templates — enumerate all available compliance templatesexport_analysis_report — self-contained HTML report with clause table and risk findings; suitable for printingexport_audit_log — export the analysis audit log in JSON or CSV format with optional date-range filteringbulk_analyze — process a portfolio of contract files in batch with progress notificationsNine compliance templates are included out of the box:
Use list_templates to enumerate all available templates at runtime, including any custom templates loaded via --templates.
--templates / --templates-dirDirectory to load custom YAML compliance rule templates from. Templates in this directory are merged with the built-in set.
Type: string
--db / --db-pathPath to the SQLite database file used to store document analysis history.
Type: string
Default: ~/.mcp/legal.db
--confidence-thresholdMinimum confidence score (0–1) for extracted clauses to be included in results. Extractions below this threshold are flagged as low-confidence.
Type: number
Default: 0.6
--no-historyDisable storing document analysis results in the local database.
Type: boolean
Default: false
--clause-patternsPath to a YAML file defining custom clause detection patterns. See custom-clause-patterns.example.yaml in the source tree for the schema.
Type: string
--bulk-concurrencyNumber of files to process in parallel when using bulk_analyze.
Type: number
Default: 4
--ocrEnable OCR fallback for scanned PDFs that contain no extractable text layer. Requires the optional peer dependencies tesseract.js, pdfjs-dist, and canvas.
Type: boolean
Default: false
--http-portStart the server in Streamable HTTP mode on the given port instead of stdio. When set, the server accepts HTTP connections suitable for shared team deployments.
Type: number
Pass flags via the args property in your JSON config:
Before publishing a new version, verify the server with MCP Inspector to confirm all tools are exposed correctly and the protocol handshake succeeds.
Run
npm run buildfirst so the packaged templates indist/templatesare present during verification.
Interactive UI (opens browser):
CLI mode (scripted / CI-friendly):
Run before publishing to catch regressions in tool registration and runtime startup.
Compliance rule templates live in src/templates/ as YAML files and can be contributed without touching code. Clause extraction tests must use synthetic or anonymized documents only — never include real contracts in the repository. Never log document content.
This plugin is available on:
Search for mcp-legal-doc-analyzer.
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-legal-doc-analyzer)<a href="https://allmcps.com/mcp/mcp-legal-doc-analyzer"><img src="https://allmcps.com/api/badge/mcp-legal-doc-analyzer?style=directory" alt="MCP Legal Doc Analyzer on AllMCPs" /></a>