
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
概览
让助手通过 GraphQL 操作 Braintree(PayPal)银行卡支付:授权、扣款、请款、退款、撤销、保管支付方式,并管理客户与争议。
- 可以做什么
- 通过 Braintree GraphQL API 提供 22 个工具,包括 authorize_transaction、charge_transaction、capture_transaction、refund_transaction、void_transaction 和 submit_for_settlement。还涵盖支付方式保管(vault_payment_method、update_payment_method、delete_payment_method、verify_payment_method)、客户管理(创建、更新、查询、搜索、删除)、交易与争议查询、接受与终结争议、商户账户查询,以及用于客户端令牌化的 create_client_token。支付方式 ID 来自客户端令牌化,不接受原始卡号。
- 适用场景
- 适合已拥有 Braintree 商户账户、希望由助手处理支付操作、支付方式保管和客户记录的商家。适用于代理驱动的支付流程,也可先在沙箱环境测试再用于生产。
- 运行要求
- 以 npm 包(@codespar/mcp-braintree)通过 stdio 在本地运行,需要 Node.js。需要 BRAINTREE_MERCHANT_ID、BRAINTREE_PUBLIC_KEY 和 BRAINTREE_PRIVATE_KEY,可选 BRAINTREE_ENV(sandbox 或 production)与 BRAINTREE_API_VERSION。需要访问 Braintree GraphQL 端点的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Braintree,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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)
Install
Environment
Endpoints:
sandbox→https://payments.sandbox.braintree-api.com/graphqlproduction→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
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
inputSchemacan still be passed inadditional/ 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版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分