Unpaid invoice nudge: find overdue Stripe invoices and draft a follow-up for each deal owner

This recipe uses the official Stripe and HubSpot MCP servers, and both work in Claude and ChatGPT. Steps that write, send or spend credits wait for your approval.

IntermediateAEsAbout 10–15 minutes a week

Who it's for: AEs whose customers pay through Stripe and who want to know which sent invoices are still unpaid, matched to the HubSpot deal and owner, with a polite nudge drafted for each. Everything stays read-only. HubSpot can be swapped for Salesforce, Attio or Pipedrive.

You need:

Different tools, or a different job? Build a recipe with Stripe and HubSpot and your other tools, and get a prompt your assistant can design from.

Paste these prompts, in order

Use one conversation. Nothing is written, sent or spent until you approve it.

  1. In Stripe, list my open invoices that were sent more than {days} days ago and are still unpaid: customer, customer email, invoice number, amount, status, sent date and days open. Leave out draft invoices. Read only. Don't change anything in Stripe.

  2. For each invoice, find the matching company and deal in HubSpot by the customer's email domain. Show the deal name, stage, owner and any note from the last 30 days. List invoices with no match separately. Don't change any records.

  3. Skip any invoice where a recent note says payment or a PO is in progress. For the rest, write a short, polite follow-up from the deal owner to the billing contact: invoice number, amount, sent date, and a question about what's blocking it. Show me the text only. Don't send anything.

  4. Give me a summary by owner: how many invoices, total amount open, and which drafts are ready. If I ask for a new payment link or any Stripe change, show me exactly what you'll do and do it only after I approve it.

    Waits for your approval

Rules it follows

These are in the download too. Keep them when you change the prompts.

  • Read only in Stripe. Don't create, finalize or void invoices, change customers or subscriptions, or create payment links unless I approve it.
  • Never issue a refund.
  • Read only in HubSpot. Don't change any deal, contact or owner.
  • Write follow-up emails as text only. Never send email.
  • Skip any invoice where the deal notes show payment is already in progress.

Where does this go wrong?

And what to check each time.

Nudging a customer who already paid

The customer may have paid another way, or already told the owner the payment is on its way. Before drafting, check the HubSpot deal notes for a recent payment or PO comment, and skip anything with one.

Draft invoices counted as sent

An invoice that was never finalized hasn't reached the customer. Ask for open invoices only, and list each invoice's status so you can spot drafts.

Wrong deal or owner

A Stripe customer name may not match the HubSpot company name. Match on email domain, show the domain next to each match, and leave unmatched invoices for you to check instead of guessing.

An accidental change in Stripe

Stripe's MCP server can void and finalize invoices and create payment links. Tell it up front that the run is read-only, and stop it if it proposes any Stripe write.

Which MCP servers does it use?

Every server is confirmed in: ClaudeChatGPT

Stripe

Payments & Billing

Works in
Claude, ChatGPT, Claude Code, Cursor
Access
Read + write
Credits
Not confirmed
Up · authDocs · 2026-11-24. Endpoint · 2026-11-30.

HubSpot

CRM & Marketing

Works in
Claude, ChatGPT
Access
Read + write
Credits
Not confirmed
Up · authDocs · 2026-11-20. Endpoint · 2026-11-30.

How do I set it up?

Every server in this recipe is confirmed for Claude and ChatGPT. Connect each one, then paste the prompts below into one conversation.

Developer setup

HubSpot

HubSpot's remote server docs do not name Claude Code or Cursor. They say any MCP client that supports OAuth with PKCE can connect to https://mcp.hubspot.com after you create an MCP connector. That does not confirm those two apps, so this listing marks both as not confirmed.

Source: developers.hubspot.com, checked 2026-11-02

The local Developer MCP server is a different product. Its setup page names Claude Code and Cursor, and you install it with the HubSpot CLI (hs mcp setup). It runs on your computer and is for building apps and CMS content. It is not the CRM server at the URL above.

Source: developers.hubspot.com, checked 2026-11-02Source: developers.hubspot.com, checked 2026-11-02Source: developers.hubspot.com, checked 2026-11-02

For a remote client, create the connector under Development, then MCP Connectors. Copy the client ID, client secret, and redirect URL. The redirect URL in the client has to match the connector. PKCE is required. If OAuth fails, check PKCE and that redirect URL before you change anything else.

Source: developers.hubspot.com, checked 2026-11-02

Any client that accepts a remote MCP URL can use the config below. That does not confirm Claude Code or Cursor.

Source: developers.hubspot.com, checked 2026-11-02
{
  "mcpServers": {
    "hubspot": {
      "url": "https://mcp.hubspot.com"
    }
  }
}
  • Stripe: Sign in with OAuth, or pass an API key as a Bearer token for headless use.

Put this in .mcp.json (Claude Code, project root) or ~/.cursor/mcp.json (Cursor). Swap the example keys for your own, and don't commit real ones. Remove the // comment lines if your client requires strict JSON.

{
  "mcpServers": {
    "stripe": {
      "url": "https://mcp.stripe.com"
      // headless alternative: "headers": { "Authorization": "Bearer YOUR_STRIPE_API_KEY" }
    }
  }
}

How long does it take, and what does it cost?

Estimate About 10–15 minutes a week, most of it reading the drafts.

Assumptions: One weekly run over about 5 open invoices and their matching deals.

  • Stripe: Reads only: open invoices and their customers. No writes. Credit use not confirmed by Stripe.
  • HubSpot: A company, deal and owner lookup per invoice, plus recent notes on each deal. No writes. Credit use not confirmed by HubSpot. Everyday work through HubSpot connectors for Claude, ChatGPT, Gemini, and Microsoft Copilot, plus the MCP server and Agent CLI, comes included with a HubSpot seat and is not an extra charge. For power users, HubSpot Credits can expand the capacity included with the seat. Third-party agents on HubSpot's existing APIs count toward the plan's included API capacity and do not consume credits. Usage in HubSpot's governed agent environment, including purpose-built agentic APIs, is paid for with HubSpot Credits. How much everyday capacity a seat includes is Not confirmed. All functionality in Claude is subject to HubSpot's API usage limits and guidelines. Source: hubspot.com, checked 2026-11-20

Exact credit costs depend on your plan with each vendor. Check the tool pages before a large run.

Can I run it on a schedule? (optional)

  • Run it weekly, after your usual payment terms have passed, for example every Monday with {days} set to 14.
  • In a scheduled run, stop at the table and the drafts. You send each email yourself.
  • For a headless run, Stripe accepts an agent API key. From December 2026 it rejects full-access secret keys and restricted keys without the Agent tag, so use a restricted Agent key with read access only.

Gotchas

  • Stripe's listed tools cover invoices, customers and payment links, not quotes. HubSpot's MCP server can create quotes (beta) but reading quotes isn't listed. This recipe works from invoices only, so an unsigned quote that never became an invoice won't show up.
  • HubSpot needs admin setup: non-admin users need a Super Admin to approve the connector first.
  • In Claude Team and Enterprise, an owner must add the Stripe connector to the workspace before you can connect it.
  • Stripe's MCP server can write: it creates, finalizes and voids invoices, and issues refunds with human confirmation. Connect with an account or restricted key that only has the read access this recipe needs.
  • Using Salesforce instead? Its hosted MCP server needs Enterprise Edition or above and an admin-created External Client App. Use the read-only platform/sobject-reads server for this recipe. Salesforce says Hosted MCP is for customers with Flex Credits, and you may be billed. That metering is not active yet.

Further reading

Hand-picked articles, videos and podcasts about Stripe and HubSpot. They're editorial picks, not sources for the facts on this page. All resources

Download

Get the prompts, guardrails and expected output as one Markdown file. Paste it into a Claude Project or ChatGPT project's instructions, or save it as CLAUDE.md for Claude Code.

Download unpaid-invoice-nudge.md

Vendor sites: HubSpot. If we join an affiliate program, these links will be labeled as affiliate links.