mcp-legal-doc-analyzer

v1.0.1
io.github.dbsectrainer/mcp-legal-doc-analyzer Checked 1 day ago Published 28 days ago

Domain-specific MCP tooling for legal document workflows

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

extract_clauses

Extract and label key clauses from a contract document (PDF, DOCX, or TXT). Returns a structured list of clause types (e.g. termination, liability, confidentiality, governing_law, payment_terms, intellectual_property, dispute_resolution, warranty) with confidence scores. Low-confidence results are flagged for human review.

ParameterTypeDescription
file_path *stringAbsolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt

flag_risks

Analyze a contract against a compliance template and return a severity-ranked list of risk findings. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement. If no template is specified, the NDA template is used.

ParameterTypeDescription
file_path *stringAbsolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt
templatestringName of the compliance template to use. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement. Use list_templates to see all…

summarize_terms

Generate a plain-English, bullet-point summary of the key provisions in a contract document. Covers clause types including termination, liability, confidentiality, governing_law, payment_terms, intellectual_property, dispute_resolution, and warranty.

ParameterTypeDescription
file_path *stringAbsolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt

list_templates

List all available compliance templates that can be used with flag_risks, check_compliance, and export_analysis_report. Bundled templates include: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.

check_compliance

Run a structured checklist validation of a contract against a compliance template. For each rule, returns pass/fail/not_applicable with a finding description. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.

ParameterTypeDescription
file_path *stringAbsolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt
templatestringName of the compliance template to use. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.

compare_versions

Compare two versions of a contract document at the clause level. Shows clauses that were added, removed, changed, or unchanged between version A and version B. Supports .pdf, .docx, and .txt files.

ParameterTypeDescription
file_path_a *stringAbsolute path (or ~/... path) to version A of the contract. Supported formats: .pdf, .docx, .txt
file_path_b *stringAbsolute path (or ~/... path) to version B of the contract. Supported formats: .pdf, .docx, .txt

export_analysis_report

Generate a single-file HTML analysis report for a contract. Includes document metadata, extracted clauses with confidence scores, and an optional risk findings table when a template is provided. The HTML is self-contained with inline CSS and is suitable for printing. Available templates: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreement.

ParameterTypeDescription
file_path *stringAbsolute path (or ~/... path) to the contract file. Supported formats: .pdf, .docx, .txt
templatestringOptional compliance template name to include risk findings in the report. Examples: NDA, Employment Agreement, SaaS Customer Agreement, Software License Agreement, Vendor Agreement, Consulting Agreeme…

export_audit_log

Export the analysis audit log. Supports optional date-range filtering and JSON or CSV output format.

ParameterTypeDescription
formatstringOutput format: json (default) or csv
from_datestringISO 8601 start date (inclusive). E.g. 2024-01-01T00:00:00Z
to_datestringISO 8601 end date (inclusive). E.g. 2024-12-31T23:59:59Z

bulk_analyze

Analyze a portfolio of contract files in batch. Processes each file sequentially and returns per-file clause extraction results plus an aggregate summary.

ParameterTypeDescription
file_paths *arrayArray of absolute file paths to analyze.
template_name *stringCompliance template to apply. Examples: NDA, Employment Agreement, SaaS Customer Agreement.
output_formatstringOutput format: json (default) or csv