
M
Mia in Claude Code
execute_tool list_customer_meters
·
Atlas, Northwind and Lumen crossed zero
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.

zsh
M
Mia in Claude Code
search_tools "customers with a negative credit balance"
describe_tools list_customer_meters
execute_tool list_customer_meters balance < 0
Three customers crossed zero: Atlas, Northwind and Lumen. Want me to grant a top-up or send each of them a checkout link?
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.
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.

macOS, Linux and WSL
polar auth login --sandbox
Sign in through the browser and pick an organization
polar listen http://localhost:3000/webhooks
Webhooks tunneled to your machine, signed
polar trigger order.paid --override data.subtotal_amount=99900
Fire any event with realistic fixtures, shaped how you need them
polar customers list --email=alice@example.com
Every API resource as a command, in the active organization
polar update
Signed builds for macOS, Linux and Windows
zsh
--json
Auth, trigger and the API commands print JSON on request, so a coding agent can drive the CLI.
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