Skip to main content
Glama
Federal Funding Finder

Federal Funding Finder

Federal Funding Finder

A free, open-source, read-only MCP server for SBIR/STTR and federal grants. It searches Grants.gov, NIH RePORTER and the NSF Award Search API. Every result carries the URL of the record it came from.

  • No accounts, no API keys. Queries are not stored or logged. See PRIVACY.md and the terms of use.

  • TypeScript, the official @modelcontextprotocol/sdk, streamable HTTP transport, built as a Netlify Function (/mcp) with a Netlify Blobs response cache.

  • MIT licensed. Maintained by Thel Consulting.

The five tools and their data sources

Tools

All tools are read-only (readOnlyHint: true, destructiveHint: false) and validate input with zod.

Tool

What it does

Source

search_open_opportunities

Forecasted and posted funding opportunities. Filters: keyword, agency code (for example HHS-NIH11, NSF, DOD), eligibility codes (23 is small businesses), status, rows, offset, plus the noise filters below.

Grants.gov search2

search_nih_awards

Funded NIH projects. Defaults to SBIR/STTR activity codes R43, R44, R41, R42. Filters: text, org states, institutes (IC), fiscal years, activity codes.

NIH RePORTER v2

search_nsf_awards

NSF awards. Defaults to SBIR/STTR Phase I, Phase II and Fast-Track company awards (see the notes below). Filters: keyword (supports AND, OR, NOT), awardee state, award date range, rows, offset.

NSF Award Search

similar_funded_projects

Takes a project description, extracts key terms, searches NIH and NSF, and ranks funded projects by term overlap.

NIH and NSF

agency_sbir_summary

SBIR/STTR counts and dollar totals by fiscal year, activity code or program, top organizations, and by state when no state is given.

NIH or NSF

Grants.gov noise filters (search_open_opportunities). Grants.gov keeps listing some records long after they stopped being useful, so these run on the server after each upstream page:

Parameter

Default

Drops

open_only

true

Posted opportunities whose close date is before today (America/Denver).

forecast_max_age_days

365

Forecasts posted more than this many days ago, for example 2024 and early 2025 forecasts that never turned into a posting. 0 turns it off.

rolling_max_age_days

1460

Posted opportunities with no close date that were posted more than 4 years ago, for example the FY 2021 to FY 2023 EDA regional notices. Rolling programs from the last 4 years, such as EDA Public Works (posted 2023), are kept. 0 turns it off.

exclude_no_close_date

false

Every posted opportunity with no close date. Off by default because many are real rolling programs. Forecasts never have a close date on Grants.gov, so it does not apply to them.

posted_after

none

Anything, posted or forecast, with an open date before this YYYY-MM-DD date.

domestic_only

true

State Department overseas posts: agency code DOS-* with an agency or title naming a U.S. Mission, Embassy or Consulate (for example DOS-TUN, U.S. Mission to Tunisia). Washington bureaus such as DOS-ECA stay.

Each result reports dropped (a count per filter), scanned, next_offset and a note, so nothing is hidden silently. rows counts results after filtering: the tool pages through Grants.gov 250 records at a time, up to 1,000 records per call, until it has rows results. Pass next_offset as offset to continue. On 2026-10-17 the research park query (eligibility 12, 06, 00, 02, 04, 966 matches) kept 812 records with the defaults and dropped 136 stale forecasts, 9 stale rolling notices and 9 overseas mission notices. Grants.gov already omitted posted records past their close date, so open_only dropped none that day.

Notes on the data:

  • NIH RePORTER returns one record per project per fiscal year, so a multi-year award appears once per year. Amounts are that year's award_amount.

  • NSF multi-word keywords are ORed by the API. Use AND to require every word.

  • NSF summary amounts are total funds obligated to each award, grouped by the fiscal year of the award date.

  • NSF's fundProgramName=SBIR OR STTR search is a word match, so it also returns outreach and technical assistance, SBIR/STTR operations, the commercialization institute, and research center, I-Corps and fellowship awards that SBIR/STTR money co-funded. Those are dropped: a company award needs a Phase I, Phase II or Fast-Track program component and, from FY1997 on, a title naming the phase ("SBIR Phase I: ..."). For older awards, which NSF titled without the phase, any co-funding program other than SBIR/STTR or EPSCoR excludes the award, so a few pre-FY1997 co-funded company awards are dropped too. search_nsf_awards reports what it dropped in excludedNonCompany; its total is NSF's count before filtering.

  • agency_sbir_summary is built to finish within about 7 seconds, under Netlify's 10 second function limit. NIH: at most 2,000 records (4 pages). NSF: when the match fits in 24 pages (600 awards) it fetches everything; otherwise it samples each fiscal year, newest awards first, within 40 pages (8 in parallel) and the time budget. Every byFiscalYear row has a status: complete, partial (a sample, so count and amount are lower bounds) or not aggregated (count and amount are null, not 0). upstreamCount is the API's exact count per year; for NSF it is before dropping non-company awards. Measured locally, cold cache: NSF all states FY2022 to FY2027 took 5.2 s, NSF all states over 26 fiscal years 6.0 s, NIH all states FY2022 to FY2027 2.5 s.

  • SBIR.gov's public API returned HTTP 403 when checked on 2026-10-16, so it is not used.

Related MCP server: nsf-awards-mcp

Example prompts

  • NIH SBIR awards to South Dakota companies since 2020

  • Open Grants.gov SBIR opportunities that small businesses can apply to

  • Open grants a research park can apply to (nonprofit, higher education, state, city and special district eligibility)

  • NSF SBIR awards in South Dakota

  • Funded projects similar to a biofilm wound dressing

  • NIH SBIR/STTR totals by year for South Dakota

Connect

Hosted endpoint:

{
  "mcpServers": {
    "funding-finder": { "url": "https://grants.thelconsulting.com/mcp" }
  }
}

Docs: https://grants.thelconsulting.com

The same config ships as mcp.json for the Cursor plugin (.cursor-plugin/plugin.json) and the Grok plugin (.grok-plugin/plugin.json).

Local development

Requires Node 20 or later and the Netlify CLI (npm i -g netlify-cli). Local dev needs no Netlify account or login.

npm install
npm run dev            # netlify dev --offline: docs/ on http://localhost:8888, MCP at http://localhost:8888/mcp, local Blobs store
npm run inspect        # MCP Inspector CLI, tools/list against the hosted server (inspect:local for localhost)
npm run demo           # runs the demo prompts against the hosted server, reports timings, writes artifacts/demo-output.json (demo:local for localhost)
npm run stdio          # stdio transport, for clients or Inspector setups that launch a command
npm test               # unit tests plus contract tests that call the real APIs
npm run test:unit      # unit tests only, no network
npm run scan:secrets   # gitleaks if installed, plus grep checks

Layout:

  • netlify/functions/mcp.ts: the MCP endpoint, POST /mcp (stateless streamable HTTP, JSON responses).

  • netlify/functions/health.ts: GET /health.

  • netlify/functions/cache-cleanup.ts: hourly job that deletes expired cache entries.

  • src/: tools, upstream clients, cache and rate limiter, shared by the function and the stdio entry (src/stdio.ts).

  • docs/: the static site (landing and privacy pages), published as is.

Deploying

The production site is federal-funding-finder on Netlify, served at https://grants.thelconsulting.com (also https://federal-funding-finder.netlify.app). It is deployed from the CLI with netlify deploy --prod (publish directory docs, functions in netlify/functions, both set in netlify.toml). Netlify Blobs needs no extra setup on a deployed site.

Environment variables:

  • CACHE_KEY_SALT: secret used to HMAC cache keys. Set it in Netlify, never in the repo. Without it each function instance uses a random secret and the cache is not shared between instances.

  • ALLOWED_ORIGINS: optional comma-separated list of extra browser origins allowed to call /mcp.

  • RATE_LIMIT_PER_MINUTE: in-function limiter, default 60.

Origin check: requests with no Origin header (Cursor, Grok, the Inspector CLI and other server-side clients) are allowed. Browser requests are allowed only from this site's domains, localhost and ALLOWED_ORIGINS; other web origins get HTTP 403. This follows the MCP transport rule that servers validate Origin to block DNS rebinding.

Rate limiting is per IP, 60 requests per minute. On Netlify it is enforced at the edge by the rateLimit rule in netlify/functions/mcp.ts (Netlify may take up to about 10 seconds to start blocking). A second limiter in function memory (RATE_LIMIT_PER_MINUTE, default 60) also applies per function instance and is what netlify dev and the stdio entry use.

Data sources

  • Grants.gov search2 API: POST https://api.grants.gov/v1/api/search2 (docs)

  • NIH RePORTER API v2: POST https://api.reporter.nih.gov/v2/projects/search (docs). NIH asks clients to keep to about one request per second; summaries page sequentially.

  • NSF Award Search API: GET https://www.research.gov/awardapi-service/v1/awards.json, falling back to https://api.nsf.gov/services/v1/awards.json (docs). The service moved to Research.gov; the old host still answers.

This project is not affiliated with or endorsed by any federal agency.

Support

The hosted service is free and provided as is, with no uptime promise. See TERMS.md.

Design

Visuals follow the Quartz design system by Arlan Marat (MIT). docs/vendor/quartz/tokens.css is an unchanged copy with its license. Token notes are in design/quartz-tokens.md.

License

MIT. See LICENSE.

Available Tools

5 tools
agency_sbir_summarySummarize SBIR/STTR awards by year and stateA
Read-onlyIdempotent

Read-only. Aggregates SBIR/STTR award counts and dollar totals by fiscal year (and by state when no state is given) from NIH RePORTER (activity codes R43, R44, R41, R42) or NSF Award Search (fundProgramName SBIR OR STTR). Finishes within about 7 seconds: pulls at most 2,000 NIH records or 600 NSF awards and marks the result partial, with a note, when the upstream total is larger.

Inputs: agency (required), state, keyword, fiscal_year_to, +1 more.

search_nih_awardsSearch NIH awards (NIH RePORTER)A
Read-onlyIdempotent

Read-only. Searches funded NIH projects in NIH RePORTER v2. Defaults to SBIR/STTR activity codes R43, R44, R41, R42. Each row is one project in one fiscal year, so a multi-year project can appear more than once. Every result links to RePORTER.

Inputs: text, limit, offset, institutes, +7 more.

search_nsf_awardsSearch NSF awards (NSF Award Search API)A
Read-onlyIdempotent

Read-only. Searches NSF awards through the NSF Award Search API on Research.gov. Defaults to SBIR/STTR awards (fundProgramName 'SBIR OR STTR'). Multi-word keywords are ORed by NSF; use AND between words to require all. Every result links to NSF.

Inputs: rows, state, offset, keyword, +4 more.

search_open_opportunitiesSearch open federal funding opportunities (Grants.gov)B
Read-onlyIdempotent

Read-only. Searches forecasted and posted funding opportunities on Grants.gov (search2 API). Use it to find open SBIR/STTR solicitations and other grants. Every result links to its Grants.gov page.

Inputs: rows, agency, offset, status, +2 more.

similar_funded_projectsFind similar funded projects (NIH + NSF)A
Read-onlyIdempotent

Read-only. Given a project description or keywords, extracts key terms, searches NIH RePORTER and NSF Award Search, and ranks funded projects by term overlap with your description. Scores are a simple keyword overlap, not a semantic judgment.

Inputs: description (required), limit, sources, sbir_sttr_only, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    The two agency search tools (search_nih_awards, search_nsf_awards) and the aggregator (agency_sbir_summary) are clearly distinct in purpose, and search_open_opportunities covers a separate source. However, similar_funded_projects overlaps meaningfully with the two award-search tools since it queries the same NIH/NSF sources and only adds ranking, which could cause misselection.

    Naming Consistency3/5

    Three tools follow a clean search_noun pattern (search_open_opportunities, search_nih_awards, search_nsf_awards), but agency_sbir_summary leads with a noun and similar_funded_projects with an adjective, breaking the verb-first convention. The names remain readable despite the mixed patterns.

    Tool Count4/5

    Five tools is a lean but sensible set for an SBIR/STTR funding discovery server, with each tool covering a distinct source or aggregation. It is slightly thin—no per-award detail or cross-source rollup tool—but nothing feels redundant.

    Completeness4/5

    The surface covers the core lifecycle of SBIR/STTR discovery: open opportunities, funded awards from two major agencies, aggregate counts, and similarity search. Minor gaps exist (no detail/lookup by award ID, no coverage of other SBIR agencies like DOD/DOE), but results link out and core workflows are supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search and retrieve federal small business research and technology transfer award data, including keyword, company, agency, and phase queries, via a free public API without authentication.
      19 npm
      MIT
    • A
      license
      A
      quality
      F
      maintenance
      Enables searching National Science Foundation award and funding data, including by award number, keyword, principal investigator, or institution, with no API key required.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching US federal funding opportunities across all agencies, reading full grant records with eligibility, award amounts, deadlines, and NOFO attachments, and decoding filter codes via keyless access to Grants.gov.
      292 npm
      3
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search U.S. government contracts, grants, jobs, past awards, company histories, and teaming partners, and to assess opportunities for fit and bid decisions.
      9
      93 PyPI
      MIT