search_nsf_awards

MCP Tool

The general NSF award search tool, which exposes every filter the live NSF Award API honours and returns one page of award records.

Status
stable
Trust tier
unverified
Generated
claude-code/claude-opus-5-5, 2026-12-05
Tags
searchawardstools

search_nsf_awards is the general search. It exposes every filter that the live NSF Award API honours: keyword, award and organization identifiers, awardee location, PI and Co-PI names, three date ranges, two amount ranges, program, award instrument, place of performance and status.1 All parameters are optional. With none, it lists the newest awards.2

Use it when no narrower tool fits, or when you need a filter that only it has (keyword, UEI, CFDA number, ZIP code, congressional district, Co-PI name, action dates, obligated amounts, program, instrument or place of performance). For awards to one institution, search_by_institution is simpler. For one person’s awards, including those where they are a Co-PI, use search_by_pi.

Each call returns one page of at most 25 records, newest start date first. The API counts and pages at most 10,000 matches, so very broad searches come back with capped: true and must be narrowed.3 Records are compact summaries unless you ask for detail: "full" or printFields; see Shared search parameters.

The description that clients see in tools/list is:1

Search NSF awards by keyword, institution, PI or Co-PI, location, program, dates, amounts and status. Returns up to 25 compact award summaries per call, newest start date first; page with offset/nextOffset. The API counts and pages at most 10,000 matches. Use detail “full” or printFields for abstracts and other fields.

Schema

These are the parameters specific to this tool. Descriptions are the exact strings in the Zod schema, except where noted.4 It also takes offset, limit, detail, printFields, status, startDateFrom, startDateTo, expDateFrom, expDateTo, estimatedTotalAmtFrom and estimatedTotalAmtTo, which are documented in Shared search parameters.

Every parameter here is optional and has no default. All are strings or numbers except includeExpired, which is a boolean. Each one is sent under the NSF API name in the last column.1

Parameter Type Constraints NSF API parameter Description
keyword string balanced double quotes and parentheses; at most one quoted phrase keyword Free-text search across award fields (title, abstract, …). Words separated by spaces match awards containing ANY of them; join them with uppercase AND to require all (e.g. CAREER AND “machine learning”). Put one phrase in double quotes to match it exactly; the API cannot take more than one quoted phrase
id string   id NSF award ID (7 digits)
ueiNumber string   ueiNumber Awardee Unique Entity Identifier (UEI)
parentUeiNumber string   parentUeiNumber Parent organization UEI
cfdaNumber string   cfdaNumber Assistance Listing (CFDA) number, e.g. 47.050 (Geosciences)
awardeeName string quoted by the client when it has a space awardeeName Awardee organization name, matched as a phrase (e.g. “University of Arizona”)
awardeeCity string   awardeeCity Awardee city. Multi-word cities match any word, so pair this with awardeeStateCode
awardeeStateCode string   awardeeStateCode Awardee two-letter state code (e.g. AZ, NM)
awardeeCountryCode string   awardeeCountryCode Awardee two-letter country code (e.g. US)
awardeeZipCode string   awardeeZipCode Awardee ZIP code
awardeeDistrictCode string   awardeeDistrictCode Awardee congressional district, state code + number (e.g. AZ07)
piFirstName string   piFirstName PI first name. Fuzzy on its own; combine with piLastName
piLastName string   piLastName PI last name
pdPIName string   pdPIName PI full name, unquoted (e.g. First Last; the schema’s example is a real name)
coPDPI string   coPDPI Co-PI name. A full name (“First Last”) matches that person; a last name alone matches every Co-PI with that surname
dateStart string (date) valid date; not after dateEnd dateStart Award action date (the record’s “date” field) on or after (mm/dd/yyyy or yyyy-mm-dd)
dateEnd string (date) valid date dateEnd Award action date (the record’s “date” field) on or before (mm/dd/yyyy or yyyy-mm-dd)
fundsObligatedAmtFrom number >= 0; not greater than fundsObligatedAmtTo fundsObligatedAmtFrom Minimum funds obligated to date in US dollars
fundsObligatedAmtTo number >= 0 fundsObligatedAmtTo Maximum funds obligated to date in US dollars
fundProgramName string quoted by the client when it has a space fundProgramName Funding program name, matched as a phrase (e.g. “Ecosystem Studies”). Award types such as CAREER, REU or SBIR are spread over many programs, so find them with keyword (e.g. CAREER AND “machine learning”) instead
transType string   transType Award instrument: “Standard Grant”, “Continuing Grant”, “Cooperative Agreement”, “Fellowship Award”, …
perfLocation string quoted by the client when it has a space perfLocation Performing organization name, matched as a phrase
perfStateCode string   perfStateCode Performance location two-letter state code
perfCountryCode string   perfCountryCode Performance location two-letter country code
includeExpired boolean   ActiveAwards (see below) Deprecated: use status. false is the same as status “active”

The shared parameters map as the shared page describes: startDateFrom/startDateTo become startDateStart/startDateEnd, expDateFrom/expDateTo become expDateStart/expDateEnd, limit becomes rpp, and status becomes ActiveAwards or ExpiredAwards. detail and printFields are never sent to the API.1 5

includeExpired. status wins when both are given. Without status, includeExpired: false sends ActiveAwards=true (the same as status: "active"), and includeExpired: true sends no status flag (the same as status: "all", not “expired only”).6

Not offered. The API accepts agency, awardAgencyCode, primaryProgram and projectOutcomesOnly, but they either change nothing or return no results, so the tool does not offer them. The API also ignores its own printFields parameter, so the tool’s printFields is applied by the server and is never sent to the API.7 An agency argument, removed in 2.0.0, is stripped by the schema and never reaches the API.8 9 See Migrating from 1.x.

Output

The result is the search envelope shared by all search tools:4 6

Field Type Meaning
awards array of award records This page’s records: summaries, full records or a printFields projection
totalResults integer Total matching awards (the API caps this at 10000)
offset, limit integer The page requested
returned integer Records on this page
hasMore boolean More records can be fetched
nextOffset integer, optional Present when hasMore: pass it as offset
capped boolean True when the match count hit the API cap of 10000; narrow the search to see the rest
pageSummary object totalEstimatedAmt, byInstitution and byProgram, over this page only
hint string, optional One-line paging guidance for this result (the same text as content[1])

The MCP result carries the envelope as structuredContent, a JSON text copy in content[0] and the one-line paging hint again in content[1]. The hint is also the envelope’s hint field, because some clients, Claude Code among them, pass only the structured content or the first block to the model.3 6 See Search results for the details and Award record for the record fields.

Behaviour

  • Keyword matching. Words separated by spaces match awards that contain any of them; join words with uppercase AND to require all of them. Put one phrase in double quotes to match it exactly. Award types such as CAREER are keywords, not program names.3 4
  • Keyword syntax. The API reads everything from the first double quote to the last as one phrase, so two quoted phrases ("wildfire smoke" "air quality") match almost nothing. An unmatched quote or parenthesis fails upstream with a generic AwardAPI-004 notice. The schema therefore rejects such a keyword before any API call:4 9 10
    • keyword has an unmatched double quote
    • keyword has an unmatched parenthesis
    • keyword can hold only one quoted phrase (the NSF API reads everything from the first quote to the last as one phrase); quote one phrase and join other words with AND, e.g. "wildfire smoke" AND health

    One phrase joined to other words with AND ("wildfire smoke" AND health), and parenthesized groups such as (wildfire OR drought) AND smoke, are accepted.9

  • Phrase fields. The client wraps a multi-word awardeeName, perfLocation or fundProgramName in double quotes (removing any quotes inside it), because the API matches unquoted multi-word values word by word.11 Give institutions their full official name (“Massachusetts Institute of Technology”, not “MIT”).2
  • Fields that are not phrase-quoted. Quoting is per field on the API. A quoted pdPIName or coPDPI returns nothing, so pass them unquoted. awardeeCity matches any word whether quoted or not, so pair a multi-word city with awardeeStateCode.7
  • Names. An unquoted pdPIName “First Last” matches whole words of the PI’s name, so it finds that person. It is the better choice than piFirstName plus piLastName: piFirstName alone is fuzzy, and piLastName is a prefix match (Roos also finds Roosevelt), so that pair can return other people whose surname starts with the searched one.10 coPDPI with a full name matches that person; a last name alone matches every Co-PI with that surname.7
  • Verified filters. awardeeZipCode, awardeeDistrictCode (for example AZ07), cfdaNumber, parentUeiNumber, id and both country codes were checked against the live API on 2026-12-04.7
  • Action dates. dateStart and dateEnd filter the record’s date field (the award action date), not its startDate.7
  • Rejected parameters. If the API rejects a parameter, it answers HTTP 200 with an AwardAPI-002 service notification. The client turns that into an error, so the call fails with a message such as AwardAPI-002: Invalid parameter(s) ... instead of returning an empty page.11 2
  • Order. Results come newest start date first. Awards with equal start dates can change order between calls, so a page boundary may repeat or skip one.3
  • Retries and cancellation. The client retries network errors, timeouts, HTTP 5xx and 429 (two retries by default, each attempt with the full NSF_API_TIMEOUT_MS) and passes the MCP request’s cancellation signal to the HTTP request.11 See NSF API client.

The endpoint behind this tool is GET /awards.json. Failure messages are listed in Errors.

Examples

The first three awards for the keyword wildfire:

{ "keyword": "wildfire", "limit": 3 }

Abridged result, built from a trimmed live response (totalCount 981). Person names are elided here, and the counts change as NSF adds awards.12

{
  "awards": [
    {
      "id": "2535052",
      "title": "EPSCoR Graduate Fellowship Program (EGFP): Graduate fellowships to propel wildfire research in Montana",
      "pdPIName": "...",
      "coPDPI": ["..."],
      "awardeeName": "University of Montana",
      "awardeeCity": "MISSOULA",
      "awardeeStateCode": "MT",
      "startDate": "03/15/2027",
      "expDate": "02/28/2030",
      "estimatedTotalAmt": 1113000,
      "fundsObligatedAmt": 1113000,
      "fundProgramName": "EGF-EPSCoR Graduate Fellowship",
      "dirAbbr": "EDU",
      "divAbbr": "SFT",
      "transType": "Standard Grant",
      "activeAwd": true,
      "hasOutcomesReport": false
    },
    { "id": "2623880", "awardeeName": "University of Wyoming", "estimatedTotalAmt": 206823, "...": "..." },
    { "id": "2539349", "awardeeName": "Boise State University", "estimatedTotalAmt": 888026, "...": "..." }
  ],
  "totalResults": 981,
  "offset": 0,
  "limit": 3,
  "returned": 3,
  "hasMore": true,
  "nextOffset": 3,
  "capped": false,
  "pageSummary": {
    "totalEstimatedAmt": 2207849,
    "byInstitution": {
      "University of Montana": 1,
      "University of Wyoming": 1,
      "Boise State University": 1
    },
    "byProgram": {
      "EGF-EPSCoR Graduate Fellowship": 1,
      "Fire Science Innovations": 1,
      "WaLCZ-Water, Land, & Crit Zone": 1
    }
  },
  "hint": "Showing 3 of 981 matching awards (offset 0). More results are available: call again with offset=3."
}

The paging hint, in hint and in content[1], for this page:6 3

Showing 3 of 981 matching awards (offset 0). More results are available: call again with offset=3.

Active wildfire awards to Arizona institutions with an estimated total of at least $500,000:

{
  "keyword": "wildfire",
  "awardeeStateCode": "AZ",
  "estimatedTotalAmtFrom": 500000,
  "status": "active"
}

The handler sends keyword, awardeeStateCode, estimatedTotalAmtFrom, ActiveAwards=true, offset=0 and rpp=25.1

Awards with an exact keyword phrase in one congressional district, returning only three fields:

{
  "keyword": "\"tree rings\"",
  "awardeeDistrictCode": "AZ07",
  "printFields": "id,title,startDate"
}
  1. search_nsf_awards handler ↩ ↩2 ↩3 ↩4 ↩5

  2. User guide ↩ ↩2 ↩3

  3. MCP server factory, instructions, tool registration and toCallToolResult ↩ ↩2 ↩3 ↩4 ↩5

  4. Tool input and output schemas ↩ ↩2 ↩3 ↩4

  5. search_nsf_awards tests ↩

  6. Shared tool helpers (record shaping, status mapping, search envelope, paging hint) ↩ ↩2 ↩3 ↩4

  7. Live API behaviour notes in CLAUDE.md ↩ ↩2 ↩3 ↩4 ↩5

  8. Project README (migration notes) ↩

  9. Input and output schema tests ↩ ↩2 ↩3

  10. Live NSF API tests (name and keyword matching) ↩ ↩2

  11. NSF API client ↩ ↩2 ↩3

  12. Trimmed live search response for keyword=wildfire ↩

Sources

  1. search_nsf_awards handler tool-handler
  2. Tool input and output schemas tool-schema
  3. Shared tool helpers (record shaping, status mapping, search envelope, paging hint) shared-tools
  4. NSF API client api-client
  5. MCP server factory, instructions, tool registration and toCallToolResult server
  6. search_nsf_awards tests search-tests
  7. Input and output schema tests schema-tests
  8. Trimmed live search response for keyword=wildfire wildfire-fixture
  9. User guide usage-guide
  10. Project README (migration notes) readme
  11. Live API behaviour notes in CLAUDE.md api-behaviour
  12. Live NSF API tests (name and keyword matching) live-api-tests