GraphMyAnything

Stripe MRR → hosted metrics

Use the graphmyanything-stripe helper to pull MRR safely and push daily points into hosted memory.

Install

Requires Node.js ≥ 22.13.

Pin

npx -y graphmyanything-stripe@0.1.1

Stripe key: rk_ restricted read

  • Create a restricted Stripe API key with read-only access to the resources the script needs (subscriptions, invoices, or MRR helpers as documented in the package).
  • Keys look like rk_live_… or rk_test_… — not a full secret key.
  • Store the key in your scheduler (n8n credentials), not in agent chat.

Hosted upload

  1. Mint a hosted API key from graphmyanything.com/account (or via device sync).
  2. Set GRAPHMYANYTHING_API_KEY (alias GMA_API_KEY) for the upload step.
  3. The pipeline writes stripe.mrr.usd (or your metric name) with POST /api/v1/track or batch endpoints.

After points land, agents can query, insight, or chart without re-reading Stripe. Example prompts live in Examples.

n8n

Typical flow: Cron → Execute Command (Node ≥ 22.13) running graphmyanything-stripe → optional HTTP to hosted track → notify Slack with a /c/<id> chart URL from a follow-up chart call.