Mcp 服务器用于 Paddle 计费
概览
什么是 Paddle MCP 服务器?
Paddle MCP 服务器是一个强大的工具,旨在促进与 Paddle API 的交互。它允许开发人员管理其 Paddle 账户的各个方面,包括产品目录、账单、订阅和报告。该服务器充当您的应用程序与 Paddle 服务之间的桥梁,实现无缝集成和任务自动化。
Paddle MCP 服务器的特点
- API 集成:轻松连接 Paddle API,执行创建产品、管理订阅和处理支付等操作。
- AI 助手兼容性:使用 AI 助手(如 Claude)或通过 AI 驱动的 IDE(如 Cursor)与 Paddle 进行交互,提高生产力和效率。
- 综合管理:从单一界面管理整个产品目录、账单流程和订阅模型。
- 报告工具:生成详细报告以分析销售、客户行为和其他关键指标,以便做出明智的商业决策。
- 开源:Paddle MCP 服务器是公开可用的,允许开发人员为其开发做出贡献,并根据特定需求进行定制。
如何使用 Paddle MCP 服务器
- 安装:首先从 GitHub 克隆代码库。使用以下命令:
git clone https://github.com/PaddleHQ/paddle-mcp-server.git
- 配置:设置您的 Paddle API 密钥,并根据您的要求配置服务器设置。
- 运行服务器:使用适合您环境的命令启动服务器。确保所有依赖项已安装。
- API 调用:利用提供的 API 端点与 Paddle 进行交互。您可以根据需要创建、读取、更新和删除资源。
- 监控和报告:使用内置的报告工具监控您的销售和订阅,并根据需要进行调整。
常见问题解答
问:Paddle MCP 服务器支持哪些编程语言?
答:Paddle MCP 服务器被设计为语言无关,允许与任何能够发出 HTTP 请求的编程语言集成。
问:Paddle MCP 服务器是免费使用的吗?
答:是的,Paddle MCP 服务器是开源的,免费使用。您可以根据 Apache-2.0 许可证的条款进行修改和分发。
问:我可以为 Paddle MCP 服务器做贡献吗?
答:当然可以!欢迎贡献。您可以在 GitHub 代码库上提交问题、功能请求或拉取请求。
问:我该如何报告错误?
答:如果您遇到任何问题,请在 Paddle MCP 服务器代码库的 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
Server配置
{
"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": {}
}
}
}