whop-mcp

whop-mcp

A Model Context Protocol server that enables AI assistants to manage Whop.com business operations, including payments, memberships, products, promo codes, and affiliates.

Category
访问服务器

README

whop-mcp

<div align="center"> <img src="./assets/social_preview.png" alt="whop-mcp Social Preview" width="640" /> <br /> <a href="https://www.npmjs.com/package/@furkankoykiran/whop-mcp"> <img src="https://img.shields.io/npm/v/@furkankoykiran/whop-mcp?color=blue&style=for-the-badge" alt="NPM Version" /> </a> <a href="https://www.npmjs.com/package/@furkankoykiran/whop-mcp"> <img src="https://img.shields.io/npm/dt/@furkankoykiran/whop-mcp?color=green&style=for-the-badge" alt="NPM Downloads" /> </a> <a href="https://github.com/furkankoykiran/whop-mcp/blob/main/LICENSE"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge" alt="License: MIT" /> </a> </div>

A community-built Model Context Protocol (MCP) server for the Whop.com Company API. It enables AI assistants (Claude, Cursor, etc.) to fully manage your Whop business — payments, memberships, products, promo codes, affiliates, and more.

✨ Features

  • 🔐 Secure API key authentication via environment variable
  • 📦 Full TypeScript with strict type-safety
  • 🔄 Automatic retry & rate-limit handling
  • 🛡️ Comprehensive error handling (401, 403, 404, 429)
  • 🚀 Works with Claude Desktop, Cursor, and any MCP-compatible client
  • 📡 stdio transport (works as a CLI binary or subprocess)

⚙️ Quick Start

Install in VS Code

Install the whop-mcp server in VS Code with one click:

<img alt="Install in VS Code" src="https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=for-the-badge&logo=visualstudiocode&logoColor=white" />

Note: Replace YOUR_WHOP_API_KEY_HERE with your actual Company API key from the Whop Developer Dashboard.

Install in Claude Desktop

Add to your Claude Desktop config file:

macOS/Linux: ~/.config/claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "whop": {
      "command": "npx",
      "args": ["-y", "@furkankoykiran/whop-mcp"],
      "env": {
        "WHOP_API_KEY": "YOUR_WHOP_API_KEY_HERE"
      }
    }
  }
}

Install in Cursor

Add to your Cursor MCP settings (Cursor Settings -> MCP Servers):

{
  "whop": {
    "command": "npx",
    "args": ["-y", "whop-mcp"],
    "env": {
      "WHOP_API_KEY": "YOUR_WHOP_API_KEY_HERE"
    }
  }
}

🔑 Getting Your API Key

  1. Go to https://whop.com/dashboard/developer
  2. Click Create in the Company API Keys section
  3. Give your key a name (e.g. "Claude Integration")
  4. Select the appropriate permissions (Payments, Memberships, Products, etc.)
  5. Copy the key — you'll never see it again!

💰 Available Tools

💰 Payments & Finance

Tool Description
list_payments List payments with filters (status, product, date range, pagination)
get_payment Get full details of a specific payment
refund_payment Issue a full or partial refund for a payment
retry_payment Retry a failed payment attempt
void_payment Void an open/uncollected payment
get_financial_summary High-level revenue, refund, and fee summary

🪪 Memberships & Licenses

Tool Description
list_memberships List memberships with filters (status, product, user, validity)
get_membership Get full membership details including license key and expiry
validate_license Validate a license key and check if its membership is active
add_free_days Extend a membership by adding free days
cancel_membership Cancel a membership at period end
terminate_membership Immediately revoke a membership
update_membership Update metadata on a membership

📦 Products & Catalog

Tool Description
list_products List all products with plans and experiences
get_product Get full product details, plans, and experiences
create_product Create a new product
update_product Update product name, visibility, or description
delete_product Delete a product permanently
list_plans List all pricing plans for a product

🎟️ Promo Codes & Discounts

Tool Description
list_promo_codes List all promo codes with optional status filter
get_promo_code Get details of a specific promo code
create_promo_code Create a new discount code (% or $ off)
update_promo_code Update an existing promo code (status, expiry, etc.)
delete_promo_code Permanently delete a promo code

🤝 Affiliates

Tool Description
list_affiliates List all affiliates with commission and earnings data
get_affiliate Get detailed stats for a specific affiliate
get_affiliate_summary Aggregate affiliate program performance with top performers

👥 Customers & Reviews

Tool Description
get_user Look up a Whop user by username or user ID
search_users_by_email Find customers by email address
list_reviews Fetch customer reviews with optional star rating filter
get_review_stats Aggregate review statistics (avg rating, distribution)

▶️ Example Prompts

Once connected, you can ask your AI assistant:

  • "Show me all payments from the last 30 days"
  • "Refund payment pay_123abc"
  • "Add 7 free days to membership mem_456def"
  • "Create a 20% off promo code called SUMMER20 that expires December 31, 2025"
  • "What's my average customer review rating?"
  • "Who are my top 5 affiliates by earnings?"
  • "Validate license key ABC-1234-XYZ"

🔧 Development

# Install deps
npm install

# Run in dev mode (auto-reload)
npm run dev

# Build
npm run build

# Test manually
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | WHOP_API_KEY=test node dist/index.js

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📄 License

This project is licensed under the MIT License.


⚠️ Disclaimer: This is a community-led project and is NOT an official Whop.com product. It is not affiliated with, endorsed by, or supported by Whop.com. Always test in a non-production environment before running actions like refunds or membership terminations.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选