Skip to main content
Glama
US Government Data

US Government Data

us-govdata-mcp

米国政府データのためのMCPサーバー — Claude、Cursor、または任意のModel Context Protocolクライアントから、建築許可、連邦契約機会(SAM.gov)、および全国医療提供者レジストリ(NPI/NPPES)を検索できます。

CBLU2005/us-govdata-mcp MCPサーバー

ライセンス: MIT Node >= 18

3つのデータソースはすべて公式の政府刊行物(都市のオープンデータポータル、SAM.govの公開抽出、CMS NPPES API)です。HTMLスクレイピング、ログイン、脆弱なセレクターは不要です。重い処理は、あなた自身のApifyアカウントで実行される3つの本番用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: whetstone-mcp

ツール

ツール

検索内容

一般的なフィルター

価格*

search_building_permits

10の公式都市/郡オープンデータソース(NYC、シカゴ、LA、オースティン、サンフランシスコ、ニューオーリンズ、バトンルージュ、モンゴメリー郡MD、ノーフォークVA)からの建築許可 — 許可タイプ、ステータス、評価額、請負業者名/ライセンス

都市、発行日範囲、許可タイプ、全文検索、最低評価額

$0.005 / レコード

search_federal_contract_opportunities

SAM.govからの連邦RFP、調達通知、調達予告、落札通知 — 契約担当官のメールと電話番号付き

キーワード、NAICS、通知タイプ、中小企業枠(8A、WOSB、HUBZone...)、省庁、州、日付

$0.004 / レコード

search_healthcare_providers

公式CMS NPIレジストリの800万人以上の米国医療提供者および医療機関 — 専門分野、ライセンス、診療所の電話/FAX、権限のある役員

専門分野、州、都市、郵便番号(ワイルドカード可)、提供者/組織名

$0.002 / レコード

* 正直な価格開示: これらのツールは、CBLUが公開する有料の従量課金制Apifyアクターを実行します。Apifyアカウントには、実際に返されたレコードに対してのみ課金されます。サブスクリプションや開始手数料はありません。すべてのツールはデフォルトで1回の呼び出しにつき25件の結果を返すため、通常の呼び出しのコストは1セント未満です(25件の許可 ≈ $0.13、25件の契約通知 ≈ $0.10、25件の提供者 ≈ $0.05)。Apifyの無料プランには毎月のプラットフォームクレジットが含まれており、これらのツールをカジュアルに無料で使用するのに十分です。完全な価格詳細が記載されたアクターページ:

クイックスタート

1. Apifyトークンを取得する(無料、約2分)

  1. https://console.apify.com/sign-up にサインアップします(無料プランで動作します)。

  2. 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-mcp

Cursor / 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.js

Docker:

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 HTTP

3. AIエージェントに次のようなことを依頼する

  • 「今月オースティンで発行された、請負業者名を含む50万ドル以上の新築建築許可を見つけて。」

  • 「応答期限が今日以降の、アクティブな中小企業向けサイバーセキュリティ調達通知はありますか?契約担当官のメールアドレスも含めて。」

  • 「マイアミ大都市圏(郵便番号331)の歯科医を、診療所の電話番号とともにリストアップして。」*

トランスポート

  • stdio(デフォルト) — デスクトップMCPクライアントが使用:us-govdata-mcp

  • Streamable HTTP — ステートレスエンドポイント POST /mcp、ヘルスチェック GET /healthz: us-govdata-mcp --http 3000(または MCP_HTTP_PORT=3000 を設定)

環境変数

変数

必須

目的

APIFY_TOKEN

ツール呼び出し用

Apify APIトークン。サーバーの起動とツール一覧表示はトークンなしで動作します。ツール呼び出しは、トークンが設定されるまでセットアップガイドを返します。

APIFY_DRY_RUN

いいえ

1 に設定すると、ネットワーク呼び出しや課金なしで、サンプルレコードを返します。レスポンスには、送信されるはずだった正確なApify APIリクエストが含まれます。テストやCIに便利です。

MCP_HTTP_PORT

いいえ

このポートでstdioの代わりにStreamable HTTPモードで起動します。

仕組み

各ツールは引数を検証し(zod)、アクター入力を構築し、Authorization: Bearer ヘッダー(URLには含まれません)を介してトークンを使用してApify APIのrun-sync-get-dataset-itemsエンドポイントを呼び出します。アクターはあなたのアカウントで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 を使用します。

関連

ライセンス

MIT © CBLU

Available Tools

3 tools
search_building_permitsSearch US building permitsA

Search recently issued US building permits from official city open-data portals (New York City, Chicago, Los Angeles, Austin, San Francisco, New Orleans, Baton Rouge, Montgomery County MD, Norfolk VA). Returns normalized permit records: permit number, type, work description, status, issue date, address, project valuation, and contractor name/license where published. Great for construction lead generation and market research. Runs the paid Apify actor https://apify.com/cblu/us-building-permits-scraper on YOUR Apify account (requires APIFY_TOKEN; pay per result: $0.005 per permit record ($5.00 / 1,000), charged only for records actually returned).

Inputs: cities, issuedAfter, searchQuery, issuedBefore, +3 more.

search_federal_contract_opportunitiesSearch federal contract opportunities (SAM.gov)A

Search US federal contract opportunities (RFPs, solicitations, sources sought, award notices) from SAM.gov's official public data extract — including contracting-officer names, emails, and phone numbers. Filter by keyword, NAICS code, notice type, small-business set-aside, agency, place-of-performance state, and dates. Great for GovCon business development. Runs the paid Apify actor https://apify.com/cblu/sam-gov-contract-opportunities-scraper on YOUR Apify account (requires APIFY_TOKEN; pay per result: $0.004 per opportunity ($4.00 / 1,000), charged only for records actually returned).

Inputs: keyword, popStates, setAsides, activeOnly, +8 more.

search_healthcare_providersSearch US healthcare providers (NPI registry)A

Search the official CMS NPPES NPI Registry of all US healthcare providers and organizations. Returns NPI number, provider/organization name, specialty (taxonomy), state license, practice address with phone and fax, and for organizations the authorized official's name/title/phone. Filter by specialty, state, city, ZIP (wildcards like '331*'), or name. Great for healthcare sales lists, provider verification, and directory enrichment. Runs the paid Apify actor https://apify.com/cblu/npi-healthcare-providers-scraper on YOUR Apify account (requires APIFY_TOKEN; pay per result: $0.002 per provider record ($2.00 / 1,000), charged only for records actually returned).

Inputs: city, state, lastName, firstName, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct and clearly separate domain: building permits, federal contract opportunities, and healthcare providers. There is no overlap in functionality or purpose.

    Naming Consistency5/5

    All three tools follow the same 'search_<domain>' naming pattern, making them predictable and easy to understand. The convention is consistent throughout.

    Tool Count5/5

    With only three tools, the set is small but well-scoped for the specific data sources it covers. Each tool serves a clear, valuable purpose without unnecessary bloat.

    Completeness2/5

    Despite the server name 'US Government Data' implying broad coverage, it only provides access to three narrow datasets (building permits from select cities, federal contracts, and healthcare providers). Many major government data categories are missing, such as census, federal spending, or regulations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      TypeScript MCP server for accessing Department of Labor enforcement data, OSHA inspections, and SAM.gov contract opportunities via natural language queries.
      28
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server for U.S. public-records data, enabling AI agents to search business registrations, screen names against government watchlists, and pull federal awards.
      4
      33 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables searching and retrieving public-sector opportunity data — US federal contract opportunities, grants, and awards, UK and EU tenders, and city council agendas and votes — with official source links on every record. Runs as a hosted remote MCP server via Apify's gateway, so clients can query these feeds and pull run results through natural language.
      6
      1
      MIT