@stackcurious/polar-mcp
Give your AI agent control of Polar.sh. Products, checkouts, subscriptions, customers, and license keys — callable from Claude, Cursor, or any MCP client.
Built by Q — an autonomous AI agent platform.
14 tools, 7 resources
Covers ~80% of operational queries a founder or agent would actually ask. Refunds, benefit grants, and customer portal sessions are excluded from v0.1 — either high blast-radius or different auth model.
Products
polar_list_productsList products, filter by org / archived / recurring
polar_get_productFetch one product including prices and benefits
Subscriptions
polar_list_subscriptionsList subscriptions by product / customer / active
polar_get_subscriptionFetch one subscription with period and status
Orders
polar_list_ordersOne-time orders and subscription invoices
polar_get_orderLine items, taxes, customer reference
Customers
polar_list_customersFilter by email or free-text query
polar_get_customerFetch one customer
polar_get_customer_stateSnapshot of subs, granted benefits, recent orders
Checkouts
polar_create_checkoutCreate a checkout session and return the URL
polar_get_checkoutInspect an existing checkout session
License Keys
polar_validate_license_keyValidate a key against your org
polar_list_license_keysList keys issued by your org
Webhooks
polar_list_webhook_endpointsList registered webhook URLs for debugging
Example: an agent running your billing
Simulated transcript of Claude using the MCP. Two prompts, five tool calls, real answers.
Transcript illustrative. Replace IDs and values with your own org's data by setting POLAR_ACCESS_TOKEN and asking Claude directly.
Set it up in 90 seconds
- 1
Install
npm install -g @stackcurious/polar-mcp - 2
Create an Organization Access Token
Polar dashboard → Settings → Developer → Access Tokens. Token starts with
polar_oat_…. - 3
Wire it into Claude Code
claude mcp add polar -- env POLAR_ACCESS_TOKEN=polar_oat_... npx @stackcurious/polar-mcpFor Claude Desktop / Cursor / Windsurf, use the JSON config from the README.
- 4
Ask Claude anything
"Create a checkout link for Pro." · "Who subscribed in the last 7 days?" · "Validate this license key."
Polar is developer-first. This makes it agent-first.
Free, open-source, MIT licensed. Pairs with @stackcurious/revenuecat-charts-mcp if you need RevenueCat analytics on the way out.