Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"legal-mcp": {
"env": {
"LEGAL_MCP_DEMO": "true"
},
"command": "C:/path/to/legal-mcp-env/Scripts/legal-mcp.exe"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The first comprehensive US legal MCP server for AI assistants.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'legal-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked legal-mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in legal
87 tools for Korean law — statutes, precedents, ordinances, interpretations | MCP Server · CLI · npm
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
956k Swiss court decisions: full-text search, citation graph, statute lookup (DE/FR/IT)
AFIP — Argentine tax authority, electronic invoicing (Factura Electrónica)
MCP Security Weekly
Get CVE alerts and security updates for Legal Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The first comprehensive US legal MCP server for AI assistants.
Connect Claude, GPT, Cursor, or any MCP-compatible AI to 4M+ US court opinions, Clio practice management, and PACER federal filings. Research in seconds, not hours.
You: Find Supreme Court cases about Fourth Amendment and cell phone location data
LegalMCP: Found 52 results. Top case:
Carpenter v. United States, 585 U.S. 296 (2018)
The Court held that accessing historical cell-site location
information constitutes a search under the Fourth Amendment,
requiring a warrant supported by probable cause.
→ 127 cases cite this opinion
→ Full text: courtlistener.com/opinion/4578834
| Traditional Research | AI + LegalMCP | |
|---|---|---|
| Find relevant cases | 45-90 min | < 30 sec |
| Trace citation history | Open Westlaw, click around | "Who cited this case?" |
| Pull client billing | Log into Clio, navigate menus | "Total hours on Henderson?" |
| Monthly cost | $200-400 (Westlaw/Lexis) | Free |
We recommend using a virtual environment to avoid conflicts with other packages:
# Create and activate a virtual environment
python -m venv legal-mcp-env
# Windows
legal-mcp-env\Scripts\activate
# Mac/Linux
source legal-mcp-env/bin/activate
# Install
pip install legal-mcp
Or install from GitHub:
pip install git+https://github.com/Mahender22/legal-mcp.git
Want to try it without API keys? Enable demo mode first (optional):
# Mac/Linux
export LEGAL_MCP_DEMO=true
# Windows
set LEGAL_MCP_DEMO=true
Then start the server:
legal-mcp
Add to your claude_desktop_config.json:
Windows (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"legal-mcp": {
"command": "C:/path/to/legal-mcp-env/Scripts/legal-mcp.exe",
"env": {
"LEGAL_MCP_DEMO": "true"
}
}
}
}
Mac/Linux (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"legal-mcp": {
"command": "/path/to/legal-mcp-env/bin/legal-mcp",
"env": {
"LEGAL_MCP_DEMO": "true"
}
}
}
}
Note: Use the full path to
legal-mcpinside your virtual environment. Remove theLEGAL_MCP_DEMOline and add your API keys for real data (see SETUP.md).
Run this command to add LegalMCP globally (available in every session):
Mac/Linux:
claude mcp add legal-mcp /path/to/legal-mcp-env/bin/legal-mcp
Windows:
claude mcp add legal-mcp C:\path\to\legal-mcp-env\Scripts\legal-mcp.exe
To enable demo mode, add the env flag:
Mac/Linux:
claude mcp add legal-mcp -e LEGAL_MCP_DEMO=true -- /path/to/legal-mcp-env/bin/legal-mcp
Windows:
claude mcp add legal-mcp -e LEGAL_MCP_DEMO=true -- C:\path\to\legal-mcp-env\Scripts\legal-mcp.exe
Tip: To add it to a specific project only, add
-s projectflag or create a.mcp.jsonfile in your project root.
LegalMCP works with any MCP-compatible client. Add the legal-mcp command to your AI tool's MCP server configuration.
Set environment variables for API access. See SETUP.md for step-by-step instructions.
| Variable | Required | Description |
|---|---|---|
COURTLISTENER_TOKEN | Optional | Higher rate limits for case law search |
CLIO_TOKEN | For |