# MCP Braintree

> MCP Braintree is an open-source MCP server. MCP server for Braintree (PayPal) — global card processing via GraphQL: charge, refund, vault. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/braintree
- **MCP Registry name:** io.github.codespar/mcp-braintree
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-braintree --env BRAINTREE_MERCHANT_ID='<BRAINTREE_MERCHANT_ID>' --env BRAINTREE_PUBLIC_KEY='<BRAINTREE_PUBLIC_KEY>' --env BRAINTREE_PRIVATE_KEY='<BRAINTREE_PRIVATE_KEY>' -- npx -y @codespar/mcp-braintree
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-braintree": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braintree"
      ],
      "env": {
        "BRAINTREE_MERCHANT_ID": "<BRAINTREE_MERCHANT_ID>",
        "BRAINTREE_PUBLIC_KEY": "<BRAINTREE_PUBLIC_KEY>",
        "BRAINTREE_PRIVATE_KEY": "<BRAINTREE_PRIVATE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-braintree": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braintree"
      ],
      "env": {
        "BRAINTREE_MERCHANT_ID": "<BRAINTREE_MERCHANT_ID>",
        "BRAINTREE_PUBLIC_KEY": "<BRAINTREE_PUBLIC_KEY>",
        "BRAINTREE_PRIVATE_KEY": "<BRAINTREE_PRIVATE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-braintree": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braintree"
      ],
      "env": {
        "BRAINTREE_MERCHANT_ID": "<BRAINTREE_MERCHANT_ID>",
        "BRAINTREE_PUBLIC_KEY": "<BRAINTREE_PUBLIC_KEY>",
        "BRAINTREE_PRIVATE_KEY": "<BRAINTREE_PRIVATE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-braintree": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braintree"
      ],
      "env": {
        "BRAINTREE_MERCHANT_ID": "<BRAINTREE_MERCHANT_ID>",
        "BRAINTREE_PUBLIC_KEY": "<BRAINTREE_PUBLIC_KEY>",
        "BRAINTREE_PRIVATE_KEY": "<BRAINTREE_PRIVATE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-braintree": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-braintree"
      ],
      "env": {
        "BRAINTREE_MERCHANT_ID": "<BRAINTREE_MERCHANT_ID>",
        "BRAINTREE_PUBLIC_KEY": "<BRAINTREE_PUBLIC_KEY>",
        "BRAINTREE_PRIVATE_KEY": "<BRAINTREE_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is MCP Braintree free?

Yes. MCP Braintree is open source, so you can use and self-host it for free.

### How do I add MCP Braintree to Claude Code?

Run this command in your terminal: claude mcp add mcp-braintree --env BRAINTREE_MERCHANT_ID='<BRAINTREE_MERCHANT_ID>' --env BRAINTREE_PUBLIC_KEY='<BRAINTREE_PUBLIC_KEY>' --env BRAINTREE_PRIVATE_KEY='<BRAINTREE_PRIVATE_KEY>' -- npx -y @codespar/mcp-braintree

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/mcp-braintree
