Skip to main content

MCP server

US Statutes MCP Server

Let an AI assistant search the US Code, the CFR and state codes directly. Every section ships as JSON for your code, and HTML, text, PDF or DOCX for the humans reading it.

install (placeholder package name)
pip install lexbharat-mcp

Statute tools via MCP

Every tool maps to an API endpoint.

ToolWhat it does
search_us_statutesSearch federal and state codes; filter by corpus, state and title.
resolve_statute_citationTurn a citation like 42 U.S.C. § 1983 into the section it names.
get_us_statute_sectionMetadata for a section: citation, hierarchy, breadcrumb, source links.
get_us_statute_section_textFull section text in styled HTML and plain text.
list_statute_divisionsBrowse the statutory hierarchy one level at a time.
list_statutes_coverageCoverage matrix: which corpora exist in which jurisdiction.
get_section_changesA section's amendment timeline and what changed between two dates.
resolve_statute_citations_batchResolve many citations in one call.
list_session_lawsA state's session laws, by session, signing date or effective date.
get_session_lawOne act: its dates, the code sections it changed, official sources.
get_session_law_bodyText of an act as passed, including what it struck out.
create_watchWatch a body of law and be told when it changes.
get_pricingCurrent API pricing; free, no authentication.

MCP server setup in two minutes

Pick your client. Snippets are illustrative; the package names are placeholders.

Add the connector from the directory in one click.

Ground your agent in primary law.