Best for
- Researchers, journalists, and analysts who want to query multiple U.S. government data sources through a conversational AI client.
- Developers who want to call the data APIs through the TypeScript SDK without using the MCP server.
This community project provides an MCP server and TypeScript SDK for broad access to U.S. government open data, including cross-source queries. Its README cautions that some API endpoints may have incomplete parameter coverage or behave differently from their documentation; verify important data against upstream sources.
Strongest · Setup experience 12/20 Weakest · Reliability 7/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 22+
FRED_API_KEY
FRED (Federal Reserve Economic Data) API key; obtain one from FRED.
DATA_GOV_API_KEY
Shared api.data.gov key for APIs including Congress, FEC, and GovInfo; obtain one from api.data.gov.
CENSUS_API_KEY
Census Bureau API key; obtain one from the Census Bureau.
BLS_API_KEY
Bureau of Labor Statistics API key; obtain one from BLS. It raises rate limits.
BEA_API_KEY
Bureau of Economic Analysis API key; obtain one from BEA.
EIA_API_KEY
Energy Information Administration API key; obtain one from EIA.
NOAA_API_KEY
NOAA Climate Data Online token; obtain one from NOAA. Station climate data works without it.
USDA_NASS_API_KEY
USDA NASS Quick Stats API key; obtain one from USDA NASS.
HUD_USER_TOKEN
HUD User API token; obtain one from HUD User.
DOL_API_KEY
Department of Labor API key; obtain one from DOL.
USPTO_API_KEY
USPTO Open Data Portal API key; obtain one from USPTO.
LDA_API_KEY
Senate Lobbying Disclosure API key; obtain one from lda.gov. It raises rate limits.
AQS_API_KEY
EPA Air Quality System API key; obtain one from EPA AQS and use it with AQS_EMAIL.
AQS_EMAIL
Email address registered for the EPA AQS API key.
SEC_CONTACT_EMAIL
Contact email used in the SEC User-Agent; SEC asks automated tools to provide one.
NWS_USER_AGENT
User-Agent for the National Weather Service API, with your contact details.
MODULES
Comma-separated modules to load; defaults to all, for example fred,bls,treasury.
DOMAINS
Comma-separated domains to load, for example economy,health; added to MODULES.
HIDE_UNCONFIGURED
Set to 1 to skip modules whose required API key is not set.
TOOL_MODE
Tool mode: full loads every tool; discovery provides only find_tools and call_tool.
MAX_RESPONSE_BYTES
Maximum result size in bytes before rows are trimmed; defaults to 150000.
Requires Node.js 22 or later. Add the example configuration to VS Code's .vscode/mcp.json or Claude Desktop's claude_desktop_config.json, then set API keys as needed. FRED_API_KEY and DATA_GOV_API_KEY are examples; the manifest marks these keys as optional.
{"servers":{"us-gov-open-data":{"command":"npx","args":["-y","us-gov-open-data-mcp"],"env":{"FRED_API_KEY":"your_key","DATA_GOV_API_KEY":"your_key"}}}}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"us-gov-open-data": {
"command": "npx",
"args": [
"-y",
"us-gov-open-data-mcp"
],
"env": {
"FRED_API_KEY": "your_key",
"DATA_GOV_API_KEY": "your_key"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.us-gov-open-data] command = "npx" args = ["-y", "us-gov-open-data-mcp"] [mcp_servers.us-gov-open-data.env] FRED_API_KEY = "your_key" DATA_GOV_API_KEY = "your_key"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add us-gov-open-data -e FRED_API_KEY=your_key -e DATA_GOV_API_KEY=your_key -- npx -y us-gov-open-data-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
After connecting, confirm the server's tools appear in your client’s tool list. You can also ask for the latest U.S. GDP data and check that the server returns a result.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
U.S. Government Open Data is an MCP server and TypeScript SDK covering more than 40 U.S. government data APIs across areas including the economy, fiscal data, Congress, health, energy, and disasters. The README says it offers 300+ tools, while the repository description says 250+. It supports selective loading by module or domain and includes upstream API source information with results.
Manage UniFi Network controllers through MCP.
Manage UniFi networks and devices through MCP.
Ask your affiliate networks in plain English from your AI workspace.
Run 119 Horosa astrology and metaphysics techniques locally.
Source revision f69570618149 Data synced 2026-12-05 Read the FMRS scoring method Markdown