us-gov-open-data-mcp
by lzinga·★ 98·Score 48
MCP server with 300+ tools for 40+ US government APIs including Treasury, FRED, Congress, FDA, CDC, and FEC.
Overview
The us-gov-open-data-mcp server provides comprehensive access to US government data through 300+ tools across 40+ APIs. It supports cross-referencing data from multiple agencies, with code mode for JavaScript execution and selective module loading. The server offers both MCP server functionality and a standalone TypeScript SDK, with disk-backed caching and rate limiting. It integrates seamlessly with VS Code Copilot, Claude Desktop, and Cursor.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need comprehensive access to US government data for economic analysis, health research, or legislative tracking, especially when working with Claude Desktop, VS Code Copilot, or Cursor.
When NOT to choose this
Avoid this if you need access to non-US government data, as it focuses exclusively on US federal sources, or if you require write capabilities to government systems (this is read-only only).
Tools this server exposes
12 tools extracted from the READMEgetObservationsgetObservations(seriesId: string, options?: object)Retrieve economic data observations from FRED API
searchBillssearchBills(query: object)Search for congressional bills by various criteria
getAdverseEventsgetAdverseEvents(drugName: string)Retrieve FDA adverse event reports for a specific drug
getLobbyingDatagetLobbyingData(year: number, quarter?: number)Access Senate lobbying disclosure data
getSpendingDatagetSpendingData(filters: object)Retrieve federal spending data from USAspending.gov
getClinicalTrialsgetClinicalTrials(drugName: string, condition?: string)Search clinical trials data by drug or condition
getCensusDatagetCensusData(dataset: string, geography: string)Retrieve demographic data from US Census
getEnvironmentalDatagetEnvironmentalData(type: string, location: string)Access environmental data from EPA or other agencies
getSECDatagetSECData(filingType: string, company: string)Retrieve SEC filing data for public companies
getWeatherDatagetWeatherData(location: string, date?: string)Access historical and current weather data from NOAA
getPatentDatagetPatentData(terms: object)Search USPTO patent database by terms or assignee
getElectionDatagetElectionData(year: number, type: string)Retrieve FEC campaign finance and election data
Note: Tools inferred from API documentation references and SDK examples in the README. The server claims 250+ tools but documentation references specific SDK functions that would become MCP tools.
Comparable tools
Installation
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 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"
}
}
}
}FAQ
- How many API keys do I need?
- 20+ APIs require no key. The remaining APIs use free keys that take under a minute to obtain.
- Can I use specific modules only?
- Yes, you can selectively load modules using the --modules flag: --modules fred,treasury,congress
On Hacker News
Recent discussion from the developer community.
- Story by Insight54 · 2026-03-03
Compare us-gov-open-data-mcp with
Last updated · Auto-generated from public README + GitHub signals.