Metadata-Version: 2.4
Name: payhip-mcp
Version: 1.1.0
Summary: Connect Payhip to ChatGPT, Claude and other AI agents through Cotlet.dev. Includes a local stdio MCP bridge.
Author-email: Cotlet.dev <contact@cotlet.dev>
Requires-Python: >=3.10
License-Expression: Elastic-2.0
License-File: LICENSE
Description-Content-Type: text/markdown
Keywords: payhip,payhip api,payhip mcp,mcp server,claude,chatgpt,ai agent,cotlet
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business
Project-URL: Homepage, https://cotlet.dev/integrations/payhip-api-mcp-server?utm_source=pypi&utm_medium=package&utm_campaign=payhip
Project-URL: Source, https://github.com/cotlet-connect/payhip-mcp

# Payhip MCP server for ChatGPT, Claude and AI agents

Connect your Payhip store to ChatGPT, Claude, Codex, Claude Code and other AI agents through Cotlet.dev.
Work with orders, products, sales reports and coupons using the hosted MCP service or this local stdio bridge.

## Get started

Create your Cotlet account at https://cotlet.dev/signup?app=payhip.
Sign in to your Payhip seller dashboard in its Cotlet Cloud Browser and enable Payhip for agents.

For ChatGPT or Claude, add `https://cotlet.dev/mcp/v1/connect` as a custom connector and sign in with Cotlet.dev.
For code editors, use `https://cotlet.dev/mcp/v1/payhip` with a Cotlet API key from your console.
The shared endpoint `https://cotlet.dev/mcp/v1` also connects the apps you enable.

## Run the local stdio bridge

Use Python 3.10 or newer. The package has no runtime dependencies.

```bash
pip install payhip-mcp
export COTLET_API_KEY="your-cotlet-api-key"
payhip-mcp
```

For a client that starts local MCP servers:

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

Keep the key in your client's credential settings and outside shared configuration files.
Run `payhip-mcp connect` to print connection examples.

## What the package exposes

This local bridge exposes seven browser helpers: `payhip_guide`, `payhip_status`, `payhip_open`, `payhip_read`, `payhip_click`, `payhip_type` and `payhip_close`.
It lists these tools without a key and forwards authenticated calls to Cotlet.dev.
Call `payhip_guide` first for the current Payhip screens and sign-in instructions.
Close the browser session with `payhip_close` when finished.

The hosted Payhip integration separately documents 20 operations over MCP and REST.
Those operations include reading orders and products, resetting download credits, resending receipts, creating coupons and preparing sales summaries.
The local package does not expose those 20 operations as its own tool list.

Example requests:

- "Reset this buyer's download credits and resend the receipt."
- "Compare this week's sales with last week."
- "Prepare a launch coupon for my digital product."

## Payhip API and workflow details

The live integration page records that Payhip's public API covers coupons and software license keys, with webhook events for payments, refunds and subscriptions, and no MCP server of its own (checked 24 October 2026).
Cotlet.dev provides the hosted MCP and REST connection described on that page.
Product listings support cursors; order searches return the newest matching orders, so narrow the date range when looking for older purchases.
An order has one private note: read it before replacing it.
New digital products start invisible unless their visibility is explicitly changed.
Some write operations ask for confirmation by default; their approval settings are described in the console and reference.

Read the current operations, parameters, limits and REST examples at:
https://cotlet.dev/integrations/payhip-api-mcp-server?utm_source=pypi&utm_medium=package&utm_campaign=payhip

## Independence

Cotlet.dev is an independent service and is not affiliated with, endorsed by or sponsored by Payhip.
Payhip is a trademark of its owner.

Source: https://github.com/cotlet-connect/payhip-mcp

Licensed under Elastic License 2.0; see LICENSE.
