Grantsgov MCP Server
概览
作者提供的说明(英文原文)
Search Grants.gov funding opportunities and read full records: eligibility, awards, deadlines.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i4 项中通过 4 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段↓ 76/周 · ★ 3
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:4 项中通过 4 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 可以做 3 件事(工具) grantsgov_search_opportunities, grantsgov_get_opportunity, grantsgov_list_reference
- 需要你自己填写:
MCP_LOG_LEVEL
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
- 打开 Settings → Connectors
- 点击 Add custom connector
- 粘贴下面的地址,然后点击 Add
- 如果要求登录,请登录作者的服务
https://grantsgov.caseyjhand.com/mcp或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"grantsgov": {
"command": "npx",
"args": [
"-y",
"@cyanheads/grantsgov-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http grantsgov https://grantsgov.caseyjhand.com/mcp或者在你的电脑上运行
claude mcp add grantsgov --env MCP_LOG_LEVEL=your-value -- npx -y @cyanheads/grantsgov-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"grantsgov": {
"url": "https://grantsgov.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"grantsgov": {
"command": "npx",
"args": [
"-y",
"@cyanheads/grantsgov-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"grantsgov": {
"type": "http",
"url": "https://grantsgov.caseyjhand.com/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"grantsgov": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/grantsgov-mcp-server"
],
"env": {
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
- 打开网页版 ChatGPT → Settings → Connectors (Apps)
- 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
- 粘贴下面的地址,起个名字,然后保存
- 如果要求登录,请登录作者的服务
https://grantsgov.caseyjhand.com/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
工具名称和描述与服务器在 2026年11月10日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。
grantsgov_search_opportunitiesSearch federal funding opportunities on Grants.gov by keyword, agency, applicant eligibility, funding category, funding instrument, assistance listing, opportunity number, posting window (posted_within_days), or closing window (closing_within_days). Returns forecasted and posted
grantsgov_get_opportunityRead the Grants.gov record for up to 5 opportunities, given numeric opportunity ids or opportunity numbers: deadline, funding, eligibility, description, assistance listings, contact, attachments, packages, and latest revision metadata. Lists and narratives are bounded independent
grantsgov_list_referenceList the codes Grants.gov search filters accept, with labels and live opportunity counts: agencies (top level, or one agency's sub-agencies via parent_code, or matched by name via name_contains), applicant eligibility types, funding categories, funding instruments, statuses, sort
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于15天前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 533 毫秒内响应(HTTP 200)
- – 不适用
使用 OAuth 登录
无需登录
- ✓ 通过
工具描述中没有隐藏指令
已读取 3 个工具描述,未发现针对 AI 的隐藏指令
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5865 个服务器的 84%
- 发布到注册中心的时间比此分类中其他 5865 个服务器的 71% 更新
- 基础检查结果等于或优于此分类中其他 5865 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Grantsgov MCP Server 安全吗?
它在 4 项适用的基础检查中通过了 4 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于15天前,最新版本(0.2.0)于15天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Ruflo, Context7, Metabase
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
@cyanheads/grantsgov-mcp-server Search Grants.gov federal funding opportunities, read full records (eligibility, awards, deadlines, attachments), and decode filter codes via MCP. STDIO or Streamable HTTP. 3 Tools
Public Hosted Server: https://grantsgov.caseyjhand.com/mcp
Overview
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.
Tools
| 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.
Capability reference
grantsgov_search_opportunities tool
- Filters:
keyword,statuses(defaultforecastedandposted),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_days eligibilitiesalso matches opportunities open to any applicant type (code99) unlessinclude_unrestrictedisfalse- Keyword terms are all required; join alternatives with
OR, quote phrases, exclude withNOTor-term, and use a trailing*for prefixes. An ungrouped AND/OR mix or a field prefix (agency:NSF) fails asinvalid_keyword closing_within_days(0–365) scans posted opportunities by close date; it allows only thepostedstatus and theclose_date_ascsort, andposted_within_daysrejectsclosedandarchived(filter_conflict).total_count_kinddistinguishes exact counts from lower bounds when the scan is incomplete;next_offsetreaches only remaining scanned matches- Up to 100 rows per page (default 25);
limitaccepts 1–1,000 and values above 100 are capped with a notice. Offset paging usesnext_offset;effective_keywordandapplied_filtersecho what was sent. Sub-agency facets count each subtree under the current upstream query;include_facets: falsedrops the facet counts - Rows carry
close_date_kind(fixed,none_listed,placeholder) anddays_until_close, but no award amounts. Unknown codes fail asunknown_agency,unknown_eligibility, orunknown_funding_category
grantsgov_get_opportunity tool
- Accept up to 50 nonblank entries per identifier list and 50 normalized unique identifiers combined. Read the first 5 identifiers, ids before numbers;
deferred_ids,deferred_numbers, and an executablecontinuationcarry the remaining queue with the original section offsets. Numbers resolve across all four statuses; selected aliases fetch a record once per call - A miss or a number shared by several opportunities comes back in
unresolved[]asnot_foundorambiguous(withcandidates), not as an error - Records carry the close date (an estimate on forecasts, flagged by
close_date_is_estimate), award ceiling and floor, total funding, expected awards, cost sharing, applicant types with the eligibility narrative, assistance listings, and the agency contact - Funding and eligibility fields come from the synopsis or forecast block matching
doc_type, named inmoney_source; forecasts addforecast_estimates - Independent pages: description 12,000 characters, eligibility narrative 6,000, funding-category explanation 2,000, attachments 30, application packages 10, and related opportunities 10. The six zero-based inputs are
description_offset,eligibility_offset,funding_category_explanation_offset,attachment_offset,application_package_offset, andrelated_opportunity_offset(default 0). Each record'spagessupplies full totals and executable single-opportunity continuations; partial narratives retain*_truncated, and past-end pages are empty. Attachments includedownload_urland the unchanged upstreamcreated_datewhen listed last_revision_noteandlast_revision_changedsummarize the active synopsis or forecast's latest revision when listed. Changed names map to public fields; unknown names keep anupstream:prefix. Missing metadata does not mean nothing changed
grantsgov_list_reference tool
topic:agencies,eligibilities,funding_categories,funding_instruments,statuses,sort_options, orkeyword_syntax- Codes come from a live Grants.gov snapshot, cached for 24 hours and dated by
snapshot_date, withopen_count(forecasted and posted) andtotal_countper code (statusescarriestotal_countonly);sort_optionsandkeyword_syntaxare static - Up to 100 entries per page (default 50);
limitaccepts 1–1,000 and values above 100 are capped with a notice. Filters apply before paging;continuationpreserves the complete next-call arguments - A failed refresh can serve expired data with
reference_cachedisclosing stale status, the failure reason, and retry time. Searches using that vocabulary disclose the same degradation and snapshot timestamp agencieslists the top level by default;parent_codelists every code under one agency, andname_containsmatches labels and codes on any topic (for agencies, at every level)parent_codewith another topic fails asfilter_not_applicable; an unknown code fails asunknown_parent_code
Features
Built 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:
- List inputs accept one whole string or an array; blank values and members read as unset. Strings are never split on commas, spaces, or line breaks
- Keyless client for the Grants.gov REST API (
search2,fetchOpportunity), with retries and at most 4 concurrent upstream requests per process - Inputs mapped to the form Grants.gov reads as intended: bare keyword terms joined with
AND, 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 vocabulary - Deadlines counted from today in US Eastern Time, the zone Grants.gov publishes in; far-future stand-in close dates are flagged
placeholderrather than reported as deadlines - HTML5 entities decoded in human-readable fields; narrative HTML converted to plain text with table cell and row boundaries preserved. In
content[], agency prose renders as literal text, identifiers retain code styling, multi-line fields render as blockquotes, and inline text is flattened to one line
Agent-friendly output:
- Echo of what ran:
effective_keywordandapplied_filters, including defaulted statuses, the expanded agency filter, and the added code99 - Discriminated fields:
close_date_kind,doc_type,money_source, andunresolved[].outcomelet callers branch on data - Empty-result and paging notices that name the next call, such as counts of closed and archived matches when the default statuses found nothing, or the next close date when a closing window is empty
- Typed failure reasons with recovery hints, including
upstream_unavailable,rate_limited, andupstream_route_unavailablefor Grants.gov outages
Getting started
Connect 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.
Configuration
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). | /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.
Running the server
Local development
Requires Bun v1.4.0 or higher (or Nod