Skip to content

argotdev/msa-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSA Analyzer MCP Server

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.

Why Local Analysis?

  • 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

Tools

Document Access

list_documents

List all contract documents in the configured folder. Returns file names, sizes, and modification dates.

read_document

Read and extract text content from a contract document (PDF, TXT, or MD files).

search_documents

Search for specific terms or phrases across all documents in the folder.

Analysis

analyze_msa

Comprehensive analysis of an entire MSA across all major clause categories.

analyze_clause

Deep-dive analysis of a specific clause type (indemnification, limitation of liability, etc.)

compare_to_market

Compare contract provisions against market standard terms.

suggest_redlines

Generate specific redline suggestions to improve terms.

extract_key_terms

Extract and summarize key commercial and legal terms.

assess_risk

Generate a risk assessment scorecard for the contract.

check_compliance

Check if the MSA meets regulatory requirements (GDPR, HIPAA, SOC2, PCI-DSS, CCPA, ISO27001, FEDRAMP).

negotiation_playbook

Generate negotiation strategy and talking points.

Clause Categories Analyzed

  • Indemnification
  • Limitation of Liability
  • Data Protection & Privacy
  • Intellectual Property
  • Termination
  • Service Levels & Performance
  • Payment Terms
  • Insurance Requirements
  • Governing Law & Dispute Resolution
  • Confidentiality

Installation

cd msa-analyzer
npm install

Configuration

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

Usage with Claude Desktop

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"
      }
    }
  }
}

Development

# Set your documents path
export MSA_DOCS_PATH="/path/to/contracts"

# Run in development mode
npm run dev

Example Usage

Once 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"

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published