Mcp Braintree

io.github.codespar由 GitHub 帳號 codespar 發布v0.2.2更新於 Oct 24, 2026

MCP server for Braintree (PayPal) — global card processing via GraphQL: charge, refund, vault

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

概覽

AI 產生的概覽

針對 Braintree(PayPal)信用卡付款的 MCP 伺服器:透過 GraphQL 授權、請款、退款、儲存付款方式,並管理客戶與爭議。

可以做什麼
  • 授權、請款、捕獲、作廢、退款交易並提交清算
  • 儲存、更新、驗證與刪除已儲存的付款方式
  • 建立、更新、搜尋與刪除客戶
  • 查詢與搜尋交易、客戶、爭議與商戶帳戶
  • 產生供瀏覽器或行動裝置權杖化使用的用戶端權杖
適用情境
適合已擁有 Braintree 商戶帳戶、希望由助理處理付款操作、付款方式儲存與客戶管理的情境,例如銷售給美國或歐洲買家的 SaaS 服務。建議先在 sandbox 環境驗證流程,再接觸正式環境。
執行需求
透過 npm 套件以 stdio 在本機執行(npx),設定 MCP_HTTP 與 MCP_PORT 時也可改用 HTTP。需要 Braintree 商戶帳戶,以及環境變數 BRAINTREE_MERCHANT_ID、BRAINTREE_PUBLIC_KEY、BRAINTREE_PRIVATE_KEY,另可選用 BRAINTREE_ENV(預設 sandbox)與 BRAINTREE_API_VERSION。需要能連線至 Braintree GraphQL 端點的網路。
安裝前請注意
BRAINTREE_PRIVATE_KEY 是機密 API 憑證,請勿寫入日誌或共用設定檔。在正式環境中這些工具會動用真實資金:請款、捕獲、退款、作廢、接受爭議以及刪除客戶或付款方式都無法復原。預設使用 sandbox,但將 BRAINTREE_ENV 設為 production 即會執行真實交易。付款方式 ID 必須來自用戶端權杖化,不接受原始卡號。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@codespar/mcp-braintree

MCP server for Braintree (PayPal) — global card processing via the Braintree GraphQL API.

Target customer: LatAm SaaS selling to US/EU buyers who already hold a Braintree merchant account and want agent-driven payments, vaulting, and customer management.

Tools (22)

ToolPurpose
authorize_transactionAuthorize a transaction (reserve funds without capturing) via Braintree GraphQL authorizePaymentMethod.
charge_transactionAuthorize and capture a transaction atomically via Braintree GraphQL chargePaymentMethod.
capture_transactionCapture a previously authorized transaction via captureTransaction.
refund_transactionRefund a settled transaction via refundTransaction.
void_transactionVoid an unsettled transaction (reverse the authorization) via reverseTransaction.
vault_payment_methodPermanently store a tokenized payment method in the Braintree vault via vaultPaymentMethod.
delete_payment_methodDelete a vaulted payment method via deletePaymentMethodFromVault.
create_customerCreate a Braintree customer via createCustomer.
update_customerUpdate an existing Braintree customer via updateCustomer.
get_transactionFetch a transaction by id via the GraphQL search.transactions query.
get_customerFetch a customer by id via the GraphQL node(id:) query.
submit_for_settlementSubmit a previously authorized transaction for settlement via submitTransactionForSettlement.
update_payment_methodUpdate metadata on a vaulted payment method via updatePaymentMethod.
verify_payment_methodRun a credit-card verification (zero-auth or $1 auth) on a tokenized payment method via verifyPaymentMethod.
delete_customerDelete a Braintree customer via deleteCustomer.
find_customerSearch for customers via the GraphQL search.customers query.
search_transactionsSearch transactions via the GraphQL search.transactions query.
find_disputeFetch a dispute by id via the GraphQL node(id:) query.
accept_disputeAccept liability for a dispute via acceptDispute — the merchant concedes and the disputed amount is refunde...
finalize_disputeFinalize a dispute via finalizeDispute — submits previously added evidence to the card network for review.
find_merchant_accountFetch a merchant account by id via the GraphQL node(id:) query.
create_client_tokenMint a Braintree client token via createClientToken for client-side tokenization (Drop-in, Hosted Fields, m...

Install

bash
npm install @codespar/mcp-braintree

Environment

bash
BRAINTREE_MERCHANT_ID="..."   # merchant idBRAINTREE_PUBLIC_KEY="..."    # public API key (Basic auth user)BRAINTREE_PRIVATE_KEY="..."   # private API key (Basic auth password, secret)BRAINTREE_ENV="sandbox"       # 'sandbox' (default) or 'production'BRAINTREE_API_VERSION="2019-01-01"  # optional, Braintree-Version header

Endpoints:

  • sandbox → https://payments.sandbox.braintree-api.com/graphql
  • production → https://payments.braintree-api.com/graphql

Authentication

Braintree's GraphQL endpoint accepts HTTP Basic auth with PUBLIC_KEY:PRIVATE_KEY base64-encoded. Every request also requires a Braintree-Version: YYYY-MM-DD header — the server defaults to 2019-01-01 and can be overridden with BRAINTREE_API_VERSION.

Payment method ids

Most mutations take a paymentMethodId. These come from client-side tokenization (Braintree Drop-in / Hosted Fields / SDKs) — the server does not accept raw PANs. Use create_client_token to mint a token for the browser or mobile SDK.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-braintree
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-braintree

Notes

  • Amount is a string in Braintree GraphQL (e.g. "10.50"), not a number. The server forwards whatever shape the agent passes; strings are the safe default.
  • Braintree's GraphQL schema evolves; some input fields not exposed in the MCP inputSchema can still be passed in additional / nested objects and will be forwarded.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

來源:packages/payments/braintree/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分