Connector guide6-minute read8 MCP tools7 languages

How to Connect Payhip to Meta Muse via MCP

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.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Payhip

Payhip

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.

tools

8

Region

INTL

Category

E-commerce

Authentication

API Key

Required env vars

PAYHIP_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

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.

Start free trial

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.

Payhip · live via MCP
Share
Opus 4.7

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 + Meta Muse

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.

  1. In Payhip open Settings → Developer and copy the API key.
  2. Paste it alone into PAYHIP_API_KEY. The coupon tools use it.
  3. 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.
  4. 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, run payhip_verify_license with 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 Muse

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 shows YOUR_SERVER_ID.

Muse adds remote MCP servers as custom connectors and signs in to them with OAuth.

  1. In Muse, open Settings → Connectors and choose Add custom connector.
  2. Paste the MCP server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.
  3. Muse opens the AnythingMCP sign-in page: sign in and approve access.
  4. In a chat, ask Muse for something that needs the Payhip tools.

You can also set it up from a chat, on the web, in the iOS and Android apps or in WhatsApp. Send Muse this message:

Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth

Self-hosting? Use your instance's public HTTPS address instead of https://cloud.anythingmcp.com. Muse connects from Meta's cloud, so localhost does not work.

Available tools

ToolWhat it does
payhip_list_couponsList the store's coupon codes with their type (single product, all products or one collection), percent or amount off (amounts in cents)…
payhip_get_couponRead one coupon by its numeric id: code, type, percent or amount off (cents), product key or collection, dates, minimum purchase, usage…
payhip_create_couponCreate 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_licenseCheck a software license key of the product whose secret key is configured: whether it is enabled (keys are disabled automatically on a…
payhip_disable_licenseDisable a license key so it no longer verifies, e.g. after a terms violation or a chargeback
payhip_enable_licenseEnable a disabled license key again so it verifies
payhip_increase_license_usageAdd one to the usage counter of a license key, e.g. when the buyer activates another device
payhip_decrease_license_usageSubtract 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

Where is Muse available? Meta currently offers Muse in the US and Canada, on the web, in the iOS and Android apps and in WhatsApp.

Does Meta review this connector? No. Meta doesn't review custom connectors. Muse sees only the tools you switched on for this MCP server in AnythingMCP, and you can disconnect it anytime under Settings → Connectors.

Next steps

Was this guide helpful?

Your Payhip agent is one click away.

Install the connector, paste the key, prompt Meta Muse. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect Payhip to Microsoft Copilot via MCP

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.

Connectors

How to Connect Payhip to ChatGPT via MCP

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.

Connectors

How to Connect Payhip to Claude via MCP

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.

Connectors

How to Connect Payhip to Cursor via MCP

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.

Connectors

How to Connect Payhip to Gemini via MCP

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.

Connectors

Payhip to MCP: Check License Keys and Manage Coupons from any AI Agent

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.