Data & analytics / U.S. Government Open Data

U.S. Government Open Data

io.github.lzinga/us-gov-open-data-mcp · v2026.10.8

Open data from 40+ U.S. government APIs: economy, spending, Congress, health, energy, disasters

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #66 of 435 Data & analytics servers on Socketlist by score, with 112 GitHub stars and a last code push 27d ago.

Install

npx -y us-gov-open-data-mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect U.S. Government Open Data to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env DATA_GOV_API_KEY=<data_gov_api_key> --env FRED_API_KEY=<fred_api_key> --env CENSUS_API_KEY=<census_api_key> --env BLS_API_KEY=<bls_api_key> --env BEA_API_KEY=<bea_api_key> --env EIA_API_KEY=<eia_api_key> --transport stdio u-s-government-open-data -- npx -y us-gov-open-data-mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "u-s-government-open-data": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "us-gov-open-data-mcp"
      ],
      "env": {
        "DATA_GOV_API_KEY": "${DATA_GOV_API_KEY}",
        "FRED_API_KEY": "${FRED_API_KEY}",
        "CENSUS_API_KEY": "${CENSUS_API_KEY}",
        "BLS_API_KEY": "${BLS_API_KEY}",
        "BEA_API_KEY": "${BEA_API_KEY}",
        "EIA_API_KEY": "${EIA_API_KEY}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "u-s-government-open-data": {
      "command": "npx",
      "args": [
        "-y",
        "us-gov-open-data-mcp"
      ],
      "env": {
        "DATA_GOV_API_KEY": "${env:DATA_GOV_API_KEY}",
        "FRED_API_KEY": "${env:FRED_API_KEY}",
        "CENSUS_API_KEY": "${env:CENSUS_API_KEY}",
        "BLS_API_KEY": "${env:BLS_API_KEY}",
        "BEA_API_KEY": "${env:BEA_API_KEY}",
        "EIA_API_KEY": "${env:EIA_API_KEY}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
DATA_GOV_API_KEYNoYesapi.data.gov key, shared by Congress, FEC, GovInfo, FBI, NREL, Regulations.gov, College Scorecard, USDA FoodData, openFDA and USGS Water
FRED_API_KEYNoYesFRED (Federal Reserve Economic Data) API key
CENSUS_API_KEYNoYesCensus Bureau API key
BLS_API_KEYNoYesBureau of Labor Statistics API key (optional; raises rate limits)
BEA_API_KEYNoYesBureau of Economic Analysis API key
EIA_API_KEYNoYesEnergy Information Administration API key
NOAA_API_KEYNoYesNOAA Climate Data Online token (station climate data works without it)
USDA_NASS_API_KEYNoYesUSDA NASS Quick Stats API key
HUD_USER_TOKENNoYesHUD User API token
DOL_API_KEYNoYesDepartment of Labor API key
USPTO_API_KEYNoYesUSPTO Open Data Portal API key
LDA_API_KEYNoYesSenate Lobbying Disclosure (lda.gov) API key (optional; raises rate limits)

9 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "us-gov-open-data-mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars112
npm weekly downloads662
Last push27d ago
LicenceMIT
Open issues0
SECURITY.mdNo
LanguageTypeScript
Latest version published2026-10-08

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers compare all →

meta-data-mcp

Score 78

Query 76 open data APIs — government, science, finance, environment, and more.

★ 5MITpushed 23d ago
Data & analyticsFinance & commerce

US Government Data

Score 70

US government open-data APIs as MCP tools: EPA, FEMA, USGS, NOAA, FDIC, HUD, CMS and more.

★ 0↓ 557/wkMITpushed 27d ago
Data & analytics

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free