Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the Payhip in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
Manage your Payhip store's coupon codes and check software license keys from an AI agent: list and read coupons, create new ones with your approval, verify a buyer's license key and, when you allow it, disable, re-enable or count its activations.
Try asking
Example prompts for Payhip
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Payhip, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Payhip + ChatGPT
Manage your Payhip store's coupon codes and check software license keys from an AI agent: list and read coupons, create new ones with your approval, verify a buyer's license key and, when you allow it, disable, re-enable or count its activations.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
PAYHIP_API_KEY
Step 1 — Get credentials
Setting up takes about 2 minutes. You need a Payhip store and its API key. For license keys you also need a product with license keys switched on.
- In Payhip open Settings → Developer and copy the API key.
- Paste it alone into
PAYHIP_API_KEY. The coupon tools use it. - Optional, for license keys: open the product in Payhip, tick Generate unique license keys if it is not on yet, and copy the product secret key shown below that checkbox into
PAYHIP_PRODUCT_SECRET_KEY. - Install the connector and run
payhip_list_coupons: it lists your coupon codes and confirms that the API key works. If you set a product secret key, runpayhip_verify_licensewith a key one of your buyers received to check the license side too.
One licensed product per install: a product secret key belongs to one product. To check the keys of several products, install the connector once per product and give each install the product's name. Coupons work on every install, because they use the store's API key.
What it reads: your store's coupon codes with code, type (one product, all products or one collection), percent or amount off, start and end dates, minimum purchase, usage limit and notes; and, for the configured product, the state of a license key: whether it is enabled, the buyer's email, product and variant, how often it has been used and when it was issued.
Only coupons and license keys: Payhip's API covers just these two areas today. Products, sales, customers and payouts are not available through it.
Reading the data: amounts (amount off, minimum purchase) are in cents, and percent off is a percentage. An empty answer from payhip_verify_license means the key does not exist for this product. Payhip disables a key automatically when its purchase is refunded. A key's uses are a counter your software raises and lowers; Payhip does not enforce a limit, your software does.
Switched off at install: payhip_create_coupon, payhip_disable_license, payhip_enable_license, payhip_increase_license_usage and payhip_decrease_license_usage. A new coupon works at checkout as soon as it exists, and a disabled key locks the buyer out of your software until it is enabled again. Subscription products cannot get coupons through the API. An administrator turns on the ones you need.
Asks before every change: with a write tool switched on, the AI shows you the code, the discount and what it applies to, or the license key and what will happen to it, and waits for your yes.
Limits: coupon lists come in pages of up to 100, so for a large store the AI pages through them instead of asking for everything at once.
Common errors: 401 authentication_fail means the API key or the product secret key is wrong or missing: copy PAYHIP_API_KEY again from Settings → Developer, and for license tools check PAYHIP_PRODUCT_SECRET_KEY on the product page. Payhip's firewall challenges coupon calls from datacenter addresses, so coupon calls go out through AnythingMCP's outbound proxy where one is configured (as on AnythingMCP Cloud). On a self-hosted server without CONNECTOR_PROXY_URL, coupon calls may answer 403 with an HTML page.
The connector does not read products, sales, customers or payouts, and it does not issue refunds or new license keys.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in ChatGPT
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.
- Go to chatgpt.com/plugins, click Add, then Add custom MCP server.
- Enter a name, e.g. Name:
Payhip. - Under Connection, enter the Server URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_IDand keep Authentication on OAuth. - Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
- Install the new plugin from your personal plugins, then type @ in a chat and pick it.
Available tools
| Tool | What it does |
|---|---|
payhip_list_coupons | List the store's coupon codes with their type (single product, all products or one collection), percent or amount off (amounts in cents)… |
payhip_get_coupon | Read one coupon by its numeric id: code, type, percent or amount off (cents), product key or collection, dates, minimum purchase, usage… |
payhip_create_coupon | Create a coupon code buyers can enter at checkout: either percent_off (above 0, up to 100) or amount_off in cents, for one product… |
payhip_verify_license | Check a software license key of the product whose secret key is configured: whether it is enabled (keys are disabled automatically on a… |
payhip_disable_license | Disable a license key so it no longer verifies, e.g. after a terms violation or a chargeback |
payhip_enable_license | Enable a disabled license key again so it verifies |
payhip_increase_license_usage | Add one to the usage counter of a license key, e.g. when the buyer activates another device |
payhip_decrease_license_usage | Subtract one from the usage counter of a license key, e.g. when the buyer deactivates a device |
Example prompts
- "Is the license key 7XK2-9QPL-44MZ-H1TR valid? Who bought it, and how many times has it been used?"
- "List our coupon codes with the discount each one gives, and tell me which ones expire this month."
- "What are the conditions of the SUMMER25 coupon: minimum purchase, usage limit and which product it applies to?"
- "A buyer says their key stopped working after a refund. Check whether it is still enabled and which email it belongs to."
- "Which of our coupons apply to all products, and which only to one product or a collection?"
FAQ
Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.
Next steps
- Connector landing page
- Connect to Claude
- Connect to Cursor
- Connect to Gemini
- Connect to Meta Muse
- Connect to Microsoft Copilot
Was this guide helpful?