US Government Data
us-govdata-mcp
用于美国政府数据的 MCP 服务器 — 从 Claude、Cursor 或任何 Model Context Protocol 客户端搜索建筑许可证、联邦合同机会(SAM.gov)和国家医疗保健提供者注册中心(NPI/NPPES)。
所有三个数据源均来自官方政府出版物(城市开放数据门户、SAM.gov 的公共数据提取、CMS NPPES API)——无需 HTML 抓取、无需登录、无需脆弱的 CSS 选择器。繁重的工作由三个生产级 Apify Actor 完成,这些 Actor 在您自己的 Apify 账户上运行。
30 秒内试用 — 无需账户,无需付费
在您决定是否值得使用 API 令牌之前,无需任何配置即可运行:
{
"mcpServers": {
"us-govdata": {
"command": "npx",
"args": ["-y", "github:CBLU2005/us-govdata-mcp"],
"env": { "APIFY_DRY_RUN": "1" }
}
}
}这就是完整的设置。在干运行模式下,每个工具都会返回逼真的示例记录以及它本应发送的精确 Apify API 请求——这样您就可以看到数据的真实结构,确认您的代理正确调用了工具,并阅读每个工具描述中的定价说明,而无需创建账户、粘贴令牌或花费任何费用。
向您的代理询问类似 "查找本月在奥斯汀签发的价值超过 50 万美元的建筑许可证" 这样的问题,并观察工具调用的完整过程。当您需要实时数据时,删除 APIFY_DRY_RUN 行并添加 APIFY_TOKEN(如下所示)。
Related MCP server: DOL WHD MCP
工具
工具 | 搜索内容 | 典型筛选条件 | 价格* |
| 来自 10 个官方城市/县开放数据源的建筑许可证(纽约市、芝加哥、洛杉矶、奥斯汀、旧金山、新奥尔良、巴吞鲁日、马里兰州蒙哥马利县、弗吉尼亚州诺福克)——许可证类型、状态、估价、承包商姓名/执照 | 城市、签发日期范围、许可证类型、全文搜索、最低估价 | $0.005 / 条记录 |
| 来自 SAM.gov 的联邦 RFP、招标书、寻找来源和授标通知——包含合同官员的电子邮件和电话 | 关键词、NAICS、通知类型、预留类别(8A、WOSB、HUBZone...)、机构、州、日期 | $0.004 / 条记录 |
| 官方 CMS NPI 注册中心,包含 800 多万美国医疗提供者和医疗机构——专业、执照、执业电话/传真、授权官员 | 专业、州、城市、邮政编码(通配符)、提供者/机构名称 | $0.002 / 条记录 |
* 诚实的定价说明: 这些工具运行由 CBLU 发布的付费、按结果计费的 Apify Actor。您的 Apify 账户仅按实际返回的记录收费——没有订阅费或启动费。每个工具默认每次调用返回 25 条结果,因此一次典型调用的成本不到一分钱(25 条许可证 ≈ $0.13;25 条合同通知 ≈ $0.10;25 条提供者信息 ≈ $0.05)。Apify 的免费计划包含每月平台积分,足以让您免费随意使用这些工具。包含完整定价详情的 Actor 页面:
快速开始
1. 获取 Apify 令牌(免费,约 2 分钟)
在 https://console.apify.com/sign-up 注册(免费计划即可)。
从 https://console.apify.com/settings/integrations 复制您的 API 令牌。
服务器无需令牌即可启动并列出其工具——令牌仅在实际调用工具时才需要。
2. 将服务器添加到您的 MCP 客户端
Claude Desktop(claude_desktop_config.json → 设置 → 开发者 → 编辑配置):
{
"mcpServers": {
"us-govdata": {
"command": "npx",
"args": ["-y", "github:CBLU2005/us-govdata-mcp"],
"env": {
"APIFY_TOKEN": "your_apify_token_here"
}
}
}
}Claude Code:
claude mcp add us-govdata -e APIFY_TOKEN=your_apify_token_here -- npx -y github:CBLU2005/us-govdata-mcpCursor / Windsurf / 其他 MCP 客户端(与 Claude Desktop 格式相同):
{
"mcpServers": {
"us-govdata": {
"command": "npx",
"args": ["-y", "github:CBLU2005/us-govdata-mcp"],
"env": { "APIFY_TOKEN": "your_apify_token_here" }
}
}
}从本地克隆启动:
git clone https://github.com/CBLU2005/us-govdata-mcp.git
cd us-govdata-mcp
npm install && npm run build
# then point your client at: node /path/to/us-govdata-mcp/dist/index.jsDocker:
docker build -t us-govdata-mcp .
docker run -i --rm -e APIFY_TOKEN=your_apify_token_here us-govdata-mcp # stdio
docker run --rm -p 3000:3000 -e APIFY_TOKEN=... us-govdata-mcp --http 3000 # Streamable HTTP3. 向您的 AI 代理询问类似问题
"查找本月在奥斯汀签发的价值超过 50 万美元的新建建筑许可证,并包含承包商名称。"
"是否有任何活跃的小型企业预留网络安全招标,且响应截止日期在今天之后?请包含合同官员的电子邮件。"
"列出大迈阿密地区(邮政编码 331)的牙医及其执业电话号码。"*
传输方式
stdio(默认)——桌面 MCP 客户端使用的传输方式:
us-govdata-mcpStreamable HTTP——无状态端点,位于
POST /mcp,健康检查位于GET /healthz:us-govdata-mcp --http 3000(或设置MCP_HTTP_PORT=3000)
环境变量
变量 | 必需 | 用途 |
| 用于工具调用 | 您的 Apify API 令牌。服务器启动和工具列表无需此令牌即可工作;在设置令牌之前,工具调用将返回设置指南。 |
| 否 | 设置为 |
| 否 | 在此端口上以 Streamable HTTP 模式启动,而不是 stdio。 |
工作原理
每个工具都会验证其参数(zod),构建 Actor 输入,并通过 Authorization: Bearer 标头(绝不放在 URL 中)使用您的令牌调用 Apify API 的 run-sync-get-dataset-items 端点。Actor 在您的账户下的 Apify 平台上运行,生成的数据集项直接作为工具结果返回。此服务器不保持任何状态,除了传递数据外,不会看到任何数据。
开发
npm install
npm test # builds + runs the full smoke suite (introspection, tokenless
# error path, dry-run request construction, HTTP transport)测试套件无需 Apify 账户和网络——它使用 APIFY_DRY_RUN=1。
相关资源
Apify Store 上所有 CBLU Actor 的个人资料:https://apify.com/cblu
Model Context Protocol:https://modelcontextprotocol.io
许可证
MIT © CBLU
Maintenance
Related MCP Servers
- AlicenseAqualityAmaintenanceThe most comprehensive keyless federal-data MCP server. 36 tools for SAM.gov + USAspending + Federal Register + eCFR + Grants.gov. No API key, no registration, no signup. Works in Claude Desktop, Claude Code, Codex CLI, Cursor, Continue, Gemini CLI, and any MCP-aware host.301001425MIT
- FlicenseBqualityDmaintenanceTypeScript MCP server for accessing Department of Labor enforcement data, OSHA inspections, and SAM.gov contract opportunities via natural language queries.28
- AlicenseNot gradedqualityDmaintenanceAggregate US business filings, SEC reports, federal court cases, federal spending awards, and professional licenses through a single MCP server.MIT

whetstone-mcpofficial
AlicenseNot gradedqualityBmaintenanceAn MCP server for U.S. public-records data, enabling AI agents to search business registrations, screen names against government watchlists, and pull federal awards.40MIT
Related MCP Connectors
MCP server for nonprofit financials via ProPublica — IRS Form 990 data for 1.8M+ nonprofits.
OpenCorporates MCP — Global company registry data (free, no auth, rate limited)
MCP server for French (BOAMP) + EU (TED) public procurement data via TenderAPI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CBLU2005/us-govdata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server