Mcp 伺服器用於 Paddle 計費
概覽
什麼是 Paddle MCP Server?
Paddle MCP Server 是一個強大的工具,旨在促進與 Paddle API 的互動。它允許開發者管理其 Paddle 帳戶的各個方面,包括產品目錄、計費、訂閱和報告。這個伺服器充當您的應用程序與 Paddle 服務之間的橋樑,使任務的無縫集成和自動化成為可能。
Paddle MCP Server 的特點
- API 集成:輕鬆連接到 Paddle API,執行創建產品、管理訂閱和處理付款等操作。
- AI 助手兼容性:使用 AI 助手如 Claude 或通過 AI 驅動的 IDE 如 Cursor 與 Paddle 互動,提升生產力和效率。
- 全面管理:從單一界面管理整個產品目錄、計費流程和訂閱模型。
- 報告工具:生成詳細報告以分析銷售、客戶行為和其他關鍵指標,幫助做出明智的商業決策。
- 開源:Paddle MCP Server 是公開可用的,允許開發者為其開發做出貢獻並根據具體需求進行自定義。
如何使用 Paddle MCP Server
- 安裝:首先從 GitHub 克隆存儲庫。使用以下命令:
git clone https://github.com/PaddleHQ/paddle-mcp-server.git
- 配置:設置您的 Paddle API 密鑰並根據需求配置伺服器設置。
- 啟動伺服器:使用適合您環境的命令啟動伺服器。確保所有依賴項已安裝。
- API 調用:利用提供的 API 端點與 Paddle 互動。您可以根據需要創建、讀取、更新和刪除資源。
- 監控和報告:使用內置的報告工具來監控您的銷售和訂閱,根據需要進行調整。
常見問題
問:Paddle MCP Server 支持哪些編程語言?
答:Paddle MCP Server 設計為與語言無關,允許與任何可以發送 HTTP 請求的編程語言集成。
問:Paddle MCP Server 是免費使用的嗎?
答:是的,Paddle MCP Server 是開源的,免費使用。您可以根據 Apache-2.0 許可證的條款進行修改和分發。
問:我可以為 Paddle MCP Server 做貢獻嗎?
答:當然可以!歡迎貢獻。您可以在 GitHub 存儲庫上提交問題、功能請求或拉取請求。
問:我該如何報告錯誤?
答:如果您遇到任何問題,請在 Paddle MCP Server 存儲庫的 GitHub 問題頁面上報告。
問:我可以在哪裡找到更多文檔?
答:更多文檔和資源可以在 Paddle 開發者門戶 找到。
詳細
MCP Server for Paddle Billing
Paddle Billing is the developer-first merchant of record. We take care of payments, tax, subscriptions, and metrics with one unified API that does it all.
This is a Model Context Protocol (MCP) server that provides tools for interacting with the Paddle API.
Important: This MCP server works with Paddle Billing. It does not support Paddle Classic. To work with Paddle Classic, see: Paddle Classic API reference
Features
- List products in your Paddle catalog
- Create new products
- List prices for products
- Create new prices for products
- List customers
- List transactions
- List subscriptions
- Create custom reports for financial analysis
Installation
To use the MCP server, you'll need an API key. You can create and manage API keys in Paddle > Developer tools > Authentication:
- Sandbox: https://sandbox-vendors.paddle.com/authentication-v2
- Live: https://vendors.paddle.com/authentication-v2
To run the server in a client like Claude Desktop, Cursor or Windsurf, add the following to your MCP config:
{
"mcpServers": {
"paddle": {
"command": "npx",
"args": ["-y", "@paddle/paddle-mcp", "--api-key=PADDLE_API_KEY", "--environment=(sandbox|production)"]
}
}
}
Replace PADDLE_API_KEY
with your API key, and pass the correct value as environment
.
For detailed setup guides, see:
Development
-
Install dependencies:
pnpm install
-
Build the server:
pnpm build
-
Update client to use the local build:
{ "mcpServers": { "paddle": { "command": "node", "args": ["path/to/paddle-mcp-server/build/index.js"], "env": { "PADDLE_API_KEY": "your_api_key", "PADDLE_ENVIRONMENT": "sandbox" } } } }
Debugging
To debug the MCP server, you can use the MCP Inspector tool:
-
Run the server with the inspector:
pnpm inspector
-
Open the provided URL in your browser to view and debug the MCP requests and responses.
-
Include the
--api-key
and--environment
arguments.
Learn more
伺服器配置
{
"mcpServers": {
"paddle-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--paddlehq--paddle-mcp-server--paddle-mcp-server",
"node ./build/index.js --api-key paddle-api-key --environment paddle-environment"
],
"env": {}
}
}
}