mcpField
M
mcp-grantiq

mcp-grantiq

Remote
mcp.grantiq.usLegal & Government1Updated 1w ago

About mcp-grantiq

mcp-grantiq is an MCP server for agents and developers working with US federal funding. It combines grant and contract discovery, organization matching, and award lookups across Grants.gov and SAM.gov.

Key features

  1. 01Search grants by keyword, agency, amount, or status
  2. 02Search contracts by keyword and NAICS code
  3. 03Match opportunities to an organization profile
  4. 04View closing deadlines and agency listings
  5. 05Look up grant, contract, and award details
  6. 0624-hour response caching

Use cases

  1. 01Find grants related to a project or focus area
  2. 02Identify SAM.gov contracts for a NAICS code
  3. 03Surface funding opportunities matching an organization
  4. 04Track opportunities with approaching deadlines

MCP support

Exposes eight typed tools to MCP clients over the streamable HTTP transport. A REST mirror is also available for each tool.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp.grantiq.us/mcp/
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://mcp.grantiq.us/mcp/Auth required

Tools

8
ParameterTypeRequiredDescription
limitintegerNomax rows to return (1-100)
agencyanyNofilter by agency code (e.g. "USDA")
statusanyNoopportunity status — "posted", "forecasted", "closed"
keywordstringNofree-text search term
amount_maxanyNomaximum award ceiling in USD
amount_minanyNominimum award ceiling in USD

Details

From the project 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

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

Then add the API key Claude should use:

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:

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

or, on failure:

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

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

{ "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>.

# Search grants
curl -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 details
curl -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 details
curl -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 profile
curl -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 now
curl -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 days
curl -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 history
curl -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):

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):

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

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .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 +a
python server.py        # http://localhost:8000
pytest -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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.