Skip to main content
Glama
nonprofit-explorer-mcp

nonprofit-explorer-mcp

by theRocket

nonprofit-explorer-mcp

An MCP (Model Context Protocol) server that exposes ProPublica's Nonprofit Explorer API as tools, so an MCP-aware assistant can search IRS Form 990 nonprofit tax filing data and pull org-level financial/compensation detail directly, instead of being hand-fed curl commands or screen-scraped pages.

This is an independent, unofficial project — not affiliated with or endorsed by ProPublica. It's a thin wrapper around their public, unauthenticated API. See propublica/990-xml-reader (IRSx) for a complementary tool that parses bulk raw IRS XML 990 filings rather than querying the hosted search API.

Tools

  • search_organizations — keyword search over org name/alt name/city, with optional filters for state, NTEE category, and 501(c) subsection. Wraps GET /search.json.

  • get_organization — full detail for one org by EIN: filing history and extracted financials per tax year (revenue, expenses, assets, liabilities, and aggregate officer compensation), plus links to source PDF/XML filings. Wraps GET /organizations/:ein.json.

The underlying API only documents these two endpoints — no auth, no API key, reasonable use expected (it's a public service, not built for bulk scraping).

Related MCP server: Charity MCP Server

Installation

pip install -e .

Requires Python >= 3.10.

Usage with Claude Code

claude mcp add nonprofit-explorer -- nonprofit-explorer-mcp

Or point at it directly in an MCP client config:

{
  "mcpServers": {
    "nonprofit-explorer": {
      "command": "nonprofit-explorer-mcp"
    }
  }
}

Example

Search for "Pedal Project" in Washington state, then look up its EIN.

search_organizations(q="Pedal Project", state="WA")
-> {"ein": 911817868, "name": "Pedal Project", "city": "Bellingham", "state": "WA", ...}

get_organization(ein=911817868)
-> full filing history, financials, and officer compensation by year

Known limitations

  • No per-person compensation. get_organization returns only an aggregate officer/director compensation figure per tax year (e.g. compnsatncurrofcr for full Form 990 filers, pct_compnsatncurrofcr for 990-EZ filers). It does not return the named officer/key-employee compensation table (Part IV of the 990-EZ, or Schedule J / Part VII of the full 990) — that breakdown is rendered by the ProPublica website from the underlying filing XML, but isn't in this API's JSON response. To get a named breakdown today you'd need to fetch and parse the filing's XML/PDF separately (e.g. with IRSx).

  • Regular employee wages are invisible. For 990-EZ filers, total salary/wage expense appears only as a lump-sum line in Part I (not surfaced by this API at all — you'd have to read the source PDF/XML), with no per-employee detail. For full 990 filers, only officers/directors/key employees above the reporting threshold are itemized; rank-and-file pay isn't disclosed anywhere in the filing.

  • Extracted data lags the live site. A newly filed return (e.g. filed mid-year) may show up on the ProPublica website before this API's filings_with_data array is backfilled with its extracted figures.

  • Filing/PDF downloads aren't included. pdf_url values returned by the API are gated behind ProPublica's bot protection and can't be fetched with a plain HTTP client (they return an interstitial "Security Check" page instead of the PDF) — only the API's own JSON endpoints are reliably scriptable.

  • 990-N ("e-Postcard") filers return no financial data at all. Organizations with gross receipts under $50,000/year can file the minimal Form 990-N instead of a 990/990-EZ, which discloses no revenue, expense, asset, or compensation figures — just a confirmation that the org still qualifies. For these orgs, get_organization returns empty filings_with_data and filings_without_data arrays with no indication of why (as opposed to the org simply having no filings on record at all). The ProPublica website distinguishes this case ("Years with postcard filings (no financial data)"); this API does not.

Development

pip install -e ".[dev]"

(No dev dependencies yet — add test tooling here as the project grows.)

License

MIT

Available Tools

2 tools
get_organizationA

Look up a single nonprofit organization by EIN.

Returns organization details plus its full filing history: for each tax year, extracted financial data where available (revenue, expenses, assets/liabilities, and compensation reported for officers/key employees), and links to the underlying 990/990-EZ/990-PF PDF and XML documents.

Args: ein: The organization's 9-digit Employer Identification Number as an integer with no dashes (e.g. 911817868 for EIN 91-1817868).

Inputs: ein (required).

search_organizationsA

Search ProPublica's Nonprofit Explorer for organizations.

Matches against organization name, alternate name, and city. Results are paginated 25 at a time; use page to page through num_pages.

Args: q: Keyword search string. Supports "exact phrases" in quotes, +required terms, and -excluded terms (e.g. delta -dental). Terms not prefixed with + or - are OR'd together. state: Two-letter USPS state/territory abbreviation (e.g. "WA"). Use "ZZ" for entities outside the US that file a US Form 990. ntee: National Taxonomy of Exempt Entities major group, 1-10 (1=Arts/Culture/Humanities, 2=Education, 3=Environment/Animals, 4=Health, 5=Human Services, 6=International/Foreign Affairs, 7=Public/Societal Benefit, 8=Religion Related, 9=Mutual/Membership Benefit, 10=Unknown/Unclassified). c_code: 501(c) subsection, e.g. 3 for 501(c)(3), 4 for 501(c)(4), or 92 for section 4947(a)(1) trusts. page: Zero-indexed result page.

Inputs: q, ntee, page, state, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    search_organizations (keyword/filter discovery) and get_organization (EIN-based detail lookup) have clearly distinct purposes with no overlap. An agent can unambiguously pick the right tool for discovery versus retrieval.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern (search_organizations, get_organization) with matching snake_case and matching domain noun. The only variation is plural vs singular, which reflects the semantics.

    Tool Count4/5

    Two tools is on the thin side of the typical 3-15 range, but each maps cleanly to a distinct operation on a read-only public-data API. The scope is genuinely narrow enough that a third tool isn't obviously required.

    Completeness4/5

    The core workflow — search for an organization, then retrieve its EIN-keyed details and filing history — is fully covered. Minor gaps exist (e.g., no direct filing-level retrieval or cross-organization financial filtering), but agents can work around them via the search filters.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides access to ProPublica's Nonprofit Explorer API, enabling AI models to search and analyze nonprofit organizations' Form 990 data for CRM integration and prospect research.
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to look up IRS nonprofit data, verify tax-deductible charity status, and search for organizations by name or location using the CharityAPI database.
      4
      3
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying nonprofit organization data through the ProPublica Nonprofit Explorer API, providing access to financial and operational information without authentication.
      67 npm
      MIT