How to integrate Polar MCP with Atomic Agent

Connect Atomic Agent to Polar MCP. List all products in your polar account, review active polar subscriptions this month, and more using natural language, with authentication handled for you.

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.

181 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Polar.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Polar account. See the Atomic Agent documentation for installation instructions.

Also integrate Polar with

How Atomic Agent connects to Polar

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect Polar to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in Polar. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your Polar account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the Polar MCP server, and what's possible with it?

The Polar MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Polar account. It provides structured and secure access to Polar's merchant-of-record tools, so your agent can create products and checkout sessions, manage customers and subscriptions, issue refunds, and handle customer portal and licensing tasks on your behalf.

  • Products and checkout management: Have your agent create products, checkout sessions, checkout links, discounts, and customer orders for your Polar storefront.
  • Customer and subscription operations: Let the agent create customers, add customer members, create subscriptions, cancel portal subscriptions, and manage customer payment methods.
  • Benefits and license keys: Direct your agent to create benefits such as license keys or file downloads, activate or deactivate license key instances, and manage customer seats.
  • Payments, refunds, and disputes: Instruct your agent to create refunds, accept disputes, retry customer payments, or create orders for off-session charges against saved payment methods.
  • Account configuration and reporting: Have your agent create organizations, custom fields, files, meters, metric dashboards, and webhook endpoints for your Polar operations.

Use Polar from Atomic Agent

With your account connected, ask Atomic Agent to work with Polar in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

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.

Add Portal Member

Add a customer portal member.

Add Customer Payment Method

Add a payment method to the authenticated customer.

Assign Seat

Assign a customer seat.

Assign Portal Seat

Assign a seat using an authenticated customer or member session.

Cancel Subscription

Cancel a subscription of the authenticated customer.

Check Email Change Token

Check if an email change verification token is still valid.

Claim Seat

Claim a customer seat without authentication using a one-time invitation token.

Complete File Upload

Complete a file upload.

Confirm Checkout Session from Client

Confirm a checkout session by client secret.

Confirm Customer Payment Method

Confirm a payment method for the authenticated customer.

Confirm Retry Payment

Confirm a retry payment using a Stripe confirmation token.

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 Customer Session

Create a customer session.

Create Custom Field

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

Create Discount

Create a discount.

Create File

Create a file.

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.

Create Product

Create a product.

Create Refund

Create a refund.

Create Subscription

Create a subscription programmatically.

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 Customer Payment Method

Delete a payment method from the authenticated customer.

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.

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 Claim Info

Inspect a one-time customer-seat invitation before claiming it, including the customer and subscription context.

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 a presigned URL to download an order's receipt PDF.

Get Organization

Get an organization by ID.

Get Payment

Get a payment by ID.

Get Benefit Grant

Get a benefit grant by ID for the authenticated customer.

Get Customer

Get authenticated customer.

Get License Key

Get a license key.

Get Customer Meter

Get a meter by ID for the authenticated customer.

Get Order

Get an order by ID for the authenticated customer.

Get Order Invoice

Get an order's invoice data.

Get Order Payment Status

Get the current payment status for an order.

Get Order Receipt

Get a presigned URL to download an order's receipt PDF.

Get Organization

Get a customer portal's organization by slug.

Get Subscription

Get a subscription for the authenticated customer.

Get Authenticated Portal User

Get information about the currently authenticated portal user.

Get Portal Wallet

Get a wallet by ID using an authenticated customer or member session.

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.

Introspect Customer Session

Introspect the current session and return its information.

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 seats assigned from organization subscriptions, 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 Benefit Grants

List benefits grants of the authenticated customer.

List Portal Claimed Subscriptions

List subscriptions claimed through seats by the authenticated customer or member session.

List Downloadables

List files the authenticated customer can download through granted benefits, optionally filtered by benefit.

List License Keys

List license keys issued to the authenticated customer, with optional organization and benefit filters.

List Portal Members

List customer portal members.

List Meters

List meters of the authenticated customer.

List Orders

List orders of the authenticated customer.

List Customer Payment Methods

Get saved payment methods of the authenticated customer.

List Portal Seats

List seats for a subscription or order available to the authenticated customer or member session.

List Subscriptions

List subscriptions of the authenticated customer.

List Portal Wallets

List wallets available to the authenticated customer or member session.

List Products

List products.

List Refunds

List refunds.

List Subscriptions

List subscriptions.

List Webhook Deliveries

List webhook deliveries.

List Webhook Endpoints

List webhook endpoints.

Redeliver Webhook Event

Schedule the re-delivery of a webhook event.

Remove Portal Member

Permanently remove a customer portal member.

Request Email Change

Request an email change for the authenticated customer.

Resend Invitation

Resend the invitation email for an unclaimed customer seat.

Resend Portal Seat Invitation

Resend a pending seat invitation using an authenticated customer or member session.

Reset Webhook Endpoint Secret

Regenerate a webhook endpoint secret.

Revoke Seat

Permanently revoke a customer seat by ID.

Revoke Portal Seat

Permanently revoke a seat using an authenticated customer or member session.

Revoke Subscription

Revoke a subscription, i.

Rotate License Key

Rotate a license key.

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 or dynamic label selector.

Update File

Update a file.

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.

Update Organization

Update an organization.

Update Benefit Grant

Update a benefit grant for the authenticated customer.

Update Customer

Update authenticated customer.

Update Portal Member

Update a customer portal member's name or role.

Update Order

Update an order for the authenticated customer.

Update Subscription

Update a subscription of the authenticated customer.

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.

Verify Email Change

Verify and apply an email change using the token from the verification email.

FAQ

Frequently asked questions

With a standalone Polar MCP server, the agents and LLMs can only access a fixed set of Polar tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Polar and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Polar tools.

Yes, absolutely. You can configure which Polar scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Polar data and credentials are handled as safely as possible.

Start with Polar.It takes 30 seconds.

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

Start building