Ecfr MCP server
{
"mcpServers": {
"ecfr": {
"command": "uvx",
"args": [
"ecfr-mcp",
"--refresh-package",
"ecfr-mcp",
"--from",
"ecfr-mcp"
],
"env": {
"SAM_API_KEY": "<sam_api_key>",
"DEMO_KEY": "<demo_key>"
}
}
}
}{
"mcpServers": {
"ecfr": {
"command": "uvx",
"args": [
"ecfr-mcp",
"--refresh-package",
"ecfr-mcp",
"--from",
"ecfr-mcp"
],
"env": {
"SAM_API_KEY": "<sam_api_key>",
"DEMO_KEY": "<demo_key>"
}
}
}
}{
"mcpServers": {
"ecfr": {
"command": "uvx",
"args": [
"ecfr-mcp",
"--refresh-package",
"ecfr-mcp",
"--from",
"ecfr-mcp"
],
"env": {
"SAM_API_KEY": "<sam_api_key>",
"DEMO_KEY": "<demo_key>"
}
}
}
}{
"servers": {
"ecfr": {
"command": "uvx",
"args": [
"ecfr-mcp",
"--refresh-package",
"ecfr-mcp",
"--from",
"ecfr-mcp"
],
"env": {
"SAM_API_KEY": "${input:sam_api_key}",
"DEMO_KEY": "${input:demo_key}"
}
}
},
"inputs": [
{
"id": "sam_api_key",
"type": "promptString",
"description": "Sam api key",
"password": true
},
{
"id": "demo_key",
"type": "promptString",
"description": "Demo key",
"password": true
}
]
}{
"mcpServers": {
"ecfr": {
"command": "uvx",
"args": [
"ecfr-mcp",
"--refresh-package",
"ecfr-mcp",
"--from",
"ecfr-mcp"
],
"env": {
"SAM_API_KEY": "<sam_api_key>",
"DEMO_KEY": "<demo_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall uvx ecfr-mcpversion 1.0.10
What it does
This server exposes the Electronic Code of Federal Regulations (eCFR), including FAR, DFARS, and agency supplements, through deterministic API calls. It is for developers building federal contracting applications who need real-time access to regulatory text rather than cached or recalled information.
- Look up specific Federal Acquisition Regulation (FAR) clauses and sections to verify contract requirements.
- Search eCFR text to find applicable regulations for a given contracting scenario or policy question.
- Retrieve DFARS requirements and agency-specific supplements when handling defense or civilian agency contracts.
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.