Install
Requires Node.js ≥ 22.13.
Pin
npx -y graphmyanything-stripe@0.1.1Stripe 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_…orrk_test_…— not a full secret key. - Store the key in your scheduler (n8n credentials), not in agent chat.
Hosted upload
- Mint a hosted API key from graphmyanything.com/account (or via device sync).
- Set
GRAPHMYANYTHING_API_KEY(aliasGMA_API_KEY) for the upload step. - The pipeline writes
stripe.mrr.usd(or your metric name) withPOST /api/v1/trackor 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.