Polar Integration
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:
import { polarIntegration } from "integrate-sdk/server";Setup
1. Create a Polar OAuth App
- Go to Polar Settings
- Create a new OAuth application
- Configure your redirect URI
- 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:
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:
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:
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:
import { createMCPClient, polarIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [polarIntegration()],
});Configuration Options
Prop
Type
Tools
polar_list_products
List products
Prop
Type
polar_get_product
Get product details
Prop
Type
polar_create_product
Create a new product
Prop
Type
polar_update_product
Update a product
Prop
Type
polar_list_subscriptions
List subscriptions
Prop
Type
polar_get_subscription
Get subscription details
Prop
Type
polar_update_subscription
Update a subscription
Prop
Type
polar_revoke_subscription
Revoke a subscription
Prop
Type
polar_list_customers
List customers
Prop
Type
polar_get_customer
Get customer details
Prop
Type
polar_create_customer
Create a new customer
Prop
Type
polar_update_customer
Update a customer
Prop
Type
polar_delete_customer
Delete a customer
Prop
Type
polar_get_customer_state
Get customer state (subscriptions, orders, etc.)
Prop
Type
polar_list_orders
List orders
Prop
Type
polar_get_order
Get order details
Prop
Type
polar_get_order_invoice
Get order invoice
Prop
Type
polar_list_benefits
List benefits
Prop
Type
polar_get_benefit
Get benefit details
Prop
Type
polar_create_benefit
Create a new benefit
Prop
Type
polar_update_benefit
Update a benefit
Prop
Type
polar_list_discounts
List discounts
Prop
Type
polar_get_discount
Get discount details
Prop
Type
polar_create_discount
Create a new discount
Prop
Type
polar_delete_discount
Delete a discount
Prop
Type
polar_list_checkout_links
List checkout links
Prop
Type
polar_get_checkout_link
Get checkout link details
Prop
Type
polar_create_checkout_link
Create a new checkout link
Prop
Type
polar_list_license_keys
List license keys
Prop
Type
polar_get_license_key
Get license key details
Prop
Type
polar_validate_license_key
Validate a license key
Prop
Type
polar_activate_license_key
Activate a license key
Prop
Type
polar_get_metrics
Get metrics for a time period
Prop
Type
polar_list_organizations
List organizations
Prop
Type
polar_get_organization
Get organization details
Prop
Type
Notes
- Category: Finance
- Authentication mode: OAuth