Polar as a tool your agent can call
A remote MCP server with OAuth, so there are no keys to paste. Three meta-tools keep the context small, so the agent only loads the operations it needs.
Polar MCP server
Connect
OAuth
claude mcp add --transport http polar https://mcp.polar.sh/mcp/polar-mcp
Claude Code
Cursor
ChatGPT
Claude Desktop
Your browser opens to sign in and authorize. No API key to copy into the agent.
search_tools
The agent describes what it wants to do and gets back the operations that fit.
describe_tools
It loads the exact inputs for the best matches, and nothing else.
execute_tool
It runs the operation with validated arguments and reads the result.
100 operations
Products, customers, subscriptions, orders, benefits, refunds and metrics.

zsh
Typed clients underneath
Start with an adapter for your framework. Underneath sit the typed TypeScript and Python clients for everything else.
One file in your framework gives you a checkout route, a customer portal and verified webhooks. Pick yours to see the checkout handler.
The adapters are built on these. Reach for them when you need the rest of the API.
For Node, Bun, Deno and the browser. The import path pins your API version and everything after that is autocomplete.
npm install @polar-sh/sdk
index.ts
Sync and async clients for Django, Flask and FastAPI, typed end to end.
pip install polar-sdk
main.py
The whole API from the terminal
Sign in, tunnel webhooks, fire events and call any endpoint without leaving the terminal. Every command can speak JSON.

zsh
--json
Auth, webhook and the API commands print JSON on request, so a coding agent can drive the CLI.
webhook trigger --list
The full webhook catalog with descriptions. Pick one interactively or pass it by name.
--override --seed
Change any field in the payload and get the same IDs on every run.
21 resources
Customers, products, subscriptions, orders, meters and more, generated from the OpenAPI spec.
Everything the dashboard can do
Every resource the dashboard touches, behind versioned endpoints and organization tokens.
/v1/checkouts
Open a hosted checkout for any product.
/v1/customers
Profiles, external ids and full customer state.
/v1/subscriptions
Upgrades, downgrades and cancellations, prorated.
/v1/events
Ingest usage the moment it happens.
/v1/meters
Aggregate events into billable numbers.
/v1/orders
Every invoice, receipt and refund.
/v1/metrics
Revenue, usage and cost over time.
/v1/webhooks
Signed deliveries for everything that happens.
Integrate in an afternoon