F

Federal Regulations MCP Server

by cyanheads · io.github.cyanheads/federal-regulations-mcp-server

Search and trace US federal rules across the Federal Register (proposed/final rules and notices), the eCFR (codified, point-in-time CFR full text, locally mirrored), and Regulations.gov (rulemaking dockets and public comments) via MCP.

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-cyanheads-federal-regulations-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/federal-regulations-mcp-server"
      ],
      "env": {
        "REGULATIONS_GOV_API_KEY": "<YOUR_VALUE>",
        "REGULATIONS_RESOLVE_AGENCIES": "true",
        "REGULATIONS_CLAMP_LIMITS": "true",
        "MCP_LOG_LEVEL": "info",
        "OTEL_ENABLED": "false",
        "ECFR_BASE_URL": "https://www.ecfr.gov/api",
        "MCP_AUTH_MODE": "none",
        "MCP_HTTP_PORT": "3010",
        "ECFR_MIRROR_PATH": "./data/ecfr-mirror.sqlite",
        "ECFR_MIRROR_TITLES": "<VALUE>",
        "MCP_TRANSPORT_TYPE": "stdio",
        "STORAGE_PROVIDER_TYPE": "in-memory",
        "ECFR_MIRROR_REFRESH_CRON": "0 4 * * 0",
        "REGULATIONS_GOV_BASE_URL": "https://api.regulations.gov/v4",
        "FEDERAL_REGISTER_BASE_URL": "https://www.federalregister.gov/api/v1"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
REGULATIONS_GOV_API_KEY secret No Free api.data.gov key for Regulations.gov tools (get_docket, find_comments, and comment-count enrichment). Optional — Federal Register and eCFR tools work without it.
REGULATIONS_RESOLVE_AGENCIES No Accept Federal Register agency names and acronyms alongside slugs. Set false for slug-only filters. Default: true
REGULATIONS_CLAMP_LIMITS No Serve a per_page or max_chars above its ceiling at the ceiling, with a notice. Set false to advertise and enforce the ceiling as a schema maximum instead. Default: true
MCP_LOG_LEVEL No Log level (RFC 5424). Default: info
OTEL_ENABLED No Enable OpenTelemetry instrumentation. Default: false
ECFR_BASE_URL No eCFR API base URL. Default: https://www.ecfr.gov/api
MCP_AUTH_MODE No Auth mode: none, jwt, or oauth. Default: none
MCP_HTTP_PORT No Port for the HTTP server. Default: 3010
ECFR_MIRROR_PATH No Filesystem path for the eCFR SQLite mirror database. Default: ./data/ecfr-mirror.sqlite
ECFR_MIRROR_TITLES No Comma-separated CFR title numbers to scope the mirror (e.g., 21,40). Omit to mirror all 50 titles.
MCP_TRANSPORT_TYPE No Transport type: stdio or http. Default: stdio
STORAGE_PROVIDER_TYPE No Storage backend. Default: in-memory
ECFR_MIRROR_REFRESH_CRON No Cron expression for weekly mirror refresh (HTTP transport only). Default: 0 4 * * 0
REGULATIONS_GOV_BASE_URL No Regulations.gov API v4 base URL. Default: https://api.regulations.gov/v4
FEDERAL_REGISTER_BASE_URL No Federal Register API v1 base URL. Default: https://www.federalregister.gov/api/v1

Similar servers