Skip to content
FunCoding

mcp-braintree

Listed in the official MCP Registry

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

Star
278
Category
MCP tooling
Version
v0.2.2
License
MIT
Last commit
Nov 13, 2026

@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

npm install @codespar/mcp-braintree

Environment

BRAINTREE_MERCHANT_ID="..."   # merchant id
BRAINTREE_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

# 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

Similar MCP servers

OpenWork MCP Gateway

Your OpenWork org's skills, plugins, workflows, and connections through one OAuth MCP URL.

DIdifferent-ai/openwork25k46 new stars in the last 7 days

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

TAtadata-org/fastapi_mcp12k

agentgateway

Next Generation Agentic Proxy for AI Agents and MCP servers

AGagentgateway/agentgateway6.5k135 new stars in the last 7 days

Featured

mcp-context-forge

Federate MCP, A2A and REST APIs behind one endpoint with central governance.

IBIBM/mcp-context-forge4.9k33 new stars in the last 7 days

Featured

FreeCAD MCP

Control FreeCAD: create and edit 3D models, run Python scripts, and perform FEM analysis.

NEneka-nat/freecad-mcp3.5k78 new stars in the last 7 days