GoCardless MCP server for AI agents

Live

OAUTH 2.1

DIRECT DEBIT

Accounting & Finance

GoCardless MCP gives your agent Direct Debit operations: look up customers, mandates, payments, payouts, and refunds, create payment links and subscriptions, and refund payments.

  • Per-user credentials: each call uses the actual user's token, 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.
GoCardless MCP
agent · Acme Q3
Run
Which payments failed since Monday, and which mandates are they on?
S
gocardlessmcp_list_payments
126ms
Payments agent
4 payments moved to failed since Monday, each on a different mandate. The largest is GBP 1,250 on mandate MD000123.
Sources: GoCardless payments, 4 records
gocardlessmcp
4 payments
18:29
Message Claude...

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

CALL ANY TOOL
26 tools for Direct Debit on GoCardless: read customers, mandates, payments, payouts, refunds, subscriptions, and events, create payment links, and create, refund, or cancel payments.
gocardlessmcp_cancel_mandate
Cancel mandate
Cancel a mandate (Direct Debit authorisation). This also auto-cancels any active subscriptions and pending payments attached to the mandate. Irreversible once cancelled.
Parameters
Name
Type
Required
Description
confirmed
boolean
Optional
Set true only after the user has explicitly confirmed the preview in their most recent message. Default false (returns a preview).
mandate_id
string
Optional
ID of the mandate to cancel (e.g. MD000123). Must be in a cancellable state, see description.
mandate_ids
array
Optional
For bulk cancellations: list of mandate IDs to cancel (max 10). Use instead of mandate_id.
preview_token
string
Optional
Required when confirmed=true: the preview_token field from this tool's own preceding preview response (the confirmed=false call for these exact same parameters). Rejected if missing, mismatched, already used, or if confirmed=true arrives too soon after the preview, a preview_token is only valid a few seconds after being issued, since it exists to prove a genuine user reply happened in between, not just that a preview call was made. If confirmed=true is rejected for being too soon, wait for the user's actual next message before trying again; do not immediately retry.
gocardlessmcp_cancel_payment
Cancel payment
gocardlessmcp_create_payment
Create payment
gocardlessmcp_create_payment_link
Create payment link
gocardlessmcp_create_payment_template_link
Create payment template link
gocardlessmcp_create_refund
Refund create
gocardlessmcp_create_subscription
Create subscription
gocardlessmcp_get_customer
Get customer
gocardlessmcp_get_environment
Get environment
gocardlessmcp_get_mandate
Get mandate
gocardlessmcp_get_payment
Get payment
gocardlessmcp_get_payment_summary
Get payment summary
gocardlessmcp_get_payout
Get payout
gocardlessmcp_get_refund
Refund get
gocardlessmcp_get_subscription
Get subscription
gocardlessmcp_integrate_with_gocardless
Integrate with gocardless
gocardlessmcp_list_customers
List customers
gocardlessmcp_list_events
List events
gocardlessmcp_list_mandates
List mandates
gocardlessmcp_list_payments
List payments
gocardlessmcp_list_payouts
List payouts
gocardlessmcp_list_refunds
List refunds
gocardlessmcp_list_subscriptions
List subscriptions
gocardlessmcp_read_gocardless_resource
Read gocardless resource
gocardlessmcp_submit_feedback
Submit feedback
gocardlessmcp_update_subscription
Update subscription
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);

// GoCardless MCP tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["gocardlessmcp"], toolNames: [
    "gocardlessmcp_list_payments",
    "gocardlessmcp_get_mandate",
    "gocardlessmcp_list_payouts"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Which payments failed since Monday, and which mandates are they on?" }] });
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: ["gocardlessmcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Which payments failed since Monday, and which mandates are they on?" }],
  tools,
});

// Execute the tool call with the user's vaulted GoCardless token
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: ["gocardlessmcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Which payments failed since Monday, and which mandates are they on?" }],
  tools,
});

// Tool call runs with the user's vaulted GoCardless token
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: ["gocardlessmcp"] }, pageSize: 100,
});

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

await agent.run("Which payments failed since Monday, and which mandates are they on?");
Try these prompts
Copy any prompt into your agent. Each maps directly to a GoCardless MCP tool. Click to copy, paste into your agent, done.
Payments
Copy the prompt
Copied
List failed payments from the last 7 days.
Copy the prompt
Copied
Show every payment on mandate MD000123.
Copy the prompt
Copied
Cancel this payment before it is submitted to the bank.
Mandates and customers
Copy the prompt
Copied
List active mandates for customer CU000123.
Copy the prompt
Copied
Get the status and scheme of this mandate.
Copy the prompt
Copied
Show customers created this month.
Payouts, refunds, and links
Copy the prompt
Copied
List payouts in GBP from the last 30 days.
Copy the prompt
Copied
Refund half of payment PM000456 to the payer.
Copy the prompt
Copied
Create a payment link for this customer to set up a Direct Debit mandate.
SEE HOW AUTH WORKS
Each user signs in to GoCardless once; Scalekit stores and refreshes their tokens. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
GoCardless MCP
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
GoCardless MCP
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
GoCardless MCP
tool, we fetch the right token 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
GoCardless MCP
tool call is logged — who triggered it, which meeting was fetched, 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 finance and payments 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.
Support and Ops Teams
Support ticket automation agent
Fetches new Zendesk tickets, drafts a reply from Notion knowledge base articles, digests what it cannot answer to Slack, and archives the rest, acting as the support agent rather than a shared API key.
GTM and RevOps Teams
Deal room sync
Pulls opportunity context from Salesforce, captures key decisions from Slack, and syncs a running summary to the deal room doc in Google Drive, but only when the deal actually changed.
Test other agents
See the same per-user auth pattern across other finance and payments 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.
SUPPORT
Support ticket automation (Google ADK)
Fetch, annotate, and archive Zendesk tickets with Notion context, digesting anything it cannot answer to Slack.
GTM
Deal room sync agent
Pull opportunity context from Salesforce, capture decisions from Slack, and keep the Google Drive deal room doc current.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared GoCardless token looks fine in a demo. In production every payment lookup 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.
GoCardless 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 GoCardless as the user or as a shared key?
As the user. Each user signs in to GoCardless once, and Scalekit stores and refreshes their tokens. Audit logs attribute every action to that user, not a shared service account.
Where is the GoCardless OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in GoCardless?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the read tools without create_payment, create_refund, or cancel_mandate. Scalekit also enforces scope checks before every API call.
What happens when a user revokes GoCardless 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 GoCardless?
Only if you expose those tools. 5 of the 26 tools are destructive: create a payment against a mandate, create a subscription, refund a payment, cancel a payment, and cancel a mandate, which also cancels its subscriptions and pending payments. get_environment reports whether the connection points at sandbox or live.
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"": {
""gocardlessmcp"": {
""url"": ""https://mcp.scalekit.com/gocardlessmcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.gocardlessmcp]
url = ""https://mcp.scalekit.com/gocardlessmcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""gocardlessmcp"": {
""url"": ""https://mcp.scalekit.com/gocardlessmcp"",
""type"": ""http""
}
}
}