Polar MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Polar MCP or direct API to manage products, create checkouts, track subscriptions, and review orders through natural language.

Polar logoPolar
Oauth2Api KeyBearer TokenNo Auth

Polar is a merchant-of-record platform for digital products, payments, subscriptions, and customer management. It simplifies global selling by handling checkout, billing, taxes, and customer portals.

134 Tools

Try Polar now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Polar
Try asking
TOOLS

Supported Tools

Every Polar action and event your agent gets out of the box.

Accept Dispute

Accept a dispute, permanently conceding the chargeback and settling it as lost.

Activate License Key

Activate a license key instance.

Activate License Key

Activate a license key instance.

Assign Seat

Assign a customer seat.

Complete File Upload

Complete a file upload.

Confirm Checkout Session from Client

Confirm a checkout session by client secret.

Create Benefit

Create a benefit, for example license keys, file downloads or Discord access.

Create Checkout Session

Create a checkout session.

Create Checkout Link

Create a checkout link.

Create Customer

Create a customer.

Create Customer Member

Add a member to a customer by UUID.

Create Customer Member by External ID

Add a member to a uniquely identified external customer.

Create Custom Field

Create an organization custom field for collecting structured customer or checkout data.

Create Discount

Create a discount.

Create File

Create a Polar file record and obtain multipart upload details.

Create Meter

Create a meter.

Create Metric Dashboard

Create a user-defined metric dashboard.

Create Order

Create a draft order for an off-session charge against a saved payment Organization Access Token permissions: `orders:write`.

Create Organization

Create an organization using OAuth2 with the organizations:write scope.

Create Product

Create a product.

Create Refund

Create a refund.

Create Subscription

Create a subscription for an existing customer to a free recurring product, identified by Polar customer ID or external customer ID.

Create Webhook Endpoint

Create a webhook endpoint.

Deactivate License Key

Deactivate a license key instance.

Deactivate License Key

Deactivate a license key instance.

Delete Benefit

Delete a benefit.

Delete Checkout Link

Delete a checkout link.

Delete Customer

Delete a customer.

Delete Customer by External ID

Delete a customer by external ID.

Delete Customer Member

Permanently remove a member by customer UUID and member UUID.

Delete Customer Member by External ID

Permanently remove a member by customer and member external IDs.

Delete Custom Field

Permanently delete a custom field by ID.

Delete Discount

Delete a discount.

Delete File

Delete a file.

Delete Metric Dashboard

Delete a user-defined metric dashboard.

Delete Product

Delete a product.

Delete Webhook Endpoint

Delete a webhook endpoint.

Export Customers

Export customers as a CSV file.

Export Metrics

Export metrics as a CSV file.

Export Orders

Export orders as a CSV file.

Export Subscriptions

Export subscriptions as a CSV file.

Finalize Order

Finalize a draft order and synchronously attempt an off-session charge.

Generate Order Invoice

Trigger generation of an order's invoice.

Get Benefit

Get a benefit by ID.

Get Checkout Session

Get a checkout session by ID.

Get Checkout Session from Client

Get a checkout session by client secret.

Get Checkout Link

Get a checkout link by ID.

Get Customer

Get a customer by ID.

Get Customer by External ID

Get a customer by external ID.

Get Customer Member

Get a member by customer UUID and member UUID without changing membership.

Get Customer Member by External ID

Get a member by customer and member external IDs without changing membership.

Get Customer Meter

Get a customer meter by ID.

Get Customer State

Get a customer state by ID.

Get Customer State by External ID

Get a customer state by external ID.

Get Custom Field

Get one organization custom field and its validation settings by ID.

Get Discount

Get a discount by ID.

Get Dispute

Get a payment dispute by ID.

Get Event

Get an event by ID.

Get License Key

Get a license key.

Get Activation

Get a license key activation.

Get Meter

Get a meter by ID.

Get Meter Quantities

Get quantities of a meter over a time period.

Get Metric Dashboard

Get a user-defined metric dashboard by ID.

Get Metrics

Get metrics about your orders and subscriptions.

Get Metrics Limits

Get the interval limits for the metrics endpoint.

Get Order

Get an order by ID.

Get Order Invoice

Get an order's invoice data.

Get Order Receipt

Get an order's presigned receipt PDF URL, which is null while the receipt is being generated.

Get Organization

Get an organization by ID.

Get Payment

Get a payment by ID.

Get Organization

Get a customer portal's organization by slug.

Get Product

Get a product by ID.

Get Subscription

Get a subscription by ID.

Get Webhook Endpoint

Get a webhook endpoint by ID.

Ingest Events

Ingest batch of events.

List Benefit Files

List the downloadable files for a benefit with their download statistics.

List Benefit Grants

List benefit grants across all benefits accessible to the authenticated subject.

List Benefit Grants

List the individual grants for a benefit.

List Benefits

List benefits.

List Checkout Links

List checkout links.

List Checkout Sessions

List checkout sessions.

List Customer Members

List members of a customer by UUID without changing membership.

List Customer Members by External ID

List members of a uniquely identified external customer without changing membership.

List Customer Meters

List customer meters.

List Customer Payment Methods

Get saved payment methods of a customer.

List Customer Payment Methods by External ID

Get saved payment methods of a customer by external ID.

List Customers

List customers.

List Seats

List customer seats for a subscription or order, including invitation and claim state.

List Custom Fields

List custom data fields configured for an organization and their validation settings.

List Discounts

List discounts.

List Disputes

List payment disputes.

List Event Names

List event names.

List Events

List events.

List Event Types

List event types with usage statistics.

List Files

List files.

List License Keys

Get license keys connected to the given organization & filters.

List Meters

List meters.

List Metric Dashboards

List user-defined metric dashboards.

List Orders

List orders.

List Organizations

List organizations.

List Payments

List payments.

List Products

List products.

List Refunds

List refunds.

List Subscriptions

List subscriptions.

List Webhook Deliveries

List webhook deliveries.

List Webhook Endpoints

List webhook endpoints with pagination; Organization Access Token permissions are `webhooks:read` or `webhooks:write`.

Redeliver Webhook Event

Schedule the re-delivery of a webhook event.

Resend Invitation

Resend the invitation email for an unclaimed customer seat.

Revoke Seat

Permanently revoke a customer seat by ID.

Revoke Subscription

Revoke a subscription, i.e cancel immediately.

Rotate License Key

Rotate a license key.

Update Benefit

Update a benefit.

Update Checkout Session

Update a checkout session.

Update Checkout Session from Client

Update a checkout session by client secret.

Update Checkout Link

Update a checkout link.

Update Customer

Update a customer.

Update Customer by External ID

Update a customer by external ID.

Update Customer Member

Update a member by customer UUID and member UUID.

Update Customer Member by External ID

Update a member by customer and member external IDs.

Update Custom Field

Update an organization custom field's label, validation, or data-collection settings.

Update Discount

Update a discount.

Update Event Type

Update an event type's label and optionally its dynamic label selector.

Update File

Update a file's name or version.

Update License Key

Update a license key.

Update Meter

Update a meter.

Update Metric Dashboard

Update a user-defined metric dashboard.

Update Order

Update an order's billing name or billing address; country and state cannot be updated.

Update Organization

Update an organization.

Update Product

Update a product.

Update Product Benefits

Update benefits granted by a product.

Update Subscription

Update a subscription.

Update Webhook Endpoint

Update a webhook endpoint.

Validate License Key

Validate a license key and optionally increment its usage count.

Validate License Key

Validate a license key and optionally increment its usage count.

SETUP GUIDE

Connect Polar MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["polar"],
  mcp: true,
});
Create a session scoped to Polar and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List all products in my Polar account",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Polar request
SETUP GUIDE

Connect Polar API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["polar"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Polar
3

Run Polar tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List all products in my Polar account" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Polar tool calls through the session, and print the final answer

Why Use Composio?

AI Native Polar Integration

  • Supports both Polar MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Polar data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Polar access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Polar
  • Scoped, least privilege access to Polar resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Polar.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Polar tool your agent needs.Free to start.

Start building