{
  "openapi": "3.0.1",
  "info": {
    "title": "NIH Reporter Intelligence MCP — $45B Federal Research",
    "description": "Search, filter, and analyze NIH research grant awards from the NIH RePORTER v2 database via a Model Context Protocol (MCP) server. Query $45B+ in annual NIH funding by disease area, PI, institution, agency, and award type. This Apify Actor exposes structured grant data to AI a...",
    "version": "0.1",
    "x-build-id": "sm3ZnEQpVgMi0UD5e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/andrew_avina~nih-reporter-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-andrew_avina-nih-reporter-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/andrew_avina~nih-reporter-mcp/runs": {
      "post": {
        "operationId": "runs-sync-andrew_avina-nih-reporter-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/andrew_avina~nih-reporter-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-andrew_avina-nih-reporter-mcp",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "title": "Keyword Search (Title + Abstract)",
            "type": "string",
            "description": "Search keyword matched against project title and abstract text. Examples: 'cancer immunotherapy', 'CRISPR gene editing', 'machine learning electronic health records', 'Alzheimer tau protein'.",
            "default": ""
          },
          "organization": {
            "title": "Institution / Organization",
            "type": "string",
            "description": "Filter by grantee institution name. Examples: 'Harvard University', 'Johns Hopkins University', 'Mayo Clinic', 'Stanford University', 'University of California'.",
            "default": ""
          },
          "piLastName": {
            "title": "PI Last Name",
            "type": "string",
            "description": "Principal Investigator last name. Use with piFirstName to narrow results when the name is common.",
            "default": ""
          },
          "piFirstName": {
            "title": "PI First Name",
            "type": "string",
            "description": "Principal Investigator first name (optional, use with piLastName).",
            "default": ""
          },
          "agency": {
            "title": "NIH Agency / Institute",
            "enum": [
              "",
              "NCI",
              "NHLBI",
              "NIAID",
              "NINDS",
              "NIMH",
              "NIDDK",
              "NIGMS",
              "NEI",
              "NIDCR",
              "NICHD",
              "NIA",
              "NIAAA",
              "NIDA",
              "NIMHD",
              "NIBIB",
              "NHGRI",
              "NIEHS",
              "NLM",
              "NCATS",
              "OD"
            ],
            "type": "string",
            "description": "NIH institute or center code. NCI=National Cancer Institute, NHLBI=Heart/Lung/Blood, NIMH=Mental Health, NIA=Aging, NIAID=Allergy/Infectious Diseases, NINDS=Neurological Disorders, NIDDK=Diabetes/Digestive/Kidney, NIGMS=General Medical Sciences, NHGRI=Genome Research, NIEHS=Environmental Health.",
            "default": ""
          },
          "awardType": {
            "title": "Award / Activity Type",
            "enum": [
              "",
              "R01",
              "R21",
              "R03",
              "R33",
              "R34",
              "R41",
              "R42",
              "R43",
              "R44",
              "K99",
              "K01",
              "K08",
              "K23",
              "K24",
              "U01",
              "U19",
              "U54",
              "P01",
              "P30",
              "P50",
              "T32",
              "F30",
              "F31",
              "F32"
            ],
            "type": "string",
            "description": "NIH activity code for the grant mechanism. R01=standard research grant (most common), R21=exploratory/developmental, R03=small grant, K99/R00=career transition, U01=cooperative agreement, P01=program project, T32=training grant.",
            "default": ""
          },
          "fiscalYear": {
            "title": "Fiscal Year",
            "minimum": 0,
            "maximum": 2025,
            "type": "integer",
            "description": "NIH fiscal year to search (Oct 1 – Sep 30). 2024=FY2024. Defaults to 2023+2024 combined when not specified. Range: 2000–2025.",
            "default": 0
          },
          "minAmount": {
            "title": "Minimum Award Amount (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Return only grants with award amount greater than or equal to this value. Example: 500000 for $500K+ grants. Applied as a post-filter.",
            "default": 0
          },
          "limit": {
            "title": "Result Limit",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of grant records to return. In MCP server mode this is ignored. In batch mode, max is 500. Results are sorted by award amount descending.",
            "default": 25
          },
          "serveMcp": {
            "title": "MCP Server Mode",
            "type": "boolean",
            "description": "When enabled, starts an MCP-compatible HTTP server on port 4321 instead of returning a batch dataset. Use this to connect Claude Desktop, Cursor, or any MCP client directly to the NIH RePORTER database. The actor runs continuously until stopped.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}