U.S. Government Open Data MCP server
io.github.lzinga/us-gov-open-data-mcp·v2026.10.8·112 starsOpen data from 40+ U.S. government APIs: economy, spending, Congress, health, energy, disasters
112 stars663 downloads/wk
Reviews
Write oneNobody has reviewed U.S. Government Open Data yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
U.S. Government Open Data tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-13 · same rubric, same numbers if you re-run it
- Code scan435 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How U.S. Government Open Data compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 65% of 48,255 servers
- GitHub stars
- 112
- more than 95% of 28,688 servers
- Downloads a week
- 663
- more than 91% of 12,191 servers with a package
Install U.S. Government Open Data in Claude Code, Cursor or VS Code
Runs npx -y us-gov-open-data-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add us-gov-open-data-mcp -- npx -y us-gov-open-data-mcp
What the publisher says
From the U.S. Government Open Data repository's README, as published. We do not edit it. Read it on GitHub
US Government Open Data MCP
MCP Server + TypeScript SDK for 40+ U.S. Government APIs
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-mcpAdd 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 claudedesktopconfig.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-mcpimport { 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 });Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
U.S. Government Open Data: common questions
- Is U.S. Government Open Data MCP server safe?
- Mostly: it is graded B (83/100). Read the U.S. Government Open Data safety report
- How do I install U.S. Government Open Data?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does U.S. Government Open Data need an API key?
- Yes. The registry entry asks for
DATA_GOV_API_KEY,FRED_API_KEY,CENSUS_API_KEY,BLS_API_KEYand 9 more. - Is U.S. Government Open Data maintained?
- The last commit was 22 days ago (2026-10-13). The latest release is v2026.10.8.
- How does U.S. Government Open Data compare with other MCP servers?
- safety score 83/100 (higher than 65% of 48,255 servers); github stars 112 (more than 95% of 28,688 servers); downloads a week 663 (more than 91% of 12,191 servers with a package). Full comparison.