Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itSearch Grants.gov funding opportunities and read full records: eligibility, awards, deadlines.
One address for any MCP client. No sign-in needed on this server.
3 read
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Search Grants.gov federal funding opportunities, read full records (eligibility, awards, deadlines, attachments), and decode filter codes via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://grantsgov.caseyjhand.com/mcp
US federal funding opportunities from Grants.gov, covering every agency's forecasted, posted, closed, and archived notices. Search by keyword, agency, applicant type, funding category, assistance listing, or deadline window, then read a full record: award range, eligibility, key dates, agency contact, and NOFO attachments. No API key required.
| Tool | Description |
|---|---|
grantsgov_search_opportunities | Search opportunities by keyword and filters; each row leads with its close date and days left, plus facet counts for narrowing |
grantsgov_get_opportunity | Read full records for up to 5 opportunities by numeric id or opportunity number |
grantsgov_list_reference | List the codes the search filters take (agencies, applicant types, funding categories and instruments), plus statuses, sort options, and keyword syntax |
The grantsgov-guide skill covers funding shortlists, eligibility and deadline review, and application requirements. It ships with the package and plugins and is available over MCP as skill://grantsgov-guide/SKILL.md.
grantsgov_search_opportunities toolkeyword, statuses (default forecasted and posted), agencies (a code includes its sub-agencies), eligibilities, funding_categories, funding_instruments, assistance_listing (one ALN), opportunity_number (exact match), posted_within_days, closing_within_dayseligibilities also matches opportunities open to any applicant type (code 99) unless include_unrestricted is false. Opportunities coded 25 ("Others", eligible types given in the eligibility narrative) match on that code only when 25 is listed or include_narrative_eligibility is true; code 25 is the most common, so the flag widens a search substantially and each match needs its narrative read with grantsgov_get_opportunityOR, quote phrases, exclude with NOT or -term, and use a trailing * for prefixes. An ungrouped AND/OR mix or a field prefix (agency:NSF) fails as invalid_keywordclosing_within_days (0–365) scans posted opportunities by close date; it allows only the posted status and the close_date_asc sort, and posted_within_days rejects closed and archived (filter_conflict). total_count_kind distinguishes exact counts from lower bounds when the scan is incomplete; next_offset reaches only remaining scanned matcheslimit accepts 1–1,000 and values above 100 are capped with a notice. Offset paging uses next_offset; effective_keyword and applied_filters echo what was sent. Sub-agency facets count each subtree under the current upstream query; include_facets: false drops the facet countsclose_date_kind (fixed, none_listed, placeholder) and days_until_close, but no award amounts. Unknown codes fail as unknown_agency, unknown_eligibility, or unknown_funding_categorygrantsgov_get_opportunity tooldeferred_ids, deferred_numbers, and an executable continuation carry the remaining queue with the original section offsets. Numbers resolve across all four statuses; selected aliases fetch a record once per callunresolved[] as not_found or ambiguous (with candidates), not as an errorclose_date_is_estimate), award ceiling and floor, total funding, expected awards, cost sharing, applicant types with the eligibility narrative, assistance listings, and the agency contactdoc_type, named in money_source; forecasts add forecast_estimatesdescription_offset, eligibility_offset, funding_category_explanation_offset, attachment_offset, application_package_offset, and related_opportunity_offset (default 0). Each record's pages supplies full totals and executable single-opportunity continuations; partial narratives retain *_truncated, and past-end pages are empty. Attachments include download_url and the unchanged upstream created_date when listedlast_revision_note and last_revision_changed summarize the active synopsis or forecast's latest revision when listed. Changed names map to public fields; unknown names keep an upstream: prefix. Missing metadata does not mean nothing changedgrantsgov_list_reference tooltopic: agencies, eligibilities, funding_categories, funding_instruments, statuses, sort_options, or keyword_syntaxsnapshot_date, with open_count (forecasted and posted) and total_count per code (statuses carries total_count only); sort_options and keyword_syntax are staticlimit accepts 1–1,000 and values above 100 are capped with a notice. Filters apply before paging; continuation preserves the complete next-call argumentsreference_cache disclosing stale status, the failure reason, and retry time. Searches using that vocabulary disclose the same degradation and snapshot timestampagencies lists the top level by default; parent_code lists every code under one agency, and name_contains matches labels and codes on any topic (for agencies, at every level)parent_code with another topic fails as filter_not_applicable; an unknown code fails as unknown_parent_codeBuilt on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Grants.gov-specific:
search2, fetchOpportunity), with retries and at most 4 concurrent upstream requests per processAND, hyphenated tokens (COVID-19, K-12) matched as phrases, agency codes expanded to their sub-agency subtree, opportunity numbers matched literally, and filter codes checked against the live vocabularyplaceholder rather than reported as deadlinescontent[], agency prose renders as literal text, identifiers retain code styling, multi-line fields render as blockquotes, and inline text is flattened to one lineAgent-friendly output:
effective_keyword and applied_filters, including defaulted statuses, the expanded agency filter, and the added codes 99 and 25 (include_narrative_eligibility is echoed only when set)close_date_kind, doc_type, money_source, and unresolved[].outcome let callers branch on dataupstream_unavailable, rate_limited, and upstream_route_unavailable for Grants.gov outagesConnect to the hosted instance, no install:
claude mcp add --transport http grantsgov-mcp-server https://grantsgov.caseyjhand.com/mcp
Or run it locally:
claude mcp add grantsgov-mcp-server -- npx -y @cyanheads/grantsgov-mcp-server
For other clients, add this to the MCP config file:
{
"mcpServers": {
"grantsgov-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/grantsgov-mcp-server"]
}
}
}
No API key is required. For Docker or a source build, see Running the server.
The server reads no configuration of its own: the Grants.gov API is keyless and its endpoints are fixed. These framework variables control transport, auth, and logging.
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | HTTP server port. | 3010 |
MCP_SESSION_MODE | HTTP session mode: stateless, stateful, or auto. The server declares stateless; set this only to override it. | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (debug, info, warning, error, etc.). | info |
LOGS_DIR | Directory for log files (Node.js only). | <app-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry. | false |
See .env.example for the full list of optional overrides.
Requires Bun v1.4.4 or higher (or Node.js v24+) and network access to api.grants.gov.
Clone and install:
git clone https://github.com/cyanheads/grantsgov-mcp-server.git
cd grantsgov-mcp-server && bun install
cp .env.example .env # optional framework overrides
Build and run the production version:
# One-time build
bun run rebuild
# Run the built server
bun run start:http
# or
bun run start:stdio
Run checks and tests:
bun run devcheck # Lints, formats, type-checks, and more
bun run test # Runs the test suite
docker run --rm -p 3010:3010 ghcr.io/cyanheads/grantsgov-mcp-server:latest
The image defaults to HTTP transport, stateless session mode, and logs to /var/log/grantsgov-mcp-server. To run over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/grantsgov-mcp-server:latest"]. To build locally, docker build -t grantsgov-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point: registers the tools and published skill, and starts and disposes the Grants.gov service. |
src/mcp-server/tools/definitions | Tool definitions (*.tool.ts). |
src/mcp-server/tools | Shared input schemas (input-schemas.ts) and format() rendering helpers (render.ts). |
src/services/grants-gov | Grants.gov API client, keyword compiler, reference snapshot, date and money normalization, HTML-to-text. |
tests/ | Unit and tool tests mirroring src/, with trimmed Grants.gov response fixtures. |
skills/ | Published guidance for agents reviewing federal funding opportunities. |
docs/design.md | Design notes: probed API behavior and the decisions behind the tool surface. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for logging and ctx.fail with the tool's declared error reasonssrc/mcp-server/tools/definitions/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Opportunity data comes from Grants.gov, where federal agencies post their funding opportunities. The records are US government works. This project is not affiliated with or endorsed by Grants.gov or any federal agency.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.