---
title: "Polar Integration"
description: "Manage Polar products, orders, and subscriptions"
---
The Polar integration provides access to manage Polar products, orders, and subscriptions through the Integrate MCP server.

## Installation

The Polar integration is included with the SDK:

```typescript
import { polarIntegration } from "integrate-sdk/server";
```

## Setup

### 1. Create a Polar OAuth App

1. Go to [Polar Settings](https://polar.sh/settings)
2. Create a new OAuth application
3. Configure your redirect URI
4. Note your Client ID and Client Secret

### 2. Configure the Integration on Your Server

Add the Polar integration to your server configuration. The integration automatically reads `POLAR_CLIENT_ID` and `POLAR_CLIENT_SECRET` from your environment variables:

```typescript
import { createMCPServer, polarIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    polarIntegration({
    }),
  ],
});
```

You can override the environment variables by passing explicit values:

```typescript
polarIntegration({
  clientId: process.env.CUSTOM_POLAR_ID,
  clientSecret: process.env.CUSTOM_POLAR_SECRET,
});
```

### 3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

```typescript
import { client } from "integrate-sdk";

await client.authorize("polar");
const result = await client.polar.listProducts({});

console.log(result);
```

If you're using a custom client, add the integration to the integrations array:

```typescript
import { createMCPClient, polarIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [polarIntegration()],
});
```

## Configuration Options

<AutoTypeTable
  path="../src/integrations/polar.ts"
  name="PolarIntegrationConfig"
/>


## Tools

### `polar_list_products`

List products

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListProductsParams"
/>

### `polar_get_product`

Get product details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetProductParams"
/>

### `polar_create_product`

Create a new product

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarCreateProductParams"
/>

### `polar_update_product`

Update a product

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarUpdateProductParams"
/>

### `polar_list_subscriptions`

List subscriptions

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListSubscriptionsParams"
/>

### `polar_get_subscription`

Get subscription details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetSubscriptionParams"
/>

### `polar_update_subscription`

Update a subscription

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarUpdateSubscriptionParams"
/>

### `polar_revoke_subscription`

Revoke a subscription

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarRevokeSubscriptionParams"
/>

### `polar_list_customers`

List customers

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListCustomersParams"
/>

### `polar_get_customer`

Get customer details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetCustomerParams"
/>

### `polar_create_customer`

Create a new customer

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarCreateCustomerParams"
/>

### `polar_update_customer`

Update a customer

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarUpdateCustomerParams"
/>

### `polar_delete_customer`

Delete a customer

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarDeleteCustomerParams"
/>

### `polar_get_customer_state`

Get customer state (subscriptions, orders, etc.)

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetCustomerStateParams"
/>

### `polar_list_orders`

List orders

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListOrdersParams"
/>

### `polar_get_order`

Get order details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetOrderParams"
/>

### `polar_get_order_invoice`

Get order invoice

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetOrderInvoiceParams"
/>

### `polar_list_benefits`

List benefits

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListBenefitsParams"
/>

### `polar_get_benefit`

Get benefit details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetBenefitParams"
/>

### `polar_create_benefit`

Create a new benefit

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarCreateBenefitParams"
/>

### `polar_update_benefit`

Update a benefit

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarUpdateBenefitParams"
/>

### `polar_list_discounts`

List discounts

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListDiscountsParams"
/>

### `polar_get_discount`

Get discount details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetDiscountParams"
/>

### `polar_create_discount`

Create a new discount

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarCreateDiscountParams"
/>

### `polar_delete_discount`

Delete a discount

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarDeleteDiscountParams"
/>

### `polar_list_checkout_links`

List checkout links

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListCheckoutLinksParams"
/>

### `polar_get_checkout_link`

Get checkout link details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetCheckoutLinkParams"
/>

### `polar_create_checkout_link`

Create a new checkout link

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarCreateCheckoutLinkParams"
/>

### `polar_list_license_keys`

List license keys

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListLicenseKeysParams"
/>

### `polar_get_license_key`

Get license key details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetLicenseKeyParams"
/>

### `polar_validate_license_key`

Validate a license key

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarValidateLicenseKeyParams"
/>

### `polar_activate_license_key`

Activate a license key

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarActivateLicenseKeyParams"
/>

### `polar_get_metrics`

Get metrics for a time period

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetMetricsParams"
/>

### `polar_list_organizations`

List organizations

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarListOrganizationsParams"
/>

### `polar_get_organization`

Get organization details

<AutoTypeTable
  path="generated/tool-params/polar.ts"
  name="PolarGetOrganizationParams"
/>

## Notes

- Category: Finance
- Authentication mode: OAuth
