Braintree MCP server for AI agents

Live

API KEY

PAYMENTS

Accounting & Finance

Braintree gives your agent payments operations in your Braintree account: search transactions, refunds, and subscriptions, manage vaulted customers, and handle disputes, captures, and refunds.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Braintree
agent · Acme Q3
Run
Show me the settled transactions over $500 from last week.
S
braintree_transactions_search
318ms
Payments agent
7 settled transactions were over $500 last week. The largest was $1,240, and none are under dispute.
Sources: Braintree transactions, 7 results
braintree
7 transactions
18:29
Message Claude...

Tools your payments agent reaches for on Braintree, scoped per user.

CALL ANY TOOL
27 tools for payments in Braintree: search transactions, refunds, subscriptions, and disputes, manage vaulted customers and payment methods, and capture, void, charge, and refund.
braintree_customer_create
Create customer
Create a customer record in the Braintree vault. Returns the new customer's id, legacyId and details. This stores customer details only. Payment methods are vaulted through Braintree's client-side tokenization.
Parameters
Name
Type
Required
Description
company
string
Optional
Company name of the customer. Example: Acme Inc.
custom_fields
array
Optional
Custom field values, each with the name of a custom field defined in the Control Panel and a value. Example: [{"name": "loyalty_tier", "value": "gold"}].
email
string
Optional
Email address of the customer. Example: jane@example.com.
first_name
string
Optional
First name of the customer. Example: Jane.
last_name
string
Optional
Last name of the customer. Example: Doe.
phone_number
string
Optional
Phone number of the customer. Example: 312-555-1234.
website
string
Optional
Website URL of the customer. Example: https://acme.example.com.
braintree_customer_delete
Delete customer
braintree_customer_get
Get customer
braintree_customer_update
Update customer
braintree_customers_search
Search customers
braintree_dispute_accept
Dispute accept
braintree_dispute_finalize
Dispute finalize
braintree_dispute_get
Get dispute
braintree_dispute_text_evidence_create
Create dispute text evidence
braintree_disputes_search
Search disputes
braintree_legacy_id_convert
Convert legacy id
braintree_payment_method_charge
Payment method charge
braintree_payment_method_delete
Delete payment method
braintree_payment_method_get
Get payment method
braintree_ping
Ping
braintree_refund_reverse
Refund reverse
braintree_refunds_search
Search refunds
braintree_subscription_cancel
Cancel subscription
braintree_subscription_plans_list
List subscription plans
braintree_subscriptions_search
Search subscriptions
braintree_transaction_capture
Capture transaction
braintree_transaction_get
Get transaction
braintree_transaction_refund
Refund transaction
braintree_transaction_reverse
Transaction reverse
braintree_transaction_void
Void transaction
braintree_transactions_search
Search transactions
braintree_viewer_get
Get viewer
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Braintree tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["braintree"], toolNames: [
    "braintree_transactions_search",
    "braintree_disputes_search",
    "braintree_customer_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Search last week's settled transactions, list open disputes, and look up this vault customer" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["braintree"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Search last week's settled transactions, list open disputes, and look up this vault customer" }],
  tools,
});

// Execute the tool call with the user's vaulted Braintree API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["braintree"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Search last week's settled transactions, list open disputes, and look up this vault customer" }],
  tools,
});

// Tool call runs with the user's vaulted Braintree API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["braintree"] }, pageSize: 100,
});

const agent = new Agent({
  name: "payments_agent",
  model: "gemini-2.5-pro",
  instruction: "Braintree tools scoped to this user",
  tools,
});

await agent.run("Search last week's settled transactions, list open disputes, and look up this vault customer");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Braintree tool. Click to copy, paste into your agent, done.
Search payments
Copy the prompt
Copied
Search settled transactions over $500 from last week.
Copy the prompt
Copied
Find the transactions for this customer email.
Copy the prompt
Copied
Search refunds issued this month.
Disputes and subscriptions
Copy the prompt
Copied
List the open disputes and their reply-by dates.
Copy the prompt
Copied
Add text evidence to this open dispute.
Copy the prompt
Copied
Search active subscriptions on the Pro plan.
Customers
Copy the prompt
Copied
Find the vault customer with this email address.
Copy the prompt
Copied
Show this customer's vaulted payment methods.
Copy the prompt
Copied
Show which merchant and API user my connection belongs to.
SEE HOW AUTH WORKS
Each user connects their own Braintree API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Braintree
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Braintree
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Braintree
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Braintree
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Braintree API key looks fine in a demo. In production every charge and refund looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Braintree today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Braintree as the user or through a shared key?
As the user. Each user connects their own Braintree API key once, and Scalekit sends it with every call. Audit logs attribute every charge, refund, and dispute action to that user, not a shared service account.
Where is the Braintree API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Braintree?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search and get tools without braintree_payment_method_charge, braintree_transaction_refund, or braintree_dispute_accept, which charge a vaulted payment method, refund a transaction, and concede a dispute. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Braintree access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent move money in Braintree?
Only if you expose those tools. braintree_payment_method_charge charges a vaulted payment method, braintree_transaction_capture submits an authorization for settlement, and braintree_transaction_refund refunds a transaction. Leave them out of toolNames for a read-only agent.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""braintree"": {
""url"": ""https://mcp.scalekit.com/braintree"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.braintree]
url = ""https://mcp.scalekit.com/braintree""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""braintree"": {
""url"": ""https://mcp.scalekit.com/braintree"",
""type"": ""http""
}
}
}