Mcp Grantiq

io.github.bch1212由 GitHub 帳號 bch1212 發布v1.0.3更新於 Oct 24, 2026

Search US grants + federal contracts (Grants.gov + SAM.gov) from any LLM.

發布方自己的服務:GrantIQ

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取商業與電商

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理搜尋美國聯邦補助(Grants.gov)與合約(SAM.gov)機會、依組織輪廓媒合,並追蹤截止日期。

可以做什麼
  • 依關鍵字、機關、金額與狀態搜尋並讀取 Grants.gov 補助機會
  • 依關鍵字、NAICS 代碼、機關與保留類別搜尋並讀取 SAM.gov 聯邦合約機會
  • 將組織輪廓媒合到約十筆最相關的補助與合約
  • 列出有開放機會的機關,並找出在指定天數內截止的補助
  • 依受補助者、機關與年度查詢 SAM.gov 歷史合約授予紀錄
適用情境
適合補助搜尋助理、採購副駕駛與面向政府的業務研究,讓助理不必直接呼叫各機關 API 就能取得當前美國聯邦資金與合約機會。兩個來源的回傳結果已統一格式,並快取 24 小時。
執行需求
遠端 streamable-HTTP 端點,無需本機安裝。需要 API 金鑰,透過 X-API-Key 標頭傳送;README 說明沒有共用的公開金鑰,需透過管理端點自行簽發。免費額度為每把金鑰每天 50 次呼叫,另有付費方案。
安裝前請注意
此服務被描述為付費服務:免費額度僅每天 50 次呼叫,超出後按月訂閱或按次計費,README 提到 Stripe 帳務。API 金鑰屬於憑證,不應放入共用設定。查詢內容與組織輪廓會傳送到第三方伺服器,再由其轉送給 Grants.gov 與 SAM.gov。結果快取 24 小時,對截止日期敏感的答案可能過時。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Grantiq,將其新增到工作區。
  2. 連接 X-API-Key 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.bch1212%2Fmcp-grantiq/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "grantiq": {
      "type": "http",
      "url": "https://mcp.grantiq.us/mcp/",
      "headers": {
        "X-API-Key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

GrantIQ MCP

A paid MCP server that gives AI agents instant, structured access to every open US federal grant and contract opportunity. Backed by Grants.gov + SAM.gov, with 24-hour SQLite caching, per-key daily limits, and a Stripe-friendly upgrade hook.

https://mcp.grantiq.us/mcp/


MCPize listing copy

Title: GrantIQ MCP — US Federal Grants & Contracts for AI Agents

Subtitle: Search, match, and monitor every open SAM.gov and Grants.gov opportunity from any LLM, in one tool call.

GrantIQ MCP turns the messy world of US government funding into a clean, agent-ready API. Eight typed tools cover everything from broad keyword search and NAICS-coded contract discovery to deadline radar and historical award lookups. Responses are normalized across both data sources, returned as plain JSON, and cached for 24 hours so repeat queries don't burn rate limit on the upstream agencies.

Built for procurement copilots, grant-finder agents, and B2G sales tools, GrantIQ MCP ships with a free tier (50 calls/day) that any developer can drop into Claude or Cursor in 15 seconds. Upgrade to Pro for $19/mo for unlimited calls, or pay $0.02 per call for bursty workloads — billing flips a key from free to pro via a single webhook, with no app rewrites required.


Pricing

TierPriceLimit
Free$050 calls / day / key
Pro$19 / monthUnlimited
Pay-as-you-go$0.02 / callUnlimited

Install

bash
claude mcp add grantiq-mcp --url https://mcp.grantiq.us/mcp/

Then add the API key Claude should use:

bash
claude mcp env grantiq-mcp X-API-Key=your-api-key

There is no shared public key. Mint one with the admin endpoint below (free tier is 50 calls/day) and store it in the client config or an environment variable.


Tool reference

ToolArgsReturns
search_grantskeyword, agency, amount_min, amount_max, status, limitList of matching grants
get_grant_detailsopportunity_idFull grant object
search_contractskeyword, naics_code, agency, set_aside, limitList of SAM contracts
get_contract_detailsnotice_idFull contract object
match_opportunitiesorg_description, org_type, focus_areasTop 10 matched opps (grants + contracts)
get_agenciestype (grants / contracts / both)Agencies with open opps, ranked by volume
get_deadlinesdays_aheadOpportunities closing within N days
search_awardsrecipient_name, agency, yearPast SAM award history

Every tool returns either:

json
{ "success": true,  "cached": false, "data": { ... } }

or, on failure:

json
{ "success": false, "error": "..." }

When the daily limit is hit, the HTTP layer returns 429 with body:

json
{ "error": "Limit reached. Upgrade at mcpize.com/grantiq-mcp" }

curl examples

The MCP endpoint speaks the JSON-RPC streamable-HTTP protocol and is best used through an MCP client. For convenience, every tool also has a REST mirror at /tools/<tool>.

bash
# Search grantscurl -s https://mcp.grantiq.us/tools/search_grants \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"keyword":"renewable energy","limit":5}'
# Get grant detailscurl -s https://mcp.grantiq.us/tools/get_grant_details \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"opportunity_id":"345678"}'
# Search SAM.gov contracts (cyber, small-business set-aside)curl -s https://mcp.grantiq.us/tools/search_contracts \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"keyword":"cybersecurity","set_aside":"SBA","limit":5}'
# Get contract detailscurl -s https://mcp.grantiq.us/tools/get_contract_details \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"notice_id":"abc123"}'
# Match opportunities to an org profilecurl -s https://mcp.grantiq.us/tools/match_opportunities \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"org_description":"Battery storage R&D startup","org_type":"for-profit","focus_areas":["energy","battery","storage"]}'
# Top agencies right nowcurl -s https://mcp.grantiq.us/tools/get_agencies \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"type":"both"}'
# Deadlines in the next 14 dayscurl -s https://mcp.grantiq.us/tools/get_deadlines \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"days_ahead":14}'
# Past award historycurl -s https://mcp.grantiq.us/tools/search_awards \  -H 'Content-Type: application/json' \  -H 'X-API-Key: your-api-key' \  -d '{"recipient_name":"Acme Corp","year":2025}'

Operator endpoints

Mint a fresh key (free or pro):

bash
curl -s https://mcp.grantiq.us/admin/keys \  -H 'X-Admin-Token: $GRANTIQ_ADMIN_TOKEN' \  -H 'Content-Type: application/json' \  -d '{"tier":"free","daily_limit":50}'

Promote a free key to pro (called from the Stripe checkout success webhook):

bash
curl -s https://mcp.grantiq.us/billing/upgrade \  -H 'X-Admin-Token: $GRANTIQ_ADMIN_TOKEN' \  -H 'Content-Type: application/json' \  -d '{"key":"grantiq_xxxxx"}'

Local dev

bash
python -m venv .venv && source .venv/bin/activatepip install -r requirements.txtcp .env.example .env# Replace the placeholders, then export them. The process refuses to start# until GRANTIQ_ADMIN_TOKEN is a real value (not the example placeholder).set -a && source .env && set +apython server.py        # http://localhost:8000pytest -v               # 31 tests, hermetic with respx mocks

Deploy to Railway

The repo includes nixpacks.toml. After railway init, just railway up. The start command is python server.py (not uvicorn ...) because Railway exec's [start].cmd without a shell — server.py reads $PORT via os.getenv and starts uvicorn programmatically.

Set these on the Railway service:

  • SAM_API_KEY — your SAM.gov key (contract tools fail closed without it)
  • GRANTIQ_ADMIN_TOKEN — long random string, required at startup
  • GRANTIQ_DB_PATH — /data/grantiq.db if you mount a Volume (recommended so cache + keys survive deploys)

A ready-to-run deploy.sh is in this directory.


Caveats

  • SAM.gov award history is exposed via the opportunities API filtered to ptype=a (Award Notice). For deeper award analytics (CFDA-level totals, recipient rollups), USAspending.gov is more appropriate and would be a v2 add.
  • Cache TTL is global (24h). For deadline-sensitive flows the agent should pass distinct query args or call /admin/keys to mint a key that bypasses cache (not yet exposed — see TODO).
  • Match scoring is deterministic Jaccard over title + agency tokens. It's fast and free; an LLM rerank can be added behind the same interface.
  • Stripe wiring is one-way (/billing/upgrade). The MCP server doesn't host the checkout page itself — that lives on the marketing site.

來源:README.md,提交 6dfd8f3

工具

8

search_grants

Search Grants.gov for funding opportunities.

輸入參數limitagencystatuskeywordamount_maxamount_min

get_grant_details

Fetch the full grant record for a Grants.gov opportunity id.

輸入參數opportunity_id必填

search_contracts

Search SAM.gov for federal contract opportunities.

輸入參數limitagencykeywordset_asidenaics_code

get_contract_details

Fetch the full SAM.gov contract record for a notice id.

輸入參數notice_id必填

match_opportunities

Return the top ~10 grants + contracts matched to an org profile.

輸入參數org_typefocus_areasorg_description必填

get_agencies

List agencies with currently-open opportunities.

輸入參數type

get_deadlines

Return grants whose response deadline is within `days_ahead` days.

輸入參數days_ahead

search_awards

Search past SAM.gov contract awards.

輸入參數yearagencyrecipient_name

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。

其他 Grantiq 整合