# US Code Federal Statutes MCP server

> Search and read United States Code statutes with legal and inline citations linking to uscode.ecfr.io.

- Repository: https://github.com/lrehmann/uscode-mcp
- Page: https://hostedmcp.org/servers/lrehmann/uscode-mcp
- Transport: remote
- Stars: 0
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

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

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

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

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

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

### VS Code CLI

```sh
code --add-mcp '{"name":"uscode-mcp","type":"http","url":"https://uscode.ecfr.io/mcp"}'
```

### Codex

```sh
codex mcp add uscode-mcp --url https://uscode.ecfr.io/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.uscode-mcp]
url = "https://uscode.ecfr.io/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http uscode-mcp https://uscode.ecfr.io/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Tools (3)

- `search_uscode`
- `get_section`
- `list_titles`

## FAQ

### Do I need an API key to use this service?

No, the service provides free, read-only access without requiring an API key or account.

### How can I search for specific statutes?

You can use the search_uscode tool with a query such as a specific citation like '5 USC 552' or a topic like 'freedom of information'.

### Is the information provided real-time?

The source date reflects the published OLRC release date and is not a real-time check for subsequent amendments.

### What are the requirements for local installation?

Local installation via stdio requires Node.js version 20 or newer.
