us-legal-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@us-legal-mcp search for recent Supreme Court opinions on free speech"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
πΊπΈ US Legal MCP Server
Comprehensive US legal data in your AI workflow. Search Congress bills, Federal Register documents, court opinions, and committees. No API keys required (optional for enhanced access).
An MCP (Model Context Protocol) server that brings authoritative US legal information into AI coding environments like Cursor and Claude Desktop.
Why Use US Legal MCP?
π No API Keys Required β Works out of the box (optional keys for enhanced access)
π― Jev High-Confidence Filter β Optional TypeSafe Jev scoring drops poor matches
π Comprehensive Sources β Congress, Federal Register, CourtListener
β‘ Easy Setup β One-click install in Cursor or simple manual setup
π Multi-Source Search β Search across all legal sources simultaneously
π Real-time Data β Recent bills, regulations, and court opinions
Related MCP server: Vaquill-AI/vaquill-mcp
Quick Start
Ready to explore US legal data? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
npm install -g us-legal-mcp
# Or from source:
git clone https://github.com/JamesANZ/legal-mcp.git
cd legal-mcp && npm install && npm run buildFeatures
π Congress.gov
search-congress-billsβ Search bills and resolutionsget-recent-billsβ Get recently introduced legislationget-congress-committeesβ List Congressional committees
π Federal Register
search-federal-registerβ Search regulations and executive ordersget-recent-regulationsβ Get recently published documents
βοΈ CourtListener
search-court-opinionsβ Search court opinions (federal and state)get-recent-court-opinionsβ Get recent court decisions
π― Jev Relevance Filter (optional)
When TYPESAFE_API_KEY (or JEV_API_KEY) is set in the MCP server env, query-based search tools send each hit to Jev (TypeSafe System One) and only return high-confidence matches. Poor or low-confidence results are dropped. Without a key the server keeps its existing keyword scoring.
Filtered tools: search_congress_bills, search_federal_register, search_all_legal, search_court_opinions, search_regulator_news, search_digital_asset_regulation. Lookup tools (get_bill_details, recent lists, curated acts) are unchanged.
π Multi-Source
search-all-legalβ Comprehensive search across all sourcessearch_digital_asset_regulationβ Aggregate search (Congress + Federal Register + all regulator feeds) scoped to crypto/stablecoin topics
πͺ Digital Asset & Crypto Legislation
get_genius_act_infoβ Curated reference for the GENIUS Act (S.1582, 119th Cong., Pub. L. 119-27) β US payment stablecoin frameworkget_clarity_act_infoβ Curated reference for the Digital Asset Market CLARITY Act (H.R.3633, 119th Cong.) β SEC/CFTC digital-asset jurisdictionget_curated_actβ Fetch any curated act by slug (genius-act,clarity-act)get_bill_detailsβ Live Congress.gov metadata for any bill (bybillIdlikes1582-119orhr3633-119)get_bill_actionsβ Full chronological action history for a billget_bill_textβ All text versions (Introduced, Engrossed, Enrolledβ¦) with PDF/HTML/XML linksget_public_law_textβ GovInfo public law package + truncated full text (e.g.,119-27for GENIUS Act)
ποΈ Regulator News Feeds
get_recent_regulator_newsβ Recent press releases from OCC, SEC, CFTC, Federal Reserve, Treasury, or FinCENsearch_regulator_newsβ Keyword search across any/all regulator press-release feeds
Installation
Cursor (One-Click)
Click the install link above or use:
cursor://anysphere.cursor-deeplink/mcp/install?name=legal-mcp&config=eyJsZWdhbC1tY3AiOnsiY29tbWFuZCI6Im5weCIsImFyZ3MiOlsiLXkiLCJ1cy1sZWdhbC1tY3AiXX19Manual Installation
Requirements: Node.js 18+ and npm
# Clone and build
git clone https://github.com/JamesANZ/legal-mcp.git
cd legal-mcp
npm install
npm run build
# Run server
npm startClaude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"us-legal-mcp": {
"command": "node",
"args": ["/absolute/path/to/legal-mcp/dist/index.js"],
"env": {
"CONGRESS_API_KEY": "",
"COURT_LISTENER_API_KEY": "",
"GOVINFO_API_KEY": "",
"TYPESAFE_API_KEY": ""
}
}
}
}Restart Claude Desktop after configuration.
In Cursor, the same optional TYPESAFE_API_KEY (or JEV_API_KEY) can be added under Settings β MCP β us-legal-mcp β env. Leave it blank to keep keyword-only ranking.
Usage Examples
Search Congress Bills
Find bills related to a specific topic:
{
"tool": "search-congress-bills",
"arguments": {
"query": "immigration",
"congress": 118,
"limit": 10
}
}Search Federal Regulations
Find regulations on a topic:
{
"tool": "search-federal-register",
"arguments": {
"query": "environmental protection",
"limit": 5
}
}Comprehensive Legal Search
Search across all sources simultaneously:
{
"tool": "search-all-legal",
"arguments": {
"query": "healthcare",
"limit": 20
}
}Search Court Opinions
Find court decisions:
{
"tool": "search-court-opinions",
"arguments": {
"query": "immigration asylum",
"court": "scotus",
"limit": 10
}
}Data Sources
Source | Description | API | Auth Required |
Congress.gov | Bills, resolutions, committees, bill actions, bill text versions | Optional | |
Federal Register | Regulations, executive orders | No | |
CourtListener | Court opinions, decisions | Optional | |
GovInfo | Public laws, enrolled bill PDFs, XML | Optional (api.data.gov key) | |
OCC | Office of the Comptroller of the Currency news releases | No | |
SEC | Securities and Exchange Commission press releases | No | |
CFTC | Commodity Futures Trading Commission (general, enforcement, speeches) | No | |
Federal Reserve | Federal Reserve Board press releases | No | |
Treasury | US Treasury press releases (HTML listing) | No | |
FinCEN | Financial Crimes Enforcement Network press releases (HTML listing) | No |
API Keys (Optional)
Congress.gov API Key
Sign up for a free account
Get your API key
Set
CONGRESS_API_KEYenvironment variable
CourtListener API Key
Create a free account
Get your API key from your profile
Set
COURT_LISTENER_API_KEYenvironment variable
GovInfo API Key
Visit https://api.data.gov/signup/ to request a free key
Set
GOVINFO_API_KEYenvironment variable. Without it the server falls back toDEMO_KEY(rate-limited).
Jev / TypeSafe API Key (optional)
Used to check whether each search hit actually matches the user's request. The server runs without this key. Add it in your MCP config env if you want high-confidence filtering.
Create a key in the TypeSafe console (or use a compatible gateway)
Set
TYPESAFE_API_KEYin the MCP server env (alias:JEV_API_KEY)Optional overrides:
JEV_MIN_RELEVANCEβ keep threshold,0β1(default0.85)JEV_MODELβ defaultjev-latestTYPESAFE_BASE_URLβ defaulthttps://api.typesafe.ai
When the filter is on, search results include a Jev score (e.g. Jev 0.94) and a short note of how many poor matches were dropped. If Jev is unreachable, the server falls back to keyword scoring so tools still return data.
Use Cases
Legal Researchers β Quick access to bills, regulations, and court opinions
Policy Analysts β Track legislation and regulatory changes
Lawyers β Reference tool for case law and regulations
Developers β Build apps with authoritative legal data
Technical Details
Built with: Node.js, TypeScript, MCP SDK
Dependencies: @modelcontextprotocol/sdk, axios, fast-xml-parser, zod
Optional: Jev via TYPESAFE_API_KEY for high-confidence search filtering
Platforms: macOS, Windows, Linux
Contributing
β If this project helps you, please star it on GitHub! β
Contributions welcome! Please open an issue or submit a pull request.
License
MIT License β see LICENSE file for details.
Support
If you find this project useful, consider supporting it:
β‘ Lightning Network
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqaβΏ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
Ξ Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Available Tools
18 toolsget_bill_actionsB
Chronological actions (newest first) for a specific bill from Congress.gov. Identify via billId or congress+type+number.
Inputs: type, limit, billId, number, +1 more.
get_bill_detailsA
Fetch live bill metadata from the Congress.gov API (sponsors, latest action, policy area, linked endpoints). Identify the bill by billId (e.g. 's1582-119', 'hr3633-119') OR by explicit congress+type+number.
Inputs: type, billId, number, congress.
get_bill_textB
List available text versions (Introduced, Engrossed, Enrolled, etc.) with PDF/HTML/XML download links for a bill.
Inputs: type, billId, number, congress.
get_clarity_act_infoA
Curated reference for the Digital Asset Market CLARITY Act (H.R.3633, 119th Cong.). Returns status, timeline, sponsor, key provisions, agency jurisdiction (SEC/CFTC), and source links. For live bill actions use get_bill_actions with billId 'hr3633-119'.
Inputs: no named parameters.
get_congress_committeesC
Get list of Congressional committees
Inputs: chamber, congress.
get_curated_actA
Return a curated reference record for a major US digital-asset act by slug.
Inputs: slug (required).
get_genius_act_infoA
Curated reference for the GENIUS Act (Guiding and Establishing National Innovation for U.S. Stablecoins Act, S.1582, 119th Cong., Pub. L. 119-27). Returns status, timeline, sponsors, key provisions, agency jurisdiction, and source links. For live bill actions use get_bill_actions with billId 's1582-119'.
Inputs: no named parameters.
get_public_law_textA
Fetch a Public Law package from GovInfo (summary + optional truncated plain text). Example: congress=119, lawNumber=27 returns the GENIUS Act.
Inputs: congress (required), lawNumber (required), maxChars, includeText.
get_recent_billsC
Get the most recently introduced bills in Congress
Inputs: limit, congress.
get_recent_court_opinionsC
Get the most recently published court opinions from CourtListener
Inputs: court, limit.
get_recent_regulationsC
Get the most recently published Federal Register documents
Inputs: limit.
get_recent_regulator_newsB
Recent press releases / news items from a US financial regulator (OCC, SEC, CFTC, Federal Reserve, Treasury, FinCEN) or all of them.
Inputs: limit, source.
search_all_legalB
Comprehensive search across all US legal sources (Congress, Federal Register, Court Opinions). When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), limit.
search_congress_billsB
Search for bills and resolutions in Congress.gov. When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), limit, congress.
search_court_opinionsB
Search for court opinions and decisions from CourtListener (federal and state courts). When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), court, limit.
search_digital_asset_regulationB
Aggregate search across Congress bills, Federal Register, and all regulator news feeds. Scoped to digital-asset / crypto / stablecoin topics. When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), limit.
search_federal_registerB
Search for documents in the Federal Register (regulations, executive orders, etc.). When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), limit.
search_regulator_newsB
Keyword search across regulator press-release feeds (OCC, SEC, CFTC, Fed, Treasury, FinCEN). Useful for stablecoin/CBDC/digital-asset monitoring. When TYPESAFE_API_KEY is set, only high-confidence Jev matches are returned.
Inputs: query (required), limit, source.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 18 tools
Per-source search/recent pairs (bills, Federal Register, court opinions, regulator news) are clearly distinguishable, but the aggregate searches overlap: search_all_legal, search_digital_asset_regulation, and the per-source searches return similar material with only scope differences. The three curated-act tools (get_genius_act_info, get_clarity_act_info, get_curated_act) largely do the same thing, and get_genius_act_info vs get_bill_details requires careful reading to separate.
Every tool follows a consistent snake_case verb_noun pattern (get_recent_*, search_*, get_bill_*), with predictable suffixes tied to resource type. No camelCase or stylistic divergence anywhere in the set.
18 tools is on the heavy side but justified by four distinct data sources (Congress, Federal Register, CourtListener, regulators), each needing search plus recent feeds, plus a bill-lifecycle cluster. A few tools, notably the duplicated curated-act getters, could be collapsed without losing capability.
Congress coverage is strong (search, details, actions, text, public law, committees), but court opinions have no fetch-by-ID/detail tool and Federal Register documents cannot be retrieved individually after search. There is also no roll-call vote, lawmaker, or docket lookup, leaving notable gaps in a legal research surface.
Maintenance
Related MCP Connectors
An MCP server that provides congressional transcripts
MCP server for Chinese law lookup: statutes, regulations and articles by keyword or law name.
US federal and state cybersecurity/privacy law MCP server with cross-state comparison
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP server enables interaction with the Open States API, allowing users to access legislative data from US state governments through natural language commands.-

Vaquill-AI/vaquill-mcpofficial
AlicenseAqualityBmaintenanceMCP server for Vaquill legal research API. Covers US federal + 50-state law (USC, CFR, state legislation, CourtListener case law)37148 PyPI9MIT- FlicenseAqualityDmaintenanceMCP server for Legalize.dev, enabling AI to query and understand legal frameworks across countries via a structured legislation API.131-
- AlicenseAqualityBmaintenanceMCP server for the Congress.gov API that tracks US federal legislative process, providing tools to search bills and get bill details.111Apache 2.0