Science
Data source: NIH RePORTER API
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nih-reporter/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nih-reporter": {
"url": "https://context.gnist.ai/mcp/nih-reporter/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/nih-reporter/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_projects", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/nih-reporter/
5 endpoints available:
GET /rest/nih-reporter/search_projectsGET /rest/nih-reporter/get_projectGET /rest/nih-reporter/get_publicationsGET /rest/nih-reporter/get_funding_trendsGET /rest/nih-reporter/report_feedback
Shell
curl "https://context.gnist.ai/rest/nih-reporter/search_projects?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nih-reporter/search_projects",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc nih-reporter
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
search_projectsSearch NIH-funded research projects across all NIH institutes.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search term for NIH-funded projects (e.g. "cancer immunotherapy", "CRISPR gene editing", "Alzheimer biomarkers"). |
fiscal_years | any | optional | Fiscal years to filter by (e.g. [2023, 2024]). Omit for all years. |
org_names | any | optional | Organization names to filter by (e.g. ["Harvard", "MIT"]). |
pi_name | any | optional | Principal investigator name to filter by. |
activity_codes | any | optional | NIH activity codes (e.g. ["R01", "R21", "U01"]). R01=standard research, R21=exploratory, K=career development, U=cooperative agreement, P=program project. |
limit | integer | optional | Number of results (1–50, default 20). (default: 20) |
get_projectGet detailed information about a specific NIH-funded project.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_num | string | required | NIH project number (e.g. "R01CA227622", "5R01AI123456-03"). Found in search_projects results. |
get_publicationsGet PubMed publications linked to an NIH-funded project.
| Parameter | Type | Required | Description |
|---|---|---|---|
project_num | string | required | NIH core project number (e.g. "R01CA227622"). Found in search_projects results. |
limit | integer | optional | Number of results (1–50, default 20). (default: 20) |
get_funding_trendsTrack NIH funding trends for a research topic across fiscal years.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Research topic to track funding for (e.g. "machine learning", "mRNA vaccines", "climate health"). |
fiscal_years | list[integer] | required | Fiscal years to compare (e.g. [2020, 2021, 2022, 2023, 2024]). Minimum 1, maximum 20. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |