Model Context Protocol

Connect CharityAPI to your AI agent

Give Claude and other MCP-compatible agents direct, structured access to US nonprofit data — lookups, search, and public-charity checks, straight from the IRS.

You'll need a free CharityAPI account.

Create a free account

Claude Code Quick Start

Requires Claude Code. Run this in your terminal:

claude mcp add --transport http charityapi https://api.charityapi.org/mcp
1

Claude Code opens your browser to authorize access to your CharityAPI account.

2

Click "Authorize" to grant access. This is a one-time step — tokens refresh automatically after that.

3

Restart Claude Code. All 6 CharityAPI tools are now available.

Alternative: connect with an API key

Prefer not to use the browser OAuth flow — or connecting an agent that can't open one? You can authenticate with an Authorization: Bearer header instead. Replace YOUR_API_KEY with a key from your API keys page.

claude mcp add --transport http charityapi https://api.charityapi.org/mcp --header "Authorization: Bearer YOUR_API_KEY"

With this method there's no authorization step — restart your agent and the tools are ready. Keep your API key out of shared config; treat it like a password.

Try it out

Once connected, ask your agent things like:

"Search for animal welfare charities in California"
"Is EIN 13-1837418 a public charity?"
"What does NTEE code A01 mean?"
"Show me organizations added in the last 30 days"

Available tools

Organization Tools

search_nonprofits

Search for nonprofits by name, keyword, or location

get_nonprofit

Get the full record for a nonprofit by its 9-digit EIN

check_deductibility

Check whether donations to an organization are tax-deductible

list_nonprofits_added_since

List organizations added after a given date, one page at a time

NTEE Code Tools

get_ntee_code

Look up what an NTEE classification code means

Account Tools

get_my_usage

View your rate limit and request count

Need help?

All tools are read-only. For questions or issues, contact our support team.