eCFR

com.1102tools由 1102tools.com 發布官方發布者v1.1.15更新於 Nov 10, 2026

Electronic Code of Federal Regulations including FAR, DFARS, and agency supplements. 13 tools.

發布方自己的服務:Acquisition.gov

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取知識與記憶

概覽

AI 產生的概覽

面向公開 eCFR API 的唯讀 MCP 伺服器,讓助理取得、搜尋並比較美國聯邦法規文本,包括 FAR 與 DFARS。

可以做什麼
  • 取得法規正文、結構與層級:條文、子部分、部分或附錄全文,目錄樹,麵包屑路徑,機關清單與編輯更正
  • 全文搜尋 CFR,並列出某個部分下的所有條文與附錄
  • 追溯修訂歷史:條文或部分的版本歷史、某日期之後的變更,以及兩個日期文本的逐段對比
  • 一次呼叫查詢 FAR、DFARS 及補充條款,並在 FAR 2.101 中尋找術語定義
  • 解析 eCFR 最新可用日期,避免其他呼叫發生錯誤
適用情境
適合聯邦採購與法遵工作:閱讀現行 FAR 或 DFARS 條款、查看某條法規在過去某日期的文本、追蹤近期修訂,或確認某條文在 CFR 層級中的位置。
執行需求
可作為遠端託管端點使用,也可透過 uvx 或 pip 從 PyPI 套件 ecfr-mcp 在本機執行,本機使用需要 Python/uv 執行環境。無需 API 金鑰、帳號或驗證標頭,依賴公開的 eCFR 服務與網路存取。
安裝前請注意
僅對公開政府資料做唯讀查詢,不索取任何憑證。eCFR 比聯邦公報落後一至兩個工作日,需先解析可用日期;README 說明其並非官方法律版本,正式引用應參照 GPO 的年度 CFR。

AI 概覽如何產生和驗證

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 eCFR,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.1102tools%2Fecfr-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "ecfr": {
      "type": "http",
      "url": "https://ecfr.1102tools.com/mcp"
    }
  }
}

README

ecfr-mcp

[price: free] [license: MIT] [tools: 13] [regression tests]

Free, open-source MCP server for the eCFR (Electronic Code of Federal Regulations) API. Read FAR, DFARS, and all agency FAR supplement text with no authentication required.

Overview, demo video and hosted setup: https://1102tools.com/mcp/ecfr

No API key required, locally or hosted. See Local or hosted.

Regression tests, including live checks against the eCFR API and a check that every piece of text in ten saved eCFR responses comes out exactly once and in order. The October 2026 releases were also checked with realistic contracting questions (clause lookups, FAR definitions, version history, recent changes). See testing.md.

Local or hosted

Local (desktop)Claude (hosted)ChatGPT (hosted)
Local setupInstallInstall
  • Local runs it on your computer, inside the Claude or ChatGPT desktop app or another AI app. You get your own full rate limits, and it relies only on the government service. It doesn't update itself, so ask your AI to update it. You don't have to set it up by hand: give your AI this page's link and ask it to set it up or walk you through it.
  • Hosted is always up to date, needs no setup or keys, and works in Claude or ChatGPT anywhere.

Compare local and hosted · Matching prompts

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 part
  • get_cfr_structure - Hierarchical table of contents
  • get_version_history - Amendment history for a section or part
  • get_ancestry - Breadcrumb hierarchy path
  • search_cfr - Full-text search with hierarchy filters
  • list_agencies - All agencies with their CFR references
  • get_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 dates
  • list_sections_in_part - All sections in a FAR/DFARS part
  • find_far_definition - Search FAR 2.101 for a term definition
  • find_recent_changes - Sections modified since a given date

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 --refresh-package ecfr-mcp --from ecfr-mcp ecfr-mcp

Via pip

pip install ecfr-mcp

From source

git clone https://github.com/1102tools-dev/federal-contracting-mcps.git
cd federal-contracting-mcps/servers/ecfr-mcp
pip install -e .

Configuration

Use the configuration below as the server definition and adapt its placement to your compatible MCP client. For practical requests using this source, see the prompt library.

{
  "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. Default current_only=True prevents duplicate results.
  • Structure endpoint limitation. The eCFR structure endpoint does not support section-level filtering (returns 400). list_sections_in_part works around this by fetching the part structure and walking the tree.
  • FAR 2.101 optimization. The definitions section is ~109KB of XML. find_far_definition parses the full section server-side and returns only matching paragraphs with context.

CFR Title 48 quick reference

ChapterRegulationParts
1FAR1-99
2DFARS200-299
3HHSAR300-399
4AGAR400-499
5GSAR500-599
6DOSAR600-699
7AIDAR700-799
8VAAR800-899
9DEAR900-999
18NFS1800-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. Pair these sources with the MCP prompt library.

License

MIT

來源:servers/ecfr-mcp/readme.md,提交 b30d160

工具

13

compare_versions

Compare Versions

Compare the text of a CFR section at two different dates. Useful for understanding what changed in a regulatory amendment. Returns 'changes' (each paragraph that was added, removed or changed, with its before and after text; also heading, table and pending-amendment-link changes), 'identical' when nothing differs, and the parsed text at both dates side by side. When both…

輸入參數chapterdate_after必填section_id必填date_before必填changes_onlytitle_number

find_far_definition

Find FAR Definition

Find a term's definition in FAR 2.101, the FAR's main definitions section. Returns each matching definition whole (the defining paragraph and every sub-paragraph under it), first, marked kind='definition'. Matching ignores case, hyphens, spacing, plurals, a trailing "means", and the acronym 2.101 puts in a name, so 'service-disabled veteran-owned small business concern',…

輸入參數dateterm必填max_matches

find_recent_changes

Find Recent Changes

Find CFR sections changed since a given date, removals included. Built on eCFR's version history: every version issued on or after since_date, newest first. Each change says whether the section was amended, removed (change='removed'), or re-issued with no text change (substantive=false). 'summary' counts each kind. A section changed twice appears twice. since_date must…

輸入參數pageparttitlechapterper_pagesince_date必填

get_ancestry

Get Ancestry

Get the breadcrumb hierarchy path for a section, part, or appendix. Returns ancestors from title down to the target node: title > chapter > subchapter > part > subpart > section. Useful for understanding where a section sits in the CFR hierarchy and what regulation it belongs to. part/subpart/section/appendix accept int or string. The answer says which date it describes.

輸入參數datepartsectionsubpartappendixtitle_number

get_cfr_content

Get CFR Content

Get the full text of a CFR section, subpart, part, or appendix. Returns parsed clean text by default: heading, paragraphs and citations, plus tables, notes, examples, images, pending_amendments and editorial_notes when present. Tables, notes and examples are numbered, and a marker like "[See table 1: ...]" sits in the paragraphs where each appears. [fn N] marks a footnote…

輸入參數datepagepartchapterraw_xmlsectionsubpartappendix另有 1 個

get_cfr_structure

Get CFR Structure

Get the hierarchical table of contents for a CFR title or subset. Returns a nested tree of titles, chapters, parts, subparts, and sections with identifiers, descriptions, and byte sizes, plus the date it describes. IMPORTANT: Does NOT support section-level filtering (returns 400). Use part or subpart, then walk the children to find sections. Common patterns: -…

輸入參數datepartdepthchaptersubpartappendixsubchaptertitle_number

get_corrections

Get Corrections

Get editorial corrections for a CFR title, newest first. Returns corrections with CFR references, corrective actions, error dates, and FR citations, sorted by the date the error was corrected, newest first. Useful for checking whether a section's current text has been corrected since its last amendment. section (e.g. '52.204-21'), part (e.g. '52') or chapter (e.g. '2' for…

輸入參數partlimitchaptersectionsince_yeartitle_number

get_latest_date

Get Latest Date

Get the most recent available date for a CFR title. CRITICAL: eCFR lags 1-2 business days behind the Federal Register. Using today's date on versioner endpoints causes 404 errors. Call this first to get the safe date, then pass it to other tools. Default title 48 = Federal Acquisition Regulations System (FAR, DFARS, and all agency supplements). Other common titles: 2…

輸入參數title_number

get_version_history

Get Version History

Get the version history of a CFR section, subpart, or part. Returns content_versions (each with date, amendment_date, issue_date, identifier, name, substantive and removed), every version eCFR lists: all of eCFR's pages are read, so Part 52's 2,264 versions are all there. Versions are grouped by section, oldest first. since_date/until_date (YYYY-MM-DD) keep versions dated in…

輸入參數pagepartsectionsubpartper_pagesince_dateuntil_datetitle_number

list_agencies

List Agencies

List all agencies with their CFR title and chapter references. Returns agency names, slugs, and which CFR titles/chapters they own. Useful for finding which chapter corresponds to an agency's FAR supplement. summary_only (default True) strips the `children` and most of `cfr_references` to keep the response compact (~20 KB vs ~100 KB). References owned by child agencies are…

輸入參數summary_only

list_sections_in_part

List Sections in Part

List all sections and appendices in a CFR part with their headings. Returns 'sections' in order, each {identifier, heading}, with type='appendix' on appendices (2 CFR 200's Appendix I-XII, for example) and reserved=true on reserved sections, plus 'subparts' (each with its heading, section_count and first and last section). Useful for seeing the scope of a part before reading…

輸入參數datepagedetailchaptersubpartpart_number必填title_number

lookup_far_clause

Lookup FAR Clause

Convenience tool: look up the current text of a FAR, DFARS or FAR supplement section or clause. Pass a section identifier like '15.305', '52.212-4', '2.101', 'DFARS 252.204-7012' or '552.238-81'. The chapter comes from the number (52.x = FAR, 252.x = DFARS, 552.x = GSAR, 852.x = VAAR, 1852.x = NFS, 3052.x = HSAR), so chapter is optional. Prefixes like 'FAR', 'DFARS', '§' and…

輸入參數datepagechaptersection_id必填

search_cfr

Search CFR

Full-text search across the Code of Federal Regulations. Returns matching sections with excerpts, headings, scores, and hierarchy. current_only=True (default) returns only text in effect now. eCFR's own "current" index still lists some superseded and removed versions, so each hit is checked against the section's version history: older copies of a section are dropped, and…

輸入參數pagepartorderquery必填titlechaptersectionsubpart另有 5 個

版本歷史

12
  1. v1.1.15最新Nov 3, 2026
  2. v1.1.14Oct 29, 2026
  3. v1.1.13Oct 23, 2026
  4. v1.1.12Oct 21, 2026
  5. v1.1.11Oct 17, 2026
  6. v1.1.10Oct 12, 2026
  7. v1.1.9Oct 11, 2026
  8. v1.1.8Oct 10, 2026
  9. v1.1.2Oct 10, 2026
  10. v1.0.13Oct 10, 2026
  11. v1.0.11Oct 9, 2026
  12. v1.0.10Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

這個評分如何計算

其他 1102tools 整合