Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How I turned my government-data Actors into MCP tools Claude calls mid-task

说明与用途

一种自动化方案,使用 MCP 服务器包装 Apify Actors,让 Claude 能够查询美国政府数据,解决 API 密钥、速率限制、数据截断和访问限制等问题。

问题

Agents cannot directly access public government data sources because of API keys, rate limits, caps, and access restrictions, leading to incomplete or incorrect results.

结果

Agents can now reliably retrieve and use US government data via the MCP server, overcoming API key, rate limit, cap, and access barriers.

工作流

  • 1. Publish the desired Apify Actors (e.g., SAM.gov scraper, NPI scraper, permits scraper).
  • 2. Create an MCP server (e.g., us‑govdata‑mcp) that defines each tool’s input schema with Zod and calls the Apify run‑sync‑get‑dataset‑items endpoint.
  • 3. Deploy the server (MIT‑licensed, listed on Glama MCP directory).
  • 4. Configure the MCP client (Claude Desktop, Claude Code, or Cursor) to point to the server URL.
  • 5. In Claude, ask a question that requires government data (e.g., "find active cybersecurity solicitations set aside for small business").
  • 6. Claude sends a tool call to the MCP server; the server validates input, runs the corresponding Actor, and returns the dataset items.
  • 7. Claude presents the results to the user, optionally applying post‑processing or summarization.

证据

The official API wants a registered key. The search UI is not an API. The daily CSV extract runs roughly 240 MB, which is not a thing you hand a chat model mid‑conversation.

来源

The server is an MIT‑licensed repo with its own README, listed on the Glama MCP directory.

来源

  • 记录日期: 2026-09-09T04:00:43.100Z