Braintree

Braintree

An unofficial MCP server for interacting with PayPal Braintree payment processing services.

3
Stars
3
Forks
0
Releases

Overview

An MCP server for interacting with PayPal Braintree payment processing services. It implements the Model Context Protocol (MCP) to give AI assistant models direct, structured access to Braintree's payment processing capabilities via GraphQL API. The server supports two transport modes: a STDIO transport suitable for Claude Desktop and other MCP clients that support stdio, where each client session runs in a separate process and the server terminates when the client disconnects; and a Server-Sent Events (SSE) transport that runs as a standalone web server, handling multiple persistent client connections and defaults to 127.0.0.1:8001 (configurable). Configuration is via a .env file containing Braintree credentials (BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY, BRAINTREE_PRIVATE_KEY) and environment (sandbox or production). The MCP tools exposed include braintree_ping (connectivity test) and braintree_execute_graphql (execute arbitrary GraphQL queries). Examples cover common operations such as fetching a Customer and creating a Transaction. The server enables AI systems to fetch transactions, create payments, and manage customer data through MCP tools, facilitating secure automation of payment workflows within AI-assisted processes.

Details

Owner
QuentinCody
Language
Python
License
Other
Updated
2025-12-07

Features

STDIO Transport Server

Uses standard input/output for communication; designed for Claude Desktop and MCP clients that support STDIO; each client session spawns a new server process and terminates when the client disconnects.

SSE Transport Server

Server-Sent Events transport for a standalone web server; supports multiple persistent client connections; defaults to 127.0.0.1:8001 (configurable).

MCP GraphQL access to Braintree

Provides MCP-access to Braintree's GraphQL API to perform operations like fetching transactions and managing customers.

braintree_ping tool

Connectivity test that returns pong if credentials are valid.

braintree_execute_graphql tool

Execute arbitrary GraphQL queries against the Braintree API and return JSON responses.

Environment-based configuration

Credentials and environment configured via a .env file (BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY, BRAINTREE_PRIVATE_KEY, BRAINTREE_ENVIRONMENT).

Common GraphQL Operations examples

Includes examples for fetching customers and creating transactions to illustrate MCP usage.

Audience

AI agents/assistantsAccess Braintree payments, customers, and transactions via MCP to perform payment operations.
Developers integrating MCP with Claude Desktop or MCP clientsConfigure and connect via STDIO or SSE transports to integrate Braintree functionality into AI workflows.
Academic researchersExperiment with automated payment workflows; attribution may be required per MIT license and CITATION.md guidelines.

Tags

MCPBraintreePayPalGraphQLpaymentscustomerstransactionsSTDIOSSEClaude Desktop