ecfr-mcp
This server exposes the eCFR (Electronic Code of Federal Regulations) API as MCP tools for reading and analyzing federal acquisition regulations like FAR and DFARS, with no authentication required.
Get current regulatory text: fetch parsed text for any CFR section, subpart, part, or appendix (e.g., FAR 15.305, DFARS 252.227-7014).
Browse structure: get hierarchical tables of contents for titles, chapters, parts, subparts, and sections.
Search regulations: full-text search across CFR with filters for title, chapter, part, agency, and current-only text.
Check latest dates: automatically resolve the most recent available eCFR date to avoid 404s.
Track history: view amendment/version history and compare a section's text at two different dates.
Find hierarchy context: get breadcrumb ancestry showing where a section sits in the CFR structure.
List FAR/DFARS sections: enumerate all sections in a part with headings.
Look up FAR/DFARS clauses: one-call retrieval of clause text with automatic date resolution.
Find FAR definitions: search FAR 2.101 for term definitions and return only matching paragraphs.
Discover recent changes: find sections modified since a given date.
List agencies: see which agencies own which CFR titles/chapters and their FAR supplements.
Get corrections: retrieve editorial corrections for a title with FR citations and error dates.
ecfr-mcp
MCP server for the eCFR (Electronic Code of Federal Regulations) API. Read FAR, DFARS, and all agency FAR supplement text with no authentication required.
Standalone MCP use is an advanced, self-supported path; packaged agents are the maintained beginner path.
Tested and hardened through six rounds of integration testing against the live eCFR API. 295 regression tests (182 offline, 113 live-gated) covering 2 P0 catastrophic bugs, 26 P1 silent-wrong-data bugs, 32 P2 validation gaps, and the round-6 audit fixes (Title 48 chapter whitelist, table extraction, appendix access). See testing.md for the full testing record.
What it does
Exposes the eCFR API as 13 MCP tools covering regulatory text, structure, search, version history, and common acquisition workflows:
Core endpoints
get_latest_date- Get the most recent available date for a CFR title (call before other tools)get_cfr_content- Get parsed regulatory text for a section, subpart, or partget_cfr_structure- Hierarchical table of contentsget_version_history- Amendment history for a section or partget_ancestry- Breadcrumb hierarchy pathsearch_cfr- Full-text search with hierarchy filterslist_agencies- All agencies with their CFR referencesget_corrections- Editorial corrections for a title
Workflow convenience
lookup_far_clause- One-call FAR/DFARS clause text lookup (auto-resolves date)compare_versions- Side-by-side text comparison at two dateslist_sections_in_part- All sections in a FAR/DFARS partfind_far_definition- Search FAR 2.101 for a term definitionfind_recent_changes- Sections modified since a given date
Related MCP server: regulationsgov-mcp
No authentication required
The eCFR API is fully public. No API key, no registration, no auth headers. Just install and use.
Installation
Via uvx (recommended)
uvx ecfr-mcpVia pip
pip install ecfr-mcpFrom source
git clone https://github.com/1102tools-dev/federal-contracting-mcps.git
cd federal-contracting-mcps/servers/ecfr-mcp
pip install -e .Configuration
MCP is an open standard, and compatible clients can run this server. The maintained 1102tools Agent Setup Guide covers packaged agents in Codex and Claude Code, not standalone server configuration. Use the block below as the server definition and adapt its placement to your client.
{
"mcpServers": {
"ecfr": {
"command": "uvx",
"args": ["--refresh-package", "ecfr-mcp", "--from", "ecfr-mcp", "ecfr-mcp"]
}
}
}The --refresh-package flag tells uv to check PyPI for a newer release each time your client launches the server, so fixes arrive automatically; without it, uv keeps serving whatever version it first cached. It adds a moment of network time at startup, so raise your platform's MCP startup timeout if it enforces a short one.
Restart the client. The ecfr server appears with 13 tools.
Example prompts
"Pull the current text of FAR 15.305 (Proposal Evaluation) and summarize what it requires."
"List all sections in FAR Part 19 (Small Business Programs)."
"Look up the FAR definition of 'commercial product' in 2.101."
"What FAR sections were amended in the last 6 months?"
"Compare FAR 52.212-4 between 2024-01-01 and 2025-01-01 and show me what changed."
"Get the current text of DFARS 252.227-7014 (Rights in Noncommercial Computer Software)."
"Search Title 48 for 'organizational conflict of interest' and show me the relevant sections."
"Which agency owns Chapter 8 in Title 48? Get their FAR supplement structure."
Design notes
XML parsed server-side. The eCFR content endpoint returns raw XML. This server parses it into clean text (headings, paragraphs, citations) before returning to the model, saving significant context tokens.
Automatic date resolution. eCFR lags 1-2 business days behind the Federal Register. Using today's date on versioner endpoints causes 404 errors. All content tools auto-resolve to the latest available date unless you specify one.
Search defaults to current text. Without
date=current, eCFR search returns ALL historical versions including superseded. Defaultcurrent_only=Trueprevents duplicate results.Structure endpoint limitation. The eCFR structure endpoint does not support section-level filtering (returns 400).
list_sections_in_partworks around this by fetching the part structure and walking the tree.FAR 2.101 optimization. The definitions section is ~109KB of XML.
find_far_definitionparses the full section server-side and returns only matching paragraphs with context.
CFR Title 48 quick reference
Chapter | Regulation | Parts |
1 | FAR | 1-99 |
2 | DFARS | 200-299 |
3 | HHSAR | 300-399 |
4 | AGAR | 400-499 |
5 | GSAR | 500-599 |
6 | DOSAR | 600-699 |
7 | AIDAR | 700-799 |
8 | VAAR | 800-899 |
9 | DEAR | 900-999 |
18 | NFS | 1800-1899 |
Data source
All data from ecfr.gov, the continuously updated online Code of Federal Regulations maintained by the Office of the Federal Register. Updated daily, typically 1-2 business days after Federal Register publication. Not an official legal edition; for official citations reference the annual CFR from GPO.
Part of
federal-contracting-mcps: monorepo of 9 MCP servers for federal contracting data. Companion to federal-contracting-skills.
Request pacing
Every upstream request uses a provisional 3-second cross-process anti-burst
interval by default. eCFR does not publish a numeric limit, so this is a
1102tools safeguard rather than a provider requirement. Override with
FEDERAL_API_MIN_INTERVAL_SECONDS, use 0 to deliberately disable it, and
use FEDERAL_API_PACING_DIR to relocate local pacing state.
License
MIT
Maintenance
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceFederal procurement intelligence toolkit that searches SAM.gov contract opportunities, analyzes agency spending patterns, tracks competitor wins, and monitors small business set-aside programs (8a, HUBZone, SDVOSB, WOSB). 4 tools using SAM.gov and USASpending.gov data.2
- AlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with the Regulations.gov API to search federal rulemaking dockets, proposed and final rules, public comments, and comment periods. Supports tracking FAR/DFARS case histories and monitoring open comment periods across federal agencies with optional API key authentication for higher rate limits.
- AlicenseAqualityAmaintenanceThe most comprehensive keyless federal-data MCP server. 36 tools for SAM.gov + USAspending + Federal Register + eCFR + Grants.gov. No API key, no registration, no signup. Works in Claude Desktop, Claude Code, Codex CLI, Cursor, Continue, Gemini CLI, and any MCP-aware host.301001425MIT
- AlicenseAqualityAmaintenanceGovToolsPro MCP Server — an MCP server that gives Claude and other AI clients workflow tools for US federal contractors: go/no-go scoring, incumbent intelligence (USAspending + FPDS), teaming-partner search, recompete prediction, Navy NECO lookup, and SAM.gov solicitation retrieval. It returns synthesized decisions rather than raw data, so contractors and capture teams can triage opportunities d10512MIT
Related MCP Connectors
SAM.gov contracts and USAspending awards. 4 procurement tools.
Search and trace US federal rules across the Federal Register, eCFR, and Regulations.gov.
55 tools for federal/state/local RFPs, awards, vendors, contact graph, contract vehicles, pursuits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/1102tools-dev/federal-contracting-mcps'
If you have feedback or need assistance with the MCP directory API, please join our Discord server