US Code of Federal Regulations MCP Server
Look up, search, and track changes to the US Code of Federal Regulations (eCFR).
US Code of Federal Regulations scores 31 (Limited), licensed MIT and written in Python. It installs as a local process. It declares 7 tools. Filed under Search. GitHub shows 1 stars. Package registries report about 47 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
31 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Where the 31 comes from
0 + 6 + 4 + 10 + 4 + 7 = 31. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mccallar-cfr-mcp": { "command": "uvx", "args": [ "cfr-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools7Tool docs quality grade D
All capabilitiesbrowse_structuretoolThe hierarchy of a title or part, no text
compare_versionstoolDiff of a citation's text between two dates — see exactly what an amendment changed
list_agenciestoolMaps agency names to the CFR titles they administer
lookup_citationtoolText of a citation — 21 CFR 101.9, 40 CFR 261.4(b)(1), 40 CFR Part 261 Subpart C
Full-text search; returns citations and snippets, never bodies
what_changedtoolAmendment history for a citation, linking each change to the Federal Register rule that caused it, plus published corrections
Which titles contain a term, with hit counts. Fetches no text
About
cfr-mcp
An MCP server that gives AI assistants access to the US Code of Federal Regulations.
Ask "what does 21 CFR 101.9 require?" or "has 40 CFR 261 changed since 2023?" and get the actual regulation text, with citations, instead of a plausible-sounding guess.
Unofficial community project. Not affiliated with or endorsed by the Office of the Federal Register, NARA, or GPO, and uses no government seals or logos.
Maintained by one person as a personal project and provided as-is (MIT). Issues and pull requests are welcome but may not get a quick response. To report a security issue, see SECURITY.md.
Install
Requires Python 3.11+. No API key — the eCFR and Federal Register APIs are open.
Claude Code:
claude mcp add cfr -- uvx cfr-mcp
Any other MCP client:
{
"mcpServers": {
"cfr": {
"command": "uvx",
"args": ["cfr-mcp"]
}
}
}
Tools
| Tool | What it does |
|---|---|
lookup_citation | Text of a citation — 21 CFR 101.9, 40 CFR 261.4(b)(1), 40 CFR Part 261 Subpart C |
search_regulations | Full-text search; returns citations and snippets, never bodies |
where_does_term_appear | Which titles contain a term, with hit counts. Fetches no text |
browse_structure | The hierarchy of a title or part, no text |
what_changed | Amendment history for a citation, linking each change to the Federal Register rule that caused it, plus published corrections |
compare_versions | Diff of a citation's text between two dates — see exactly what an amendment changed |
list_agencies | Maps agency names to the CFR titles they administer |
Point-in-time works throughout: pass date as YYYY-MM-DD to read the CFR as it stood.
Design notes
Context budget is the whole game. The eCFR full endpoint returns an entire
downloadable XML document for a title-level request. Every tool here caps output and
degrades to an outline rather than dumping text into the model's context. Title-level
XML requests are refused outright.
Dates must be resolved, not assumed. Versioner routes 404 on dates that aren't
valid issue dates for a title, so the client resolves through titles.json first
rather than passing today's date blindly.
Caching is courtesy. The eCFR publishes no rate limit and has no key to identify
callers politely, so the client caches to disk (historical dates forever, since
point-in-time content is immutable) and self-limits concurrency. The cache lives in
~/.cache/cfr-mcp (respects XDG_CACHE_HOME); set CFR_MCP_CACHE_DIR to relocate it.
Legal
Regulation text is free to reproduce. 1 CFR 2.6 states that any person may reproduce or republish material appearing in the Federal Register, with no restrictions on what is reproduced, who reproduces it, or where. Federal government works are also outside copyright under 17 U.S.C. §105.
Incorporation by reference. Some CFR sections incorporate private standards (ASTM, NFPA, ASHRAE) whose copyright status after incorporation remains unsettled. The eCFR does not contain the text of those standards and neither does this server — it returns the citation only. Obtain standards from the issuing organization or the Office of the Federal Register reading room.
Status of the text. The eCFR is authoritative but unofficial. Anyone relying on it for legal research should verify against the current official CFR, the daily Federal Register, and the List of CFR Sections Affected (LSA).
Not legal advice. This is a retrieval tool. It returns the text of regulations; it does not tell you whether you are compliant with them.
Development
uv sync --extra dev
uv run pytest
MIT licensed.
Frequently asked questions
What is US Code of Federal Regulations MCP Server?
Look up, search, and track changes to the US Code of Federal Regulations (eCFR).
How do I install US Code of Federal Regulations MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. US Code of Federal Regulations MCP Server runs locally from the PyPI package cfr-mcp with the command uvx cfr-mcp.
Is US Code of Federal Regulations MCP Server free and open source?
Yes. US Code of Federal Regulations MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does US Code of Federal Regulations MCP Server support remote (HTTP) connections?
No remote endpoint is listed for US Code of Federal Regulations MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does US Code of Federal Regulations MCP Server provide?
US Code of Federal Regulations MCP Server provides 7 tools, including browse_structure, compare_versions, list_agencies, and lookup_citation. See the full tool list for descriptions and parameters.
How is US Code of Federal Regulations MCP Server's trust score calculated?
US Code of Federal Regulations MCP Server scores 31 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.