us-legal-mcp
# United States Legal Research MCP Server (`us-legal-mcp`)
## English Documentation
Model Context Protocol (MCP) server providing live, read-only access to **United States (US)** legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (**ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev**).
---
### Interactive Desktop Setup (Select Your AI Assistant)
This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:
1. **Download:** Click **`<> Code`** at the top right of this repository, select **`Download ZIP`**, and extract the folder to your computer.
2. **Run the Setup Utility:**
- **Windows:** Double-click `Click_Here_To_Install_Windows.bat`
- **macOS:** Double-click `Click_Here_To_Install_Mac.command`
3. **Select Your AI Client(s) & Connect:** Check the box(es) for the AI assistant(s) installed on your computer (**ChatGPT Desktop & OpenAI Codex CLI**, **Claude Desktop & Claude Code CLI**, **Cursor**, **Windsurf**, **VS Code / GitHub Copilot / Cline / Roo Code**, **Google Antigravity / Gemini CLI**, or **Perplexity / Continue.dev**), click **Install to Selected AI Clients**, and restart your selected AI application.
**System Integrity Note:** The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.
---
### Multi-Tier Judicial Hierarchy & Live Indexed National Archives
This server performs live queries across the full judicial hierarchy and official legal archives of **United States**, extracting full text from both HTML pages and official court/gazette PDF judgments:
| Judicial Tier | Covered Courts & Tribunals |
|:---|:---|
| **Tier 1 — First Instance** | 94 U.S. Federal District Courts, U.S. Bankruptcy Courts, U.S. Court of International Trade & State Trial/Superior Courts |
| **Tier 2 — Regional / Cantonal / Appellate** | 13 U.S. Circuit Courts of Appeals (1st–11th, D.C., Federal Circuit) & 50 State Intermediate Appellate Courts |
| **Tier 3 — Supreme & Constitutional** | Supreme Court of the United States (SCOTUS) & 50 State Supreme Courts / Courts of Last Resort |
#### Official Portals & Live Indexed Domains
- **National Legislation & Official Gazette:** United States Code (uscode.house.gov/browse.html) & Electronic Code of Federal Regulations (eCFR API) — [https://uscode.house.gov/browse.html](https://uscode.house.gov/browse.html)
- *Indexed Legislation Domains:* `uscode.house.gov`, `ecfr.gov`, `congress.gov`, `govinfo.gov`, `law.cornell.edu`
- **Court Decisions & Jurisprudence Archives:** CourtListener / Free Law Project Multi-Tier Federal & State Database (courtlistener.com) — [https://www.courtlistener.com](https://www.courtlistener.com)
- *Indexed Judicial & Open Case Law Domains:* `courtlistener.com`, `supremecourt.gov`, `justia.com`, `law.cornell.edu`
---
### Available MCP Tools
| Tool | Description |
|:---|:---|
| `search_legislation` | Searches enacted statutes, codes, decrees, and official gazette publications in United States. |
| `search_case_law` | Searches national jurisprudence and open judicial archives for United States. |
| `search_tiered_court_decisions` | Filters case law specifically by judicial instance (`first_instance`, `appellate_regional`, `supreme_constitutional`) or specific regional/cantonal/district court. |
| `list_court_hierarchy` | Returns the complete 3-tier court structure and supported regional court filters for United States. |
| `get_legal_document_markdown` | Retrieves full statutory or judicial texts (both HTML and official `.pdf` court judgments) and converts them into clean Markdown. |
| `verify_citation` | Validates statutory and case law citations against official registries. |
---
<details>
<summary><b>Manual Configuration for Developers (Optional)</b></summary>
```json
{
"mcpServers": {
"us-legal-mcp": {
"command": "uvx",
"args": [
"--from",
"https://github.com/jurisatlas/us-legal-mcp/archive/refs/heads/main.zip",
"us-legal-mcp"
]
}
}
}
```
</details>
TDQS
Scored across 6 tools
The two search tools overlap significantly: search_case_law and search_tiered_court_decisions both return US court decisions, differing only by tier filtering. Descriptions help an attentive agent choose correctly, but a naive agent could easily pick the wrong one or run both redundantly; the remaining four tools (legislation search, document fetch, hierarchy listing, citation verification) are clearly distinct.
All tools use snake_case with a verb_noun shape (search_legislation, get_legal_document_markdown, list_court_hierarchy, verify_citation), which is predictable. The only wrinkle is that search_case_law and search_tiered_court_decisions are not parallel in structure despite being sibling operations, which slightly weakens the pattern.
Six tools is well-scoped for a legal research server, with each tool covering a distinct capability (statute search, case search, full-text retrieval, court structure, tiered search, citation check). No filler or trivially redundant tools beyond the tiered-search variant.
The surface covers the core research lifecycle: find legislation, find cases (including by tier), fetch full text, understand court structure, and verify citations to avoid hallucination. Minor gaps remain, such as direct lookup by docket/citation without knowing a URL, or citation-graph/subsequent-history checking, but these are workable around get_legal_document_markdown and verify_citation.