Sponsored by Deepsite.site

eCFR MCP

Created By
1102tools11 days ago
MCP server for the eCFR (Electronic Code of Federal Regulations): current and historical regulatory text updated daily. FAR, DFARS, and all agency FAR supplement lookups, point-in-time comparisons, version history, and definitions. 13 tools.
Overview

eCFR MCP

A Model Context Protocol server that wraps the eCFR (Electronic Code of Federal Regulations) API as deterministic tool calls. Built for federal contracting officers, attorneys, compliance teams, regulatory affairs analysts, and anyone who needs current or historical text from the FAR, DFARS, agency FAR supplements, or any other CFR title.

13 tools covering full CFR text and structure. Hardened across multiple live audit rounds. MIT licensed. No API key required.

What it does

Current Regulatory Text

  • get_cfr_content: full current text of any CFR title, chapter, subchapter, part, subpart, or section
  • get_cfr_structure: table of contents / hierarchical structure for any CFR part
  • get_ancestry: ancestry path from a section back up to the title (useful for citation building)
  • list_sections_in_part: enumerate every section in a part with titles
  • Coverage includes FAR (48 CFR Chapter 1), DFARS (48 CFR Chapter 2), and all agency FAR supplements (NFS, AFFARS, AFARS, NMCARS, DARS, DOSAR, HHSAR, EPAAR, IAAR, etc.)

Search

  • search_cfr: full-text search across the entire CFR
  • Filter by title, agency, date range
  • Hierarchical search within a specific part or subpart

Version History and Comparison

  • get_version_history: full version history for any section showing every amendment
  • compare_versions: side-by-side comparison of two versions of a section
  • find_recent_changes: list sections amended after a given date
  • Returns effective dates and Federal Register references for every change

Point-in-Time Lookups

  • get_cfr_content with historical date parameter: text of a section as it stood on a specific date
  • Trace evolution of a clause over time
  • Critical for legacy contract administration where the original FAR clause text governs

FAR-Specific Tools

  • lookup_far_clause: pull a specific FAR clause (e.g. 52.212-4, 52.219-14)
  • find_far_definition: search FAR Part 2 definitions
  • Provision/clause matrices and applicability

Corrections

  • get_corrections: recent corrections published in the Federal Register
  • Identify regulations with pending or recent corrections

Agency Lookups

  • list_agencies: every agency with regulations in the CFR
  • get_latest_date: most recent eCFR update timestamp

Use cases

  • Look up exact FAR clause text for a contract file or contract write-up
  • Build defensible compliance memos that cite current and prior CFR text
  • Track when a FAR/DFARS section was amended and what it said before
  • Compare current FAR text to what was in force at award (for protest defense or contract interpretation disputes)
  • Find every CFR section affected by a specific Federal Register rule
  • Pull definitions from FAR 2.101 and DFARS 202.101 with surrounding context

Compatibility

  • Claude Desktop (one-click .mcpb install or Copy JSON)
  • Codex (ChatGPT) via TOML config or codex mcp add
  • Gemini CLI via ~/.gemini/settings.json
  • Copilot via .vscode/mcp.json in VS Code
  • Claude Code, Cursor, Cline, Zed, Continue, and any other MCP-compatible client

Install

No API key required.

{
  "mcpServers": {
    "ecfr": {
      "command": "uvx",
      "args": ["--refresh-package", "ecfr-mcp", "--from", "ecfr-mcp", "ecfr-mcp"]
    }
  }
}

TOML config (Codex):

[mcp_servers.ecfr]
command = "uvx"
args = ["--refresh-package", "ecfr-mcp", "--from", "ecfr-mcp", "ecfr-mcp"]

PyPI: pip install ecfr-mcp or uvx ecfr-mcp

Example prompts

  • "Read me the current text of FAR 52.212-4."
  • "What did FAR 15.404-4 say on January 1, 2022 vs today?"
  • "Pull the full version history for FAR 19.808-1 since 2015."
  • "Find the FAR definition of 'commercial product'."
  • "Show me every section in DFARS subpart 252.227 with their titles."
  • "Search the CFR for the phrase 'cybersecurity maturity model certification'."
  • "What FAR sections were amended in the last 90 days?"
  • "Compare the current text of FAR 16.601 to what it said on January 1, 2020."
  • "Pull the ancestry path for DFARS 252.204-7012 (which subpart, part, chapter, title)."

Hardening

Live-audited against the production eCFR API across multiple rounds. Handles XML parsing for full-text sections (FAR 2.101 alone is ~109KB), historical date resolution, version diff calculation, and pagination for large search results. Pydantic models use extra="forbid" to surface schema drift. Tested across the full FAR/DFARS/agency-supplement hierarchy.

Source

Server Config

{
  "mcpServers": {
    "ecfr": {
      "command": "uvx",
      "args": [
        "--refresh-package",
        "ecfr-mcp",
        "--from",
        "ecfr-mcp",
        "ecfr-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
DeepChatYour AI Partner on Desktop
Tavily Mcp
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Serper MCP ServerA Serper MCP Server
WindsurfThe new purpose-built IDE to harness magic