MCP Stripe 服务器是一个与 Stripe 集成的 Model Context Protocol (MCP) 服务器实现,可处理支付、客户和退款等业务。它提供了结构化的 API,能安全地管理财务交易,为用户提供便捷、安全的支付管理体验。
可通过 Smithery 自动安装 Claude Desktop 的 Stripe 服务器,命令如下:
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
python -m venv venv
source venv/bin/activate # 在 macOS/Linux 上
venv\Scripts\activate # 在 Windows 上
pip install -e .
在 .env 文件中设置环境变量:
STRIPE_API_KEY=your_stripe_secret_key
将服务器配置添加到您的 Claude Desktop 配置中:
{
"mcpServers": {
"stripe": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src",
"run",
"server.py"
]
}
}
}
uv run src/server.py
通过 Smithery 自动安装 Claude Desktop 的 Stripe 服务器:
npx -y @smithery/cli install @atharvagupta2003/mcp-stripe --client claude
python -m venv venv
source venv/bin/activate # 在 macOS/Linux 上
venv\Scripts\activate # 在 Windows 上
pip install -e .
在 .env 文件中设置环境变量:
STRIPE_API_KEY=your_stripe_secret_key
将服务器配置添加到您的 Claude Desktop 配置中:
Windows:C:\Users
{
"mcpServers": {
"stripe": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/src",
"run",
"server.py"
]
}
}
}
{
"tool": "customer_create",
"arguments": {
"email": "customer@example.com",
"name": "John Doe"
}
}
{
"tool": "customer_retrieve",
"arguments": {}
}
{
"tool": "customer_update",
"arguments": {
"id": "customer_id",
"email": "new_email@example.com"
}
}
uv payment_intent_create --amount 100 --currency usd
uv charge_list
{
"tool": "refund_create",
"arguments": {
"charge_id": "charge_123"
}
}
该服务器提供所有 Stripe 操作的审计日志记录:
该服务器实现 Stripe API 操作,包括:
保留所有权利。禁止未经授权的复制或分发。