Bring Creator Economy
to Mastra AI
Create your Vinkius account to connect Polar to Mastra AI and start using all 10 AI tools in minutes. Fully managed, enterprise secure, and ready to use without writing a single line of code. No hosting, no server setup — just connect and start using.
Compatible with every major AI agent and IDE
What is the Polar MCP Server?
Connect your Polar account to any AI agent and take full control of your digital commerce operations through natural conversation.
What you can do
- Product Management — List, retrieve and audit all products (one-time, subscription, free) with pricing and metadata
- Subscription Tracking — Monitor active, canceled and past_due subscriptions with billing periods and customer info
- Order & Revenue — List completed orders with amounts, currency, payment status and customer details
- Customer Discovery — Browse customers by email, name and purchase history
- Discount Management — List, create and audit discount codes with percentage or fixed-amount types
- Checkout Operations — Create checkout sessions for products and track open, expired and confirmed checkouts
- Webhook Audit — Review configured webhook endpoints and their subscribed events
How it works
- Subscribe to this server
- Enter your Polar Personal Access Token
- Start managing your commerce from Claude, Cursor, or any MCP-compatible client
No more clicking through the Polar dashboard to check subscriptions or create discount codes. Your AI acts as a dedicated commerce engineer.
Who is this for?
- Indie Developers — quickly check subscription status, review orders and create discount codes without leaving your IDE
- Commerce Teams — audit product catalog, track revenue via orders and manage customer data
- Marketing — create promotional discounts, track checkout conversion and review webhook integrations
Built-in capabilities (10)
Requires the product ID. Optionally associate with an existing customer and apply a discount. Returns the checkout session with its URL that you can redirect customers to for payment. Create a new checkout session in Polar
Requires the name, code, type (percentage or fixed_amount), and amount. Optionally set the duration (once, forever, repeating). The discount can be applied during checkout. Create a new discount code in Polar
Provide the product ID (UUID format). Get details for a specific Polar product
Each checkout shows its status (open, expired, confirmed), associated product, customer, and creation date. Useful for tracking abandoned and completed checkouts. List checkout sessions in your Polar store
Each customer shows their email, name, billing address, and metadata. Optionally filter by email to find a specific customer. List customers in your Polar store
Each discount shows its code, type (percentage, fixed_amount), amount, duration (once, forever, repeating), and active status. Use this to audit your promotional offers. List discount codes in your Polar store
Each order shows the customer, product, amount, currency, payment status, and creation date. Useful for tracking revenue and verifying successful transactions. List orders in your Polar store
Each product includes its name, description, price, type (one-time, subscription, free), and metadata. Use this to audit your product catalog and see what you are selling. List products in your Polar store
Each subscription shows the customer, product, status (active, past_due, canceled, expired, incomplete, trialing), current period start/end dates, and amount. Optionally filter by status and set a limit. List subscriptions in your Polar store
Each webhook shows its URL, subscribed events (order.created, subscription.active, etc.), and status. Use this to audit your event integrations. List webhook endpoints in your Polar store
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Polar tool infrastructure. Connect 10 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Polar without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Polar tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Polar in Mastra AI
Why run Polar with Vinkius?
The Polar connection runs on our fully managed, secure cloud infrastructure. We handle the hosting, maintenance, and security so you don't have to deal with servers or code. All 10 tools are ready to work instantly without any complex setup.
You stay in complete control of your data. Your AI only accesses the information you approve, keeping your sensitive passwords and private details completely safe. Plus, with automatic optimizations, your AI works faster and more efficiently.

* Every connection is hosted and maintained by Vinkius. We handle the security, updates, and infrastructure so you don't have to write code or manage servers. See our infrastructure
Over 4,000 integrations ready for AI agents
Explore a vast library of pre-built integrations, optimized and ready to deploy.
Connect securely in under 30 seconds
Generate tokens to authenticate and link external services in a single step.
Complete visibility into every agent action
Audit live requests, latency, success rates, and active security compliance policies.
Optimize spending and track token ROI
Analyze real-time token consumption and cost metrics detailed by connection.




Explore our live AI Agents Analytics dashboard to see it all working
This dashboard is included when you connect Polar using Vinkius. You will never be left in the dark about what your AI agents are doing with your tools.
Polar and 4,000+ other AI tools. No hosting, no code, ready to use.
Professionals who connect Polar to Mastra AI through Vinkius don't need to write code, manage servers, or worry about security. Everything is pre-configured, secure, and runs automatically in the background.
Raw MCP | Vinkius | |
|---|---|---|
| Ready-to-use MCPs | Find and configure each manually | 4,000+ MCPs ready to use |
| Connection Setup | Manual coding & server setup | 1-click instant connection |
| Server Hosting | You host it yourself (needs 24/7 uptime) | 100% hosted & managed by Vinkius |
| Security & Privacy | Stored in plaintext config files | Bank-grade encrypted vault |
| Activity Visibility | Blind execution (no logs or tracking) | Live dashboard with real-time logs |
| Cost Control | Runaway AI token spend risk | Automatic budget limits |
| Revoking Access | Must delete files or code to stop | 1-click disconnect button |
How Vinkius secures
Polar for Mastra AI
Every request between Mastra AI and Polar is protected by our secure gateway. We automatically keep your sensitive data private, prevent unauthorized access, and let you disconnect instantly at any time.
Frequently asked questions
How do I create a Polar Personal Access Token?
Log in to the Polar Dashboard, go to Settings > Developer > Personal Access Tokens, click Create Token, give it a name and copy the token immediately — it starts with polar_pat_ and won't be shown again.
Can I create discount codes via the agent?
Yes! Use the create_discount tool with a name, code, type (percentage or fixed_amount) and amount. Optionally set the duration (once, forever, repeating). The discount will be available during checkout.
Can I check my subscription revenue?
Yes! Use list_subscriptions with status 'active' to see all active subscriptions, and list_orders to see completed orders with their amounts. Combine both to get a full picture of your recurring and one-time revenue.
Can I create checkout links programmatically?
Yes! Use create_checkout with a product_id and optionally a customer_id and discount_id. This creates a checkout session that returns a URL you can share with customers or embed in your app.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Eurostat Demographics — EU Population & Labor
6 toolsEU demographics and labor market: population by age and sex, monthly unemployment rates, employment data, immigration by citizenship, life expectancy, and minimum wages for all 27 EU member states.

Healthchecks.io
13 toolsMonitor cron jobs and background tasks via Healthchecks.io — list checks, track pings, and manage alerts directly from any AI agent.

Medium
10 toolsPublish and manage content on Medium — create posts and manage publications directly from any AI agent.

Goody
11 toolsAutomate corporate gifting — browse products, send gifts, and track orders effortlessly.
