← Back to directory
U

U.S. Government Open Data

Community
Query 40+ U.S. government data APIs through an MCP server or TypeScript SDK.
Category
Other #320 of 678
Stars
★ 114 Popular
Transport
stdio (local process)
Runtime
Node.js 22+
Credentials
Optional API key
License
MIT
Last commit
52FMRS · D

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

Reliability
7/20
Security and permissions
11/20
Maintenance
10/20
Documentation
12/20
Setup experience
12/20
Why each score
Reliability 7/20
The README describes stdio and HTTP Stream transports, tool discovery, rate limiting and retries, and source metadata; the manifest declares an npm package and stdio transport. There is no CI, committed-test, or initialization-handshake evidence, and the README's 250+ and 300+ tool counts are not independently verified by the manifest. The basic path is plausible, but evidence is limited.
Security and permissions 11/20
The manifest marks API keys as secrets and describes bearer-token authentication for non-loopback HTTP; the README mentions a WASM sandbox. The material does not explain how credentials reach upstream services, permission boundaries, HTTP authentication details, or confirmation for dangerous operations. Broad access to external APIs leaves data flows uncertain. No supplied evidence indicates a red-line issue.
Maintenance 10/20
The repository is not archived, declares an MIT license, and the manifest and npm package version are 2026.10.8. The README links documentation and invites issues or pull requests. There is no evidence of commit history, release cadence, issue response, dependency updates, or a security-response channel, so sustained maintenance and governance remain uncertain.
Documentation 12/20
The README provides installation steps, VS Code and Claude Desktop configuration examples, an SDK example, categorized data sources, documentation links, and a disclaimer about API coverage and behavior. The supplied material lacks detailed tool parameters, service limits, troubleshooting, and security data-flow guidance. Its tool-count descriptions also conflict, so the score is limited.
Setup experience 12/20
The README specifies Node.js 22+, an npx launch command, and configuration examples for two mainstream clients. The manifest lists optional keys and module-selection settings, making the setup path fairly clear. The supplied material does not establish platform compatibility or a successful connection, and it does not show HTTP transport setup, so points are deducted.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessRuns commands or codeUses the network

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.

Not for

  • Users who require every API endpoint, parameter, or result to be complete and consistent; the README notes that some endpoints may have incomplete parameter coverage or behave differently from their documentation.
  • Users seeking comprehensive coverage of non-U.S. government sources; the stated focus is U.S. government APIs, with some international APIs.

Required permissions

  • Configure a client to start the server over stdio.
  • The server accesses the relevant upstream data APIs for queries; API key requirements depend on the modules used, and some keys are optional.
  • Environment variables can configure API keys, contact emails, modules, and domains; the manifest lists them as optional.

Risks and side effects

  • Upstream APIs can have complex or inconsistent schemas. Some endpoints may return unexpected results, have incomplete parameter coverage, or behave differently from their documentation.
  • Results come from upstream APIs. Check the included source information and consult the original data for important conclusions.

Setup

Before you start

Runtime:Node.js 22+

FRED_API_KEY optionalsecret FRED (Federal Reserve Economic Data) API key; obtain one from FRED.
DATA_GOV_API_KEY optionalsecret Shared api.data.gov key for APIs including Congress, FEC, and GovInfo; obtain one from api.data.gov.
CENSUS_API_KEY optionalsecret Census Bureau API key; obtain one from the Census Bureau.
BLS_API_KEY optionalsecret Bureau of Labor Statistics API key; obtain one from BLS. It raises rate limits.
BEA_API_KEY optionalsecret Bureau of Economic Analysis API key; obtain one from BEA.
EIA_API_KEY optionalsecret Energy Information Administration API key; obtain one from EIA.
NOAA_API_KEY optionalsecret NOAA Climate Data Online token; obtain one from NOAA. Station climate data works without it.
USDA_NASS_API_KEY optionalsecret USDA NASS Quick Stats API key; obtain one from USDA NASS.
HUD_USER_TOKEN optionalsecret HUD User API token; obtain one from HUD User.
DOL_API_KEY optionalsecret Department of Labor API key; obtain one from DOL.
USPTO_API_KEY optionalsecret USPTO Open Data Portal API key; obtain one from USPTO.
LDA_API_KEY optionalsecret Senate Lobbying Disclosure API key; obtain one from lda.gov. It raises rate limits.
AQS_API_KEY optionalsecret EPA Air Quality System API key; obtain one from EPA AQS and use it with AQS_EMAIL.
Other optional settings (8)
AQS_EMAIL optional Email address registered for the EPA AQS API key.
SEC_CONTACT_EMAIL optional Contact email used in the SEC User-Agent; SEC asks automated tools to provide one.
NWS_USER_AGENT optional User-Agent for the National Weather Service API, with your contact details.
MODULES optional Comma-separated modules to load; defaults to all, for example fred,bls,treasury.
DOMAINS optional Comma-separated domains to load, for example economy,health; added to MODULES.
HIDE_UNCONFIGURED optional Set to 1 to skip modules whose required API key is not set.
TOOL_MODE optional Tool mode: full loads every tool; discovery provides only find_tools and call_tool.
MAX_RESPONSE_BYTES optional 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.

claude_desktop_config.json
{"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.

.vscode/mcp.json
{
  "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).

~/.codex/config.toml
[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).

Terminal
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.

Check that it works

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.

Troubleshooting

  1. Confirm Node.js is version 22 or later and check the client configuration's command and package name.
  2. If an API request fails, check whether that API requires a key and whether its environment variable is configured.
  3. Check whether MODULES, DOMAINS, or HIDE_UNCONFIGURED settings affect which modules load.
  4. Inspect meta.sources in results to see which upstream API requests were used.

Things to try

Once connected, you can ask your AI assistant things like:

  • Show the latest U.S. GDP, unemployment, inflation, and interest rates.
  • What do clinical trials, FDA adverse event reports, and pharma payments to doctors show for Ozempic?
  • Who sponsored the Inflation Reduction Act, and how did the vote break down?
  • How has federal healthcare spending changed over the last five years?

Use cases

Query economic indicators such as GDP, unemployment, inflation, and interest rates.
Research health topics by combining FDA reports, clinical trials, and drug payment data.
Look up congressional bills, sponsors, and votes.
Analyze federal spending, lobbying, and campaign contributions across sources.

Supported clients

VS Code
Claude Desktop
CursorPartial support

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision f69570618149 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/us-gov-open-data-mcp.svg)](https://followmcp.com/en/servers/us-gov-open-data-mcp)