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 python
pip install -e .Or with uv:
cd python
uv pip install -e .Set 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": "python",
"args": ["-m", "msa_analyzer"],
"env": {
"MSA_DOCS_PATH": "/path/to/your/contracts/folder"
}
}
}
}Or if installed as a package:
{
"mcpServers": {
"msa-analyzer": {
"command": "msa-analyzer",
"env": {
"MSA_DOCS_PATH": "/path/to/your/contracts/folder"
}
}
}
}# Create virtual environment
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install in development mode
pip install -e .
# Run the server
MSA_DOCS_PATH="/path/to/contracts" python -m msa_analyzerOnce 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