MCP server · npm · MIT

U.S. government economic data MCP server

data-analyst-mcp is an open-source Model Context Protocol (MCP) server that gives Claude, Cursor, VS Code, Codex and any other MCP client access to official U.S. government data from 77 federal sources, including FRED, BLS, BEA, Census, Treasury, CDC, FDA and EPA. It asks the questions that change the answer first, fetches straight from the agency, and cites every number.

Install

Requires Node.js 22 or later. Most sources need no API key.

Claude Code

claude mcp add data-analyst -- npx -y data-analyst-mcp

Claude Desktop, Cursor and other MCP clients

{
  "mcpServers": {
    "data-analyst": { "command": "npx", "args": ["-y", "data-analyst-mcp"] }
  }
}

Free API keys raise rate limits for FRED, BLS, BEA, Census and api.data.gov sources. Store one with npx -y data-analyst-mcp setup <source>; the key never appears in a tool result.

Questions it answers

What makes it different

Data sources

FRED · BLS · BEA · Census · Treasury and Treasury yields · Federal Reserve Board · New York Fed · Philadelphia Fed · USAspending · Congress.gov · Federal Register · GovInfo · SEC · FEC · FDIC · CFPB · CDC · CMS · Medicaid · FDA · NIH · ClinicalTrials.gov · EPA and EPA AQS · NOAA · NWS · USGS · EIA · NREL · USDA NASS, FoodData and Outlook · HUD · IPUMS · OPM · DOL · IRS SOI · SBA · BTS · NHTSA · FBI · BJS · USPTO · NCES · NAEP · World Bank and more (77 in all).