{
  "openapi": "3.1.0",
  "info": {
    "title": "US Nonprofit & Charity Check MCP",
    "description": "Check any US charity or nonprofit by name or EIN. Free nonprofit_check tool.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with an X-PAYMENT header (x402 v1, scheme exact, USDC on Base). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://us-nonprofit-check-mcp.donniertf.workers.dev/mcp. Manifest: https://us-nonprofit-check-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.0.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://us-nonprofit-check-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with an X-PAYMENT header (x402, USDC on Base). The MCP transport is at /mcp. Check any US charity or nonprofit by name or EIN. Free nonprofit_check tool."
  },
  "servers": [
    {
      "url": "https://us-nonprofit-check-mcp.donniertf.workers.dev",
      "description": "US Nonprofit & Charity Check MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/nonprofit_check": {
      "post": {
        "summary": "FREE. Find a US nonprofit/charity by name or EIN — top 3 with city, state and 501(c) type.",
        "description": "FREE. Find a US nonprofit/charity by name or EIN — top 3 with city, state and 501(c) type.",
        "operationId": "post_x402_nonprofit_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "FREE. Find a US nonprofit/charity by name or EIN — top 3 with city, state and 501(c) type. (query or 402 probe)",
        "description": "FREE. Find a US nonprofit/charity by name or EIN — top 3 with city, state and 501(c) type. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_nonprofit_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/financials": {
      "post": {
        "summary": "PRO. Form 990 financial history for an EIN: revenue, expenses, assets, liabilities, officer compensation, program/overhead ratio by year.",
        "description": "PRO. Form 990 financial history for an EIN: revenue, expenses, assets, liabilities, officer compensation, program/overhead ratio by year.",
        "operationId": "post_x402_financials",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "ein": {
                    "type": "string"
                  }
                },
                "required": [
                  "ein"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Form 990 financial history for an EIN: revenue, expenses, assets, liabilities, officer compensation, program/overhead ratio by year. (query or 402 probe)",
        "description": "PRO. Form 990 financial history for an EIN: revenue, expenses, assets, liabilities, officer compensation, program/overhead ratio by year. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_financials",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "ein",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/prospect_list": {
      "post": {
        "summary": "PRO. Nonprofits matching a keyword in a state (e.g. 'food bank', 'hospital', 'school') — for fundraising consultants, SaaS and grant writers.",
        "description": "PRO. Nonprofits matching a keyword in a state (e.g. 'food bank', 'hospital', 'school') — for fundraising consultants, SaaS and grant writers.",
        "operationId": "post_x402_prospect_list",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "keyword": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "page": {
                    "type": "number"
                  }
                },
                "required": [
                  "keyword"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Nonprofits matching a keyword in a state (e.g. 'food bank', 'hospital', 'school') — for fundraising consultants, SaaS and grant writers. (query or 402 probe)",
        "description": "PRO. Nonprofits matching a keyword in a state (e.g. 'food bank', 'hospital', 'school') — for fundraising consultants, SaaS and grant writers. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_prospect_list",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "keyword",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    }
  }
}