mcpField
U
us-eli-mcp

us-eli-mcp

Local
github.com/matematicsolutionsLegal & Government1Updated 3w ago

About us-eli-mcp

us-eli-mcp is a read-only MCP server for researching US legislation, regulations, and court opinions. It serves legal researchers and developers with source-linked results and official citations across five public data sources.

Key features

  1. 01Search and retrieve congressional bills
  2. 02Browse US Code and GovInfo packages
  3. 03Search Federal Register documents
  4. 04Search state and federal opinions
  5. 05Search current eCFR and amendment history
  6. 06Return source URLs and official citations

Use cases

  1. 01Track a bill and its latest action
  2. 02Find Federal Register rules or executive orders
  3. 03Research state-court opinions by jurisdiction
  4. 04Review a CFR section and its amendments

MCP support

Exposes read-only tools to MCP clients for searching and retrieving US legal information. Responses include resolvable source URLs and human-readable official citations.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"matematicsolutions-us-eli": {
"command": "uvx",
"args": [
"us-eli-mcp"
]
}
}
}
Run commanduvx us-eli-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypius-eli-mcp0.5.3

Tools

11

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
limitintegerNomax results (default 20, API caps around 250).
congressintegerYese.g. ``118`` (2023-2024 session).
bill_typestringYesone of ``"hr"``, ``"s"``, ``"hres"``, ``"sres"``, ``"hjres"``, ``"sjres"``, ``"hconres"``, ``"sconres"``.

Details

From the project README

us-eli-mcp

MCP server for US law with verifiable citations. Five sources behind ten read-only tools:

  • Congress.gov API - the federal legislative process: bills as they move through committees and floor votes.
  • GovInfo API - enacted law text as published packages: US Code, Statutes at Large, CFR annual editions, Federal Register issues.
  • Federal Register API - full-text search over 1,003,504 FR documents (1994-2026, live-verified 2026-07-07), including 8,513 presidential documents (1,550 executive orders). Keyless.
  • CourtListener search API - full-text search over 8,294,123 court opinions (live-verified 2026-07-07). The headline value is STATE case law (California, New York, Texas, ...), which no federal source covers. Keyless, ~5 requests/min anonymous.
  • eCFR API - the CURRENT Code of Federal Regulations: section-level full-text search over 412,846 sections plus per-section amendment history. Keyless.

What this is not

  • State legislation (all 50 states) - see LegiScan, a free-tier aggregator (30,000 queries/month) not wrapped here.
  • A federal case-law workhorse - for heavy federal case-law research the mature MIT-licensed wrappers (blakeox/courtlistener-mcp, john-walkoe/courtlistener_citations_mcp) remain the recommendation; the case-law tools here exist primarily for state courts. See SOURCES.md.

Tools

ToolPurpose
us_search_billsList bills by congress (e.g. 118) and type (hr, s, hres, ...)
us_get_billFull detail + latest action for one bill
us_list_code_packagesList GovInfo packages in a collection (USCODE, CFR, FR, STATUTE)
us_get_code_packageMetadata + download links (PDF/XML/TXT) for one package
us_search_federal_registerFull-text search over FR documents; filter rules, notices, executive orders
us_get_federal_register_docOne FR document with its official citation (e.g. 91 FR 41591)
us_search_case_lawFull-text search over 8M+ opinions; court filter (e.g. cal, ny, scotus)
us_get_caseOne opinion cluster by cluster_id
us_search_cfr_sectionsFull-text search over the current CFR (eCFR)
us_get_cfr_section_historyAmendment history of one CFR section (e.g. 15 CFR 744.3)
us_coverageDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

Every response carries lex_uri (a resolvable API URL), human_readable_citation (the official convention: "H.R. 1, 118th Congress", "91 FR 41591", "People v. Miranda-Guerrero, 519 P.3d 1004 (California Supreme Court 2022)", "15 CFR § 744.3") and source_url (the public page). Reporter citations are taken verbatim from the source and never fabricated; when none exists the docket number is used instead.

Install

As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:

/plugin marketplace add matematicsolutions/us-eli-mcp
/plugin install us-eli-mcp@us-eli-mcp

As a standalone server:

pip install us-eli-mcp
Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the us-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

python -m pip install us-eli-mcp
python -m us_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m us_eli_mcp.

{ "mcpServers": { "us-eli-mcp": { "command": "python", "args": ["-m", "us_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Configuration

Env varDefault
US_ELI_API_KEYDEMO_KEY (shared, low rate limit - get your own free key at api.congress.gov/sign-up)
US_ELI_GOVINFO_API_KEYreuses US_ELI_API_KEY (same api.data.gov key family)
US_ELI_CACHE_DIR~/.matematic/cache/us-eli
US_ELI_AUDIT_DIR~/.matematic/audit
US_ELI_BASE_URLhttps://api.congress.gov/v3
US_ELI_GOVINFO_BASE_URLhttps://api.govinfo.gov
US_ELI_FR_BASE_URLhttps://www.federalregister.gov/api/v1 (keyless)
US_ELI_COURTLISTENER_BASE_URLhttps://www.courtlistener.com/api/rest/v4 (keyless)
US_ELI_ECFR_BASE_URLhttps://www.ecfr.gov/api (keyless)

The Federal Register, CourtListener and eCFR tools need no key at all.

Network: the server talks to the five sources above and the local filesystem. Once, on first use, it also fetches a small configuration file (us-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see. US_ELI_RUNTIME_URL="" turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry.

License

Apache-2.0 (code). Congress.gov, GovInfo, Federal Register and eCFR data are US government works (public domain). CourtListener data is provided by the Free Law Project.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.