Skip to content
MCP server

MCP Braintree

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.2.2
Listing updated
5 days ago

About MCP Braintree

MCP Braintree is an open-source MCP server. It runs locally on your machine and is started by your AI client.

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

Install

Run in a 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

Add to claude_desktop_config.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>"
      }
    }
  }
}

Add to ~/.cursor/mcp.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>"
      }
    }
  }
}

Add to .vscode/mcp.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>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.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>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • BRAINTREE_MERCHANT_IDBraintree merchant id (from the Control Panel > API).Required
  • BRAINTREE_PUBLIC_KEYBraintree public API key — Basic auth username.Required
  • BRAINTREE_PRIVATE_KEYBraintree private API key — Basic auth password (secret).Required
  • BRAINTREE_ENVBraintree environment. 'sandbox' (default, https://payments.sandbox.braintree-api.com/graphql) or 'production' (https://payments.braintree-api.com/graphql).
  • BRAINTREE_API_VERSIONBraintree-Version header value (YYYY-MM-DD). Defaults to 2019-01-01.

Pricing

Open source

MCP Braintree 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.

How AIPoweredBot checks servers