US Gov Open Data

v1.0.0Search & Data Extractionstable

MCP server + TypeScript SDK for 40+ U.S. government data APIs — 250+ tools. Treasury, FRED, Congress, FDA, CDC, FEC, lobbying, and many more. Works with VS Code Copilot, Claude Desktop, Cursor.

apicdcclaudecongressfda
Share:
100
Stars
0
Downloads
0
Weekly
0/5

What is US Gov Open Data?

US Gov Open Data is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server + typescript sdk for 40+ u.s. government data apis — 250+ tools. treasury, fred, congress, fda, cdc, fec, lobbying, and many more. works with vs code copilot, claude desktop, cursor.

MCP server + TypeScript SDK for 40+ U.S. government data APIs — 250+ tools. Treasury, FRED, Congress, FDA, CDC, FEC, lobbying, and many more. Works with VS Code Copilot, Claude Desktop, Cursor.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server + TypeScript SDK for 40+ U.S. government data API

Use Cases

Access 40+ U.S. government data APIs with 250+ tools. Query Treasury, FRED, Congress, FDA, CDC, and FEC data through natural language.
lzinga

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx us-gov-open-data

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use US Gov Open Data

US Gov Open Data MCP Server is a TypeScript MCP server and SDK that provides 300+ tools covering 40+ U.S. government data APIs from agencies including Treasury, the Federal Reserve (FRED), Congress, FDA, CDC, FEC, HUD, USPTO, and many more. It lets AI assistants query economic indicators, track legislation, analyze health and pharmaceutical data, monitor lobbying disclosures, and correlate data across agencies — all through natural language, with most APIs requiring no key and the rest using free credentials obtainable in under a minute.

Prerequisites

  • Node.js 18+ installed
  • An MCP-compatible client such as Claude Desktop, VS Code Copilot, or Cursor
  • A free FRED API key from https://fredaccount.stlouisfed.org/login/secure/ (for economic data)
  • A free Data.gov API key from https://api.data.gov/signup/ (for Data.gov portal access)
  • No other API keys required — 20+ agencies provide keyless access
1

Get your free API keys

Register for a FRED API key at the St. Louis Fed and a Data.gov API key. Both are free and available instantly. Most other APIs in the collection require no key at all.

# FRED API key: https://fredaccount.stlouisfed.org/login/secure/
# Data.gov API key: https://api.data.gov/signup/
2

Configure Claude Desktop

Add the server to your claude_desktop_config.json with your API keys in the env block. The -y flag ensures npx always pulls the latest version.

{
  "mcpServers": {
    "us-gov-open-data": {
      "command": "npx",
      "args": ["-y", "us-gov-open-data-mcp"],
      "env": {
        "FRED_API_KEY": "your_fred_api_key_here",
        "DATA_GOV_API_KEY": "your_data_gov_key_here"
      }
    }
  }
}
3

Configure VS Code Copilot

For VS Code users, add the server to .vscode/mcp.json in your workspace or user settings.

{
  "servers": {
    "us-gov-open-data": {
      "command": "npx",
      "args": ["-y", "us-gov-open-data-mcp"],
      "env": {
        "FRED_API_KEY": "your_fred_api_key_here",
        "DATA_GOV_API_KEY": "your_data_gov_key_here"
      }
    }
  }
}
4

Restart your MCP client and verify tools load

Restart Claude Desktop or VS Code after updating the configuration. The server loads 300+ tools across economic, health, legislative, energy, and financial domains. Tool loading may take a few seconds on first startup.

5

Query your first government dataset

Ask Claude to retrieve economic data or track legislation. The server caches responses to disk for performance and uses WASM sandboxing for safe cross-agency data processing.

US Gov Open Data Examples

Client configuration

Claude Desktop configuration for US Gov Open Data MCP Server.

{
  "mcpServers": {
    "us-gov-open-data": {
      "command": "npx",
      "args": ["-y", "us-gov-open-data-mcp"],
      "env": {
        "FRED_API_KEY": "your_fred_api_key_here",
        "DATA_GOV_API_KEY": "your_data_gov_key_here"
      }
    }
  }
}

Prompts to try

Example prompts spanning economic, health, legislative, and financial data available through the server.

- "What is the current US unemployment rate and how has it trended over the past 12 months? Use FRED data."
- "Search Congress for all bills related to artificial intelligence introduced in the 119th Congress"
- "Show me FDA adverse event reports for metformin in the last 6 months"
- "Who are the top 10 lobbying spenders in the healthcare sector this year according to FEC data?"
- "Compare US GDP growth, CPI inflation, and the federal funds rate over the last 5 years"

Troubleshooting US Gov Open Data

FRED API calls fail with 'Bad Request' or 'API key not valid'

Verify FRED_API_KEY is set correctly and has no extra spaces. Keys are sent to api.stlouisfed.org — check that your network allows outbound HTTPS to that domain. You can test your key directly: curl 'https://api.stlouisfed.org/fred/series?series_id=GDP&api_key=YOUR_KEY&file_type=json'.

Server times out on first startup with many tools

The server registers 300+ tools on startup which can take several seconds. Increase Claude Desktop's MCP server timeout if it has that option, or wait for the initial tool-loading pass to complete before sending queries. Subsequent startups are faster due to disk caching.

npx us-gov-open-data-mcp fails to install or returns module not found

Ensure Node.js 18+ is installed. Try clearing the npx cache: npx --yes us-gov-open-data-mcp. If the issue persists, install globally: npm install -g us-gov-open-data-mcp and update the command in your config to us-gov-open-data-mcp (without npx).

Frequently Asked Questions about US Gov Open Data

What is US Gov Open Data?

US Gov Open Data is a Model Context Protocol (MCP) server that mcp server + typescript sdk for 40+ u.s. government data apis — 250+ tools. treasury, fred, congress, fda, cdc, fec, lobbying, and many more. works with vs code copilot, claude desktop, cursor. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install US Gov Open Data?

Follow the installation instructions on the US Gov Open Data GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with US Gov Open Data?

US Gov Open Data works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is US Gov Open Data free to use?

Yes, US Gov Open Data is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "us-gov-open-data": { "command": "npx", "args": ["-y", "us-gov-open-data"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use US Gov Open Data?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides