Government
Data source: ProPublica Nonprofit Explorer API
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nonprofits/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nonprofits": {
"url": "https://context.gnist.ai/mcp/nonprofits/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/nonprofits/" \
-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_nonprofits", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/nonprofits/
3 endpoints available:
GET /rest/nonprofits/search_nonprofitsGET /rest/nonprofits/get_nonprofitGET /rest/nonprofits/report_feedback
Shell
curl "https://context.gnist.ai/rest/nonprofits/search_nonprofits?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nonprofits/search_nonprofits",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc nonprofits
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
search_nonprofitsSearch 1.6M+ IRS-registered US nonprofit organizations.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query — name, city, or keyword. Example: 'red cross'. |
state | any | optional | Two-letter US state code. Example: 'CA'. |
ntee | any | optional | NTEE major group: 1=Arts, 2=Education, 3=Environment, 4=Health, 5=Human Services, 6=International, 7=Public Benefit, 8=Religion, 9=Mutual Benefit, 10=Unknown. |
c_code | any | optional | 501(c) subsection code. Use 3 for 501(c)(3) charitable orgs. |
page | integer | optional | Page number (0-indexed, 25 results per page). (default: 0) |
get_nonprofitGet detailed information and IRS 990 financial filings for a US nonprofit.
| Parameter | Type | Required | Description |
|---|---|---|---|
ein | string | required | Employer Identification Number. Example: '14-2007220' or '142007220'. |
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") |