Skip to content
MCP server
Registry

U.S. Government Open Data MCP Server

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

U.S. Government Open Data scores 75 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Data and analytics. GitHub shows 114 stars. Package registries report about 486 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by lzingaMITTypeScript114 stars
Trust score
75Good
Trust score 75 of 100, Good

Good trust

75 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 75 comes from

22 + 20 + 12 + 10 + 4 + 7 = 75. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity12 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 12 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "lzinga-us-gov-open-data-mcp": {      "command": "npx",      "args": [        "-y",        "us-gov-open-data-mcp@2026.10.8"      ],      "env": {        "DATA_GOV_API_KEY": "YOUR_DATA_GOV_API_KEY",        "FRED_API_KEY": "YOUR_FRED_API_KEY",        "CENSUS_API_KEY": "YOUR_CENSUS_API_KEY",        "BLS_API_KEY": "YOUR_BLS_API_KEY",        "BEA_API_KEY": "YOUR_BEA_API_KEY",        "EIA_API_KEY": "YOUR_EIA_API_KEY",        "NOAA_API_KEY": "YOUR_NOAA_API_KEY",        "USDA_NASS_API_KEY": "YOUR_USDA_NASS_API_KEY",        "HUD_USER_TOKEN": "YOUR_HUD_USER_TOKEN",        "DOL_API_KEY": "YOUR_DOL_API_KEY",        "USPTO_API_KEY": "YOUR_USPTO_API_KEY",        "LDA_API_KEY": "YOUR_LDA_API_KEY",        "AQS_API_KEY": "YOUR_AQS_API_KEY",        "AQS_EMAIL": "",        "SEC_CONTACT_EMAIL": "",        "NWS_USER_AGENT": "",        "MODULES": "",        "DOMAINS": "",        "HIDE_UNCONFIGURED": "",        "TOOL_MODE": "full",        "MAX_RESPONSE_BYTES": ""      }    }  }}

Environment variables

NameRequiredNotes
DATA_GOV_API_KEYSecretOptionalapi.data.gov key, shared by Congress, FEC, GovInfo, FBI, NREL, Regulations.gov, College Scorecard, USDA FoodData, openFDA and USGS Water
FRED_API_KEYSecretOptionalFRED (Federal Reserve Economic Data) API key
CENSUS_API_KEYSecretOptionalCensus Bureau API key
BLS_API_KEYSecretOptionalBureau of Labor Statistics API key (optional; raises rate limits)
BEA_API_KEYSecretOptionalBureau of Economic Analysis API key
EIA_API_KEYSecretOptionalEnergy Information Administration API key
NOAA_API_KEYSecretOptionalNOAA Climate Data Online token (station climate data works without it)
USDA_NASS_API_KEYSecretOptionalUSDA NASS Quick Stats API key
HUD_USER_TOKENSecretOptionalHUD User API token
DOL_API_KEYSecretOptionalDepartment of Labor API key
USPTO_API_KEYSecretOptionalUSPTO Open Data Portal API key
LDA_API_KEYSecretOptionalSenate Lobbying Disclosure (lda.gov) API key (optional; raises rate limits)
AQS_API_KEYSecretOptionalEPA Air Quality System API key (used with AQS_EMAIL)
AQS_EMAILOptionalEmail address registered for the EPA AQS API key
SEC_CONTACT_EMAILOptionalYour email for the SEC User-Agent; SEC asks automated tools for a contact and may block requests without one
NWS_USER_AGENTOptionalUser-Agent for the National Weather Service API, with your contact details (a default is sent otherwise)
MODULESOptionalComma-separated modules to load (default: all), e.g. 'fred,bls,treasury'
DOMAINSOptionalComma-separated domains to load, e.g. 'economy,health' (added to MODULES)
HIDE_UNCONFIGUREDOptionalSet to 1 to skip modules whose required API key is not set
TOOL_MODEOptional'full' (every tool) or 'discovery' (find_tools and call_tool only)
MAX_RESPONSE_BYTESOptionalLargest tool result in bytes before rows are trimmed (default 150000)

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

US Government Open Data MCP

MCP Server + TypeScript SDK for 40+ U.S. Government APIs

npm version npm downloads License: MIT

300+ tools covering economic, fiscal, health, education, energy, environment, lobbying, housing, patents, safety, banking, consumer protection, workplace safety, transportation, seismic, clinical trials, pharma payments, research funding, procurement, and legislative data.

20+ APIs require no key · The rest use free keys that take under a minute to get

Getting Started · API Reference · Documentation


Features

  • 300+ tools across 40+ government APIs — economic, health, legislative, financial, environmental, and more
  • Cross-referencing — built-in instructions guide the LLM to combine data from multiple agencies (e.g., FDA adverse events + lobbying spend + campaign contributions)
  • Code mode — WASM-sandboxed JavaScript execution reduces context window usage by 98-100% for large responses
  • Selective loading — load only the modules or domains you need: --modules fred,treasury,congress or --domains economy,health
  • Discovery mode — --tool-mode discovery lists 4 tools instead of 350; the model searches for the one it needs
  • Sources on every result — meta.sources lists the upstream API requests behind each answer
  • Dual transport — stdio for desktop clients, HTTP Stream for web/remote (bearer-token auth off loopback)
  • TypeScript SDK — every API is importable as a standalone typed client, no MCP required
  • Disk-backed caching — responses cached to disk, survives restarts
  • Rate limiting + retry — token-bucket rate limiter with exponential backoff on 429/503

Quick Start

MCP Server

Requires Node.js 22 or later.

npx us-gov-open-data-mcp

Add to .vscode/mcp.json for VS Code / Copilot:

{
  "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"
      }
    }
  }
}

Add to claude_desktop_config.json for Claude Desktop:

{
  "mcpServers": {
    "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"
      }
    }
  }
}

Example Prompts

Once connected, ask your AI assistant natural language questions:

Economic: "What's the current state of the U.S. economy? Show me GDP, unemployment, inflation, and interest rates."

Health: "Show me the adverse event profile for Ozempic including clinical trials, FDA reports, and pharma payments to doctors."

Legislative: "What happened with the Inflation Reduction Act? Who sponsored it, how did the vote break down by party?"

Follow the money: "Which banking PACs gave money to members of the Senate Banking Committee, and how did those members vote on banking deregulation?"

Cross-reference: "How has federal spending on healthcare changed over the last 5 years, and what health outcomes has it produced?"

TypeScript SDK

npm install us-gov-open-data-mcp
import { getObservations } from "us-gov-open-data-mcp/sdk/fred";
import { searchBills } from "us-gov-open-data-mcp/sdk/congress";

const gdp = await getObservations("GDP", { sort: "desc", limit: 5 });

No MCP server required. All functions include caching, retry, and rate limiting.

Documentation

Full documentation at lzinga.github.io/us-gov-open-data-mcp

Getting StartedMCP setup, SDK install, client configs
API KeysWhich APIs need keys, where to get them
Data SourcesAll 40+ APIs grouped by category
API ReferenceAuto-generated from TypeScript — every function and type
ExamplesSDK code, MCP prompts, analysis showcases
ArchitectureHow the system works
Adding ModulesAdd a new API — just create a folder

Data Sources

CategoryAPIs
EconomicTreasury, FRED, BLS, BEA, EIA
LegislativeCongress.gov, Federal Register, GovInfo, Regulations.gov
FinancialFEC, Senate Lobbying, SEC, FDIC, CFPB
Spending & ProcurementUSAspending, Open Payments, GSA CALC+
Health & SafetyCDC, FDA, CMS, ClinicalTrials.gov, NIH, NHTSA, DOL
Environment & WeatherEPA, EPA AQS, NOAA, NWS, NREL, USGS
JusticeFBI Crime Data, DOJ News
Education & ResearchNAEP, College Scorecard, USPTO
DemographicsCensus, HUD, FEMA
OtherBTS, USDA NASS, USDA FoodData, World Bank

Disclaimer

This project integrates a significant number of government APIs, many of which have large, complex, or inconsistently documented schemas. AI is used as a tool throughout this project to help parse API documentation, generate type definitions, and scaffold tool implementations — making it possible to cover this much surface area and get people access to government data faster than would otherwise be feasible. While every effort has been made to ensure accuracy, some endpoints may return unexpected results, have incomplete parameter coverage, or behave differently than documented.

This is a community-driven effort — if you find something that's broken or could be improved, please open an issue or submit a PR. Contributions that fix edge cases, improve schema accuracy, or expand coverage are especially welcome. The goal is to make U.S. government data as accessible and reliable as possible, together.

All data is sourced from official U.S. government and international APIs — the server does not generate, modify, or editorialize any data.

License

MIT

Frequently asked questions

What is U.S. Government Open Data MCP Server?

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

How do I install U.S. Government Open Data MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. U.S. Government Open Data MCP Server runs locally from the npm package us-gov-open-data-mcp with the command npx -y us-gov-open-data-mcp@2026.10.8.

Is U.S. Government Open Data MCP Server free and open source?

Yes. U.S. Government Open Data MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does U.S. Government Open Data MCP Server support remote (HTTP) connections?

No remote endpoint is listed for U.S. Government Open Data MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is U.S. Government Open Data MCP Server's trust score calculated?

U.S. Government Open Data MCP Server scores 75 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server