Skip to main content
Glama
bharatlt727

Legal AI MCP Server

by bharatlt727
README.md
# Legal AI MCP Server

An MCP (Model Context Protocol) server for legal AI workflows, powered by OpenRouter.

## Tools Available

| Tool | Description |
|------|-------------|
| `review_contract` | Review contracts for risks, missing clauses, and recommendations |
| `draft_contract` | Draft NDAs, service agreements, employment contracts, etc. |
| `legal_research` | Research legal topics, case law principles, and statutes |
| `summarize_document` | Summarize legal documents in brief, detailed, or executive format |
| `compliance_check` | Check content against GDPR, HIPAA, CCPA, SOX, and more |

## Deploy to Render

1. Push this repo to GitHub
2. Create a new **Web Service** on Render
3. Set:
   - **Build Command:** `pip install -r requirements.txt`
   - **Start Command:** `uvicorn main:app --host 0.0.0.0 --port $PORT`
4. Add environment variable:
   - `OPENROUTER_API_KEY` = your OpenRouter API key

## MCP Endpoint

Once deployed: `https://your-service.onrender.com/mcp`

## Connect in n8n

In your MCP Tool node:
- **URL:** `https://your-service.onrender.com/mcp`
- **Method:** POST

## Disclaimer

This tool provides legal information only — not legal advice. Always consult a licensed attorney.