A Model Context Protocol (MCP) server for analyzing Master Service Agreements (MSAs) and vendor contracts locally. Built for legal teams who need to keep sensitive contract documents private while leveraging AI for contract review.
- Privacy: Contract documents never leave your machine
- Confidentiality: No risk of sensitive terms being stored by third parties
- Compliance: Meet data handling requirements for regulated industries
List all contract documents in the configured folder. Returns file names, sizes, and modification dates.
Read and extract text content from a contract document (PDF, TXT, or MD files).
Search for specific terms or phrases across all documents in the folder.
Comprehensive analysis of an entire MSA across all major clause categories.
Deep-dive analysis of a specific clause type (indemnification, limitation of liability, etc.)
Compare contract provisions against market standard terms.
Generate specific redline suggestions to improve terms.
Extract and summarize key commercial and legal terms.
Generate a risk assessment scorecard for the contract.
Check if the MSA meets regulatory requirements (GDPR, HIPAA, SOC2, PCI-DSS, CCPA, ISO27001, FEDRAMP).
Generate negotiation strategy and talking points.
- Indemnification
- Limitation of Liability
- Data Protection & Privacy
- Intellectual Property
- Termination
- Service Levels & Performance
- Payment Terms
- Insurance Requirements
- Governing Law & Dispute Resolution
- Confidentiality
cd msa-analyzer
npm installSet the MSA_DOCS_PATH environment variable to point to your contracts folder:
export MSA_DOCS_PATH="/path/to/your/contracts/folder"Supported file types:
.pdf- PDF documents (text is extracted automatically).txt- Plain text files.md- Markdown files
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"msa-analyzer": {
"command": "npx",
"args": ["tsx", "/path/to/msa-analyzer/src/index.ts"],
"env": {
"MSA_DOCS_PATH": "/path/to/your/contracts/folder"
}
}
}
}# Set your documents path
export MSA_DOCS_PATH="/path/to/contracts"
# Run in development mode
npm run devOnce connected, you can ask Claude to:
- "List all the contracts in my documents folder"
- "Read the Acme vendor agreement PDF"
- "Search for 'indemnification' across all my contracts"
- "Analyze the Acme MSA and identify the top risks"
- "Review the indemnification clause and suggest redlines"
- "Check if this contract is GDPR compliant"
- "Compare the liability cap to market standards"
- "Generate a negotiation playbook for the termination clause"
MIT