Payport

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 1, 2026

Customers, products, prices, invoices, and payments through the Stripe API.

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理管理 Stripe 帳戶:客戶、商品、價格、付款連結、發票、退款、優惠券、爭議與訂閱。

可以做什麼
  • 建立與列出客戶、商品、價格及優惠券
  • 建立託管付款連結並列出付款意圖
  • 建立草稿發票、加入明細項目、完成發票並列出發票
  • 查詢帳戶餘額並建立全額或部分退款
  • 列出爭議、加入證據並可選擇提交
  • 列出、更新與取消訂閱
適用情境
適合讓助理在對話或代理流程中處理日常 Stripe 帳務:建立客戶、建置商品目錄、寄送付款連結或發票、查看餘額、退款,以及管理訂閱與爭議。
執行需求
以本機 stdio 程序執行,可透過 npx 或 Docker 映像啟動。需在 STRIPE_SECRET_KEY 環境變數提供 Stripe 金鑰,缺少時所有操作都會失敗。需要連線至 Stripe API 的網路存取。
安裝前請注意
此金鑰擁有 Stripe 帳戶的完整權限,並會以 Bearer 權杖傳送給 Stripe。多數工具會寫入或變更與真實金流相關的資料:建立客戶、價格、付款連結、發票、退款、優惠券,完成發票,提交爭議證據,更新或取消訂閱。退款與完成發票會實際動用款項,執行前應先確認。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Payport,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

payport

payport gives an agent a working doorway into a Stripe account: open a customer record, put a product and a price in the catalog, hand a buyer a hosted payment link, draft an invoice and finalize it, check the balance, refund a payment, issue a coupon, answer a dispute, and manage subscriptions. Each operation is one call against the Stripe REST API, and the API's JSON answer comes back as-is. It runs from the command line or as an MCP server for agents.

A Stripe secret key is required. Put it in the STRIPE_SECRET_KEY environment variable; the key is sent to the API as a Bearer token and never appears in output. When the variable is missing, every operation fails with an error that names it.

Install

bash
npx @reneturcios/payport list-customers --limit 5

Or run the container image:

bash
docker run -i -e STRIPE_SECRET_KEY ghcr.io/cloudcorprecords/payport

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

bash
export STRIPE_SECRET_KEY="your secret key"
payport create-customer --name "Ada Lovelace" --email [email protected]payport list-customers --email [email protected] --limit 5payport create-product --name "Trail Guide" --description "A field guide"payport list-products --limit 10payport retrieve-balance
payport --version

Exit codes: 0 on success, 1 when an API call fails (including a missing STRIPE_SECRET_KEY), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/payport mcp

MCP client configuration:

json
{  "mcpServers": {    "payport": {      "command": "npx",      "args": ["-y", "@reneturcios/payport", "mcp"],      "env": { "STRIPE_SECRET_KEY": "your secret key" }    }  }}

Tools

ToolInputWhat it does
create_customername (string, required), email (string, optional)Create a customer.
list_customersemail (string, optional), limit (integer, optional)List customers, optionally filtered by exact email.
create_productname (string, required), description (string, optional)Create a catalog product.
list_productslimit (integer, optional)List products.
create_priceproduct, currency, unit_amount (all required)Create a price for a product; unit_amount is in the smallest currency unit.
list_pricesproduct (optional), limit (optional)List prices, optionally for one product.
create_payment_linkprice, quantity (required), redirect_url (optional)Create a hosted payment link.
list_payment_intentscustomer (optional), limit (optional)List payment intents.
create_invoicecustomer (required), days_until_due (optional)Create a draft invoice sent by email (send_invoice).
create_invoice_itemcustomer, price, invoice (all required)Add a priced line item to a draft invoice.
list_invoicescustomer (optional), limit (optional)List invoices.
finalize_invoiceinvoice (required)Finalize a draft invoice.
retrieve_balance—Retrieve the account balance.
create_refundpayment_intent (required), amount (optional)Refund a payment intent, in full or in part.
create_couponduration (required), percent_off, amount_off, currency, name, duration_in_months (optional)Create a coupon.
list_couponslimit (optional)List coupons.
list_disputescharge, payment_intent, limit (all optional)List disputes.
update_disputedispute (required), evidence (object, optional), submit (boolean, optional)Add evidence to a dispute and optionally submit it.
list_subscriptionscustomer, status, limit (all optional)List subscriptions.
cancel_subscriptionsubscription (required)Cancel a subscription.
update_subscriptionsubscription (required), price, cancel_at_period_end (optional)Update a subscription.

This is the documented core subset of the Stripe agent toolkit's 22-tool MCP set: search_stripe_documentation (a hosted documentation search, not a Stripe API operation) is not implemented.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev     # run the CLI from source via tsx

License

MIT — see LICENSE.

來源:README.md,提交 525961b

工具

21

create_customer

Create a customer in Stripe.

輸入參數name必填email

list_customers

List customers in Stripe, optionally filtered by email.

輸入參數emaillimit

create_product

Create a product in Stripe.

輸入參數name必填description

list_products

List products in Stripe.

輸入參數limit

create_price

Create a price for a product in Stripe.

輸入參數product必填currency必填unit_amount必填

list_prices

List prices in Stripe, optionally for one product.

輸入參數limitproduct

list_payment_intents

List payment intents in Stripe, optionally for one customer.

輸入參數limitcustomer

create_invoice

Create a draft invoice for a customer in Stripe.

輸入參數customer必填days_until_due

create_invoice_item

Add a priced line item to a draft invoice in Stripe.

輸入參數price必填invoice必填customer必填

list_invoices

List invoices in Stripe, optionally for one customer.

輸入參數limitcustomer

finalize_invoice

Finalize a draft invoice in Stripe so it can be paid.

輸入參數invoice必填

retrieve_balance

Retrieve the Stripe account balance.

無需輸入參數。

create_refund

Create a refund for a payment intent in Stripe.

輸入參數amountpayment_intent必填

create_coupon

Create a coupon in Stripe.

輸入參數namecurrencyduration必填amount_offpercent_offduration_in_months

list_coupons

List coupons in Stripe.

輸入參數limit

list_disputes

List disputes in Stripe, optionally filtered by charge or payment intent.

輸入參數limitchargepayment_intent

update_dispute

Update a dispute in Stripe with evidence, optionally submitting it.

輸入參數submitdispute必填evidence

list_subscriptions

List subscriptions in Stripe, optionally filtered by customer or status.

輸入參數limitstatuscustomer

cancel_subscription

Cancel a subscription in Stripe.

輸入參數subscription必填

update_subscription

Update a subscription in Stripe, for example its price or cancellation timing.

輸入參數pricesubscription必填cancel_at_period_end

版本歷史

1
  1. v0.1.0最新Nov 1, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分