ML

mahender22/legal-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

69 stars 18 forks 质量 81 趋势 4MIT

mahender22/legal-mcp 是从 https://github.com/mahender22/legal-mcp. 导入的 MCP 服务器候选

概览

mahender22/legal-mcp 是从 https://github.com/mahender22/legal-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

美国首个全面的AI助手法律MCP服务器。

将Claude、GPT、Cursor或任何兼容MCP的AI连接到4M+美国法院判决、Clio执业管理和PACER联邦文件。几秒钟内完成研究,而非几小时。


30秒演示

为什么选择LegalMCP?

传统研究 人工智能 + 法律多管商产品
查找相关案例 45-90分钟 ** 注意: 在你的虚拟环境中使用完整路径到 legal-mcp。移除 LEGAL_MCP_DEMO 行,并添加你的 API 密钥以获取真实数据(见 SETUP.md)。

连接克劳德代码

执行此命令以全局添加 LegalMCP(每个会话均可调用):

Mac/Linux:

Windows:

要启用演示模式,请添加环境标志:

Mac/Linux:

Windows:

提示: 要只添加到特定项目中,请添加 -s project 标志或在项目根创建 .mcp.json 文件。

连接光标 / 风帆冲浪

LegalMCP 可支持任何兼容 MCP 的客户端。在您的 AI 工具的 MCP 服务器配置中添加 legal-mcp 命令。

配置

设置环境变量以获取 API。详见 SETUP.md 的逐步说明。

变量 必需 描述

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

LegalMCP

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.


30-Second Demo

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

Why LegalMCP?

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

Quick Start

Install

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

Run

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

Connect to Claude Desktop

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-mcp inside your virtual environment. Remove the LEGAL_MCP_DEMO line and add your API keys for real data (see SETUP.md).

Connect to Claude Code

Run this command to add LegalMCP globally (available in every session):

Mac/Linux:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "legal-mcp": { "command": "C:/path/to/legal-mcp-env/Scripts/legal-mcp.exe", "env": { "LEGAL_MCP_DEMO": "true" } } } }