# US Code Federal Statutes

> US Code Federal Statutes is a free MCP server for legal and government. Search and read U.S. Code statutes with linked legal citations, no key needed. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, CLI
- **Website:** https://uscode.ecfr.io/developers
- **Repository:** https://github.com/lrehmann/uscode-mcp
- **MCP Registry name:** io.ecfr/uscode
- **Categories:** legal and government
- **Listing updated:** 2026-11-15

## About

This hosted server mirrors the Office of the Law Revision Counsel's U.S. Code corpus at uscode.ecfr.io. It is an independent mirror, not a government service, and it does not check for amendments after its published release. Responses carry the release ID, label, source date and retrieval time so you can judge currency.

Three tools cover the work: `search_uscode` takes full text or a direct citation such as 5 USC 552, `get_section` returns section text in pages (20,000 characters by default, up to 60,000, following `nextOffset`), and `list_titles` lists titles. A citation-guide resource and a `cite_statutes` prompt help answers quote correctly. Search snippets are excerpts, so retrieve the section before quoting.

Results include `inlineCitation` and `legalCitation` fields with the site URL, which the docs ask users to include. A matching JSON API and a local stdio adapter under MIT licence are available.

## Features

- **Citation-aware search:** Full-text or direct citations like 5 USC 552.
- **Paged section text:** Follow nextOffset to read long sections completely.
- **Linked citations:** Returns inline and legal citations with URLs.
- **Release metadata:** Every response states the release and source date.
- **Free JSON API:** Same data over REST with an OpenAPI spec.

## Good for

- Quote a federal statute with a linked citation
- Find sections on freedom of information
- Check which U.S. Code release an answer came from
- List titles of the code

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http uscode https://uscode.ecfr.io/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://uscode.ecfr.io/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "uscode": {
      "url": "https://uscode.ecfr.io/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "uscode": {
      "type": "http",
      "url": "https://uscode.ecfr.io/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "uscode": {
      "serverUrl": "https://uscode.ecfr.io/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "uscode": {
      "type": "http",
      "url": "https://uscode.ecfr.io/mcp"
    }
  }
}
```

## Tools

- `search_uscode`: Search the U.S. Code by text or citation.
- `get_section`: Get section text in pages.
- `list_titles`: List published titles.

## FAQ

### Do I need an account?

No account or API key is required.

### Is it official?

No, it is an independent mirror of the OLRC corpus.

### How current is it?

It serves its published release and does not check later amendments in real time.

### What are the tools?

search_uscode, get_section and list_titles.

### Is US Code Federal Statutes free?

Yes. US Code Federal Statutes is free to use.

### How do I add US Code Federal Statutes to Claude Code?

Run this command in your terminal: claude mcp add --transport http uscode https://uscode.ecfr.io/mcp

### What are the best alternatives to US Code Federal Statutes?

The closest alternatives to US Code Federal Statutes are NY LLC Publication (FileMyPublication), TribuJus, SupplyClub Catalog, SynomosAI Governance MCP and MedXpert 标准检索连接器.

## Alternatives

- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [SupplyClub Catalog](https://ai-powered.com/mcp/supplyclub-catalog): SupplyClub Catalog is a free MCP server for legal and government.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [MedXpert 标准检索连接器](https://ai-powered.com/mcp/medxpert-2): MedXpert 标准检索连接器 is a free MCP server for legal and government.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [MedXpert 全球法规连接器 (reg-connector)](https://ai-powered.com/mcp/medxpert-reg-connector): MedXpert 全球法规连接器 (reg-connector) is a free MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/us-code-federal-statutes
