Skip to main content
Glama

How to connect Payhip to Claude Code, ChatGPT and any AI agent

Read Payhip orders, products and sales reports through MCP or REST. Connect your seller account to agents, automation workflows or scripts.

What you can ask

Fix the download limit error for the buyer and resend the download links.

Prepare a weekly sales summary for my Payhip store.

Create a coupon for the launch.

Related MCP server: Corben MCP Server

Connect in 2 minutes

Get your API key at https://cotlet.dev/app and export it as COTLET_API_KEY.

Claude Code

claude mcp add --transport http cotlet https://cotlet.dev/mcp/v1 --header "Authorization: Bearer $COTLET_API_KEY"

ChatGPT

Settings → Apps → add connector URL https://cotlet.dev/mcp/v1, then sign in with Cotlet.dev. No API key needed.

Cursor

Copy .cursor/mcp.json from this repo into your project:

{
  "mcpServers": {
    "cotlet": {
      "url": "https://cotlet.dev/mcp/v1",
      "headers": {
        "Authorization": "Bearer ${COTLET_API_KEY}"
      }
    }
  }
}

Run it locally (stdio)

This repo is a real MCP server. It speaks MCP over stdio, lists its Payhip tools without any key, and forwards every tool call to the hosted Cotlet.dev server. The hosted URL above stays the recommended way. Use this when your client only starts local servers.

{"mcpServers":{"payhip":{"command":"uvx","args":["payhip-mcp"],"env":{"COTLET_API_KEY":"your-key"}}}}

Or with Docker:

docker build -t payhip-mcp .
docker run -i --rm -e COTLET_API_KEY payhip-mcp

Tools: payhip_guide, payhip_status, payhip_open, payhip_read, payhip_click, payhip_type, payhip_close. Without COTLET_API_KEY a tool call answers: "Set COTLET_API_KEY. Get a key at https://cotlet.dev/app".

Command line

Python 3.10+, nothing else to install. From PyPI:

pip install payhip-mcp        # or run it once: uvx payhip-mcp connect
payhip-mcp connect

Or straight from this repo:

export COTLET_API_KEY="your-key"
python3 payhip_agent.py connect   # ready config for Claude Code, Cursor, ChatGPT
python3 payhip_agent.py status    # is Payhip ready in your Cotlet.dev account
python3 payhip_agent.py guide     # Payhip screens and sign-in link
python3 payhip_agent.py read      # open Payhip, read the page, close the browser
python3 payhip_agent.py tools     # list Cotlet.dev tools
python3 payhip_agent.py serve     # start the stdio MCP server (same as no argument)

Questions from Payhip users

Can I use the Payhip API without an AI agent?

Yes. Call Cotlet's REST API from a script or an HTTP step in n8n, Make or Zapier with your Cotlet key. MCP is the alternative for AI agents; you do not need to connect an agent to use REST.

How do I get access?

Create a free account at https://cotlet.dev, open Payhip under Integrations in the console and log in to Payhip in its Cloud Browser. The trial starts when you sign up, no card asked.

How do I connect Payhip to ChatGPT or Claude?

Sign up at cotlet.dev, log in to Payhip once in its Cloud Browser and add Cotlet to ChatGPT or Claude, following the steps in your console. No API key is needed. ChatGPT and Claude then work in your Payhip account through Cotlet, in their phone apps too.

What can ChatGPT do in Payhip?

With Cotlet, ChatGPT, Claude and other AI agents handle jobs like these in Payhip: fix download limit errors and resend download links; weekly sales summary; create a coupon for a launch. You ask in plain words, and anything that reaches other people waits for your OK first.

Do I need a paid Payhip plan?

Payhip lists the same features on Free Forever, Plus and Pro, with no feature-gating, and the plans differ in transaction fee (5%, 2% and none) (checked 11 Oct 2026). A free store works.

Do the order tools work on a store with no orders?

The tools are built, but they need an order to act on. Payhip only sells once the seller has connected PayPal or Stripe, and Cotlet never connects one for you. On a new store list_orders returns an empty list, and get_order, add_order_note, resend_receipt, reset_download_credits and block_customer have nothing to open. The same holds for the rows of list_subscribers (Stripe needed), list_affiliates, list_customers and get_sales_report. Products, coupons, followers and sales stats work from the first day.

What can it not do yet?

Cancel a subscription, refund an order (refunds are made in PayPal or Stripe), create courses, coaching, memberships or physical products, edit products with variants, archive or delete a product, unblock a buyer, manage collections, shipping or license keys, and read the location map of Analytics. Order lists show the newest 25 orders at most, and list_customers groups only those.

How does create_product send the file?

The file goes in the call itself, up to 25 MB, and Cotlet uploads it to Payhip as Add Product does. The product starts invisible; update_product with visibility visible publishes it.

Which time zone do dates use?

Your store's time zone, set under Account > Settings. get_sales_stats days follow it, and order and coupon dates are plain dates (YYYY-MM-DD).

Does add_order_note keep my old note?

No. An order has one note, so the new text replaces it. Read the note with get_order first to add to it.

Does Payhip have webhooks?

Yes, 4: paid, refunded, subscription.created and subscription.deleted, set under Settings > Developer. They report events as they happen. To look back at older orders, an agent calls list_orders instead.

Can the agent manage license keys?

Not through Cotlet. Payhip's own API verifies, enables and disables license keys, and Pipedream wraps those calls for agents.

Can the agent refund a buyer?

No. Payhip refunds go through your Stripe or PayPal account, and no Cotlet tool touches either. The agent can find refunded orders and leave them alone.

Is the MCP server different from the REST API?

Only the entry point differs. Both carry the same 20 tools, inputs and answers, with one API key and one price. Agents use MCP; scripts and HTTP steps use REST.

Is Cotlet affiliated with Payhip?

No. Cotlet is independent and not affiliated with Payhip Limited.

Find it on

Also works with


More: https://cotlet.dev/integrations/payhip-api-mcp-server?utm_source=github&utm_medium=readme&utm_campaign=payhip

Start free: https://cotlet.dev/signup?app=payhip&utm_source=github&utm_medium=readme&utm_campaign=payhip

Available Tools

7 tools
payhip_clickB

Click a numbered element on the current Payhip page.

Inputs: element (required).

payhip_closeA

Close the Payhip browser session when the work is done, so credits stop running.

Inputs: no named parameters.

payhip_guideA

How to work in Payhip (orders, products and sales reports): its screens and the sign-in link. Call this first.

Inputs: task.

payhip_openA

Open a Payhip page in your signed-in Cloud Browser (default https://payhip.com) to work with orders, products and sales reports.

Inputs: url.

payhip_readA

Read the current Payhip page: its text and numbered buttons, links and fields.

Inputs: element.

payhip_statusA

Check that your Cotlet.dev account and Payhip are ready: account, credits and Payhip connection.

Inputs: no named parameters.

payhip_typeB

Type text into a numbered field on the current Payhip page.

Inputs: text (required), element (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: guidance, readiness check, browser lifecycle, page reading, clicking, typing, and closing. The only mild overlap is between the guide and status tools, but their descriptions make the boundary clear.

    Naming Consistency4/5

    All tools use the consistent payhip_ prefix and snake_case, which is predictable. However, guide and status are noun-like names while the others are verbs, a minor deviation from a pure verb_noun pattern.

    Tool Count5/5

    Seven tools is well-scoped for a browser automation server targeting Payhip. Each tool corresponds to a necessary phase of the workflow without redundant operations.

    Completeness4/5

    The core browser automation lifecycle is covered: onboarding, opening, reading, clicking, typing, and closing. Minor gaps exist around explicit navigation, scrolling, or selecting dropdowns, but most Payhip workflows can be handled with the provided tools.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Payhip MCP server for ChatGPT, Claude and any AI agent: create product, list orders, create coupon, resend receipt and get sales stats in your own Payhip account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Payhip yourself; Cotlet does not store your password and you need no Payhip API key. About the official Payhip API: Payhip has a narrow public API (checked 28 Oct 2026): it creates, lists and retrieves coupons, and verifies, enables, disables or counts uses of software license keys. Products, orders, customers and subscribers have no endpoints; new sales, refunds and subscription changes only arrive as 4 webhook events. Setup and FAQ: https://cotlet.dev/integrations/payhip-api-mcp-server

      https://cotlet.dev/mcp/v1/payhip
    • Hosted MCP server for 3Dsellers, the multichannel selling platform. Connect Claude, ChatGPT, Cursor, VS Code or any MCP client and manage your eBay, Amazon, Walmart, Etsy, Shopify, WooCommerce and TikTok Shop stores in plain language: search and update products, publish listings, sync inventory, tag and track orders, run bulk actions and CSV imports, and reply to customer messages. 120+ tools. Sign in with OAuth or a personal token. No eBay developer account and nothing to install. Setup guides and config examples for every client: https://github.com/3dsellers/ebay-mcp-server

      https://api.3dsellers.com/mcp
    • Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).

      https://loadout.aident.ai/mcp
    • Remote MCP server for creating and selling digital products via MoneMee. It lets AI agents create, publish, and sell digital products such as e-books, AI prompt packs, software, courses without a human touching a dashboard. Docs: https://monemee.com/mcp Sign up on Monemee to get a token.

      https://monemee.com/mcp/v1

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      A production-grade MCP server and CLI tool that enables AI agents to manage Shopify stores through 49 built-in tools across products, orders, inventory, and analytics. It supports natural language workflows for tasks like inventory tracking, customer support, and sales reporting.
      637 npm
      18
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with 220+ tools for building websites, sending email, managing contacts, invoicing, databases, automation, and more through a single secure connection. Features hardware-bound authentication and works with Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for managing WooCommerce stores through AI assistants like Claude. Provides 101 tools covering products, orders, customers, coupons, shipping, taxes, webhooks, settings, reports, and more.
      100
      112 npm
      2
      MIT