GoCardless MCP connector
OAuth 2.1/DCRAccounting & FinanceAIDeveloper ToolsConnect to GoCardless MCP. Retrieve and list customers, mandates, payments, payouts, refunds, and subscriptions, and explore integration options from your...
GoCardless MCP connector
-
Install the SDK
Section titled “Install the SDK”Terminal window npm install @scalekit-sdk/nodeTerminal window pip install scalekit -
Set your credentials
Section titled “Set your credentials”Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret> -
Authorize and make your first call
Section titled “Authorize and make your first call”quickstart.ts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENV_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'gocardlessmcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize GoCardless MCP:', link)process.stdout.write('Press Enter after authorizing...')await new Promise(r => process.stdin.once('data', r))// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'gocardlessmcp_get_environment',toolInput: {},})console.log(result)quickstart.py import osfrom scalekit.client import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENV_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "gocardlessmcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize GoCardless MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="gocardlessmcp_get_environment",connection_name=connection_name,identifier=identifier,)print(result)
What you can do
Section titled “What you can do”Connect this agent connector to let your agent:
- Feedback submit — Submit a helpfulness rating (1–5) for the current MCP session, with an optional comment
- Read gocardless resource — Read the contents of a GoCardless resource by URI to fetch API endpoint details or documentation
- List subscriptions, refunds, payouts — List subscriptions (recurring payment schedules), optionally filtered by status, customer, or mandate
- Gocardless integrate with — Return an overview of GoCardless integration options for collecting one-off and recurring payments
- Get subscription, refund, payout — Retrieve a single subscription (recurring payment schedule) by its subscription ID
Tool list
Section titled “Tool list”Use the exact tool names from the Tool list below when you call execute_tool. If you’re not sure which name to use, list the tools available for the current user first.
gocardlessmcp_get_customer#Retrieve a single customer by ID, with PII fields partially masked.1 param
Retrieve a single customer by ID, with PII fields partially masked.
idstringrequiredCustomer ID (e.g. CU000123)gocardlessmcp_get_environment#Return the current GoCardless environment (sandbox or live) and setup instructions.0 params
Return the current GoCardless environment (sandbox or live) and setup instructions.
gocardlessmcp_get_mandate#Retrieve a single mandate (Direct Debit authorisation) by its mandate ID.1 param
Retrieve a single mandate (Direct Debit authorisation) by its mandate ID.
idstringrequiredMandate ID (e.g. MD000123)gocardlessmcp_get_payment#Retrieve a single payment by its payment ID.1 param
Retrieve a single payment by its payment ID.
idstringrequiredPayment ID (e.g. PM000123)gocardlessmcp_get_payout#Retrieve a single payout (bank settlement) by its payout ID.1 param
Retrieve a single payout (bank settlement) by its payout ID.
idstringrequiredPayout ID (e.g. PO000123)gocardlessmcp_get_refund#Retrieve a single refund by its refund ID.1 param
Retrieve a single refund by its refund ID.
idstringrequiredRefund ID (e.g. RF000123)gocardlessmcp_get_subscription#Retrieve a single subscription (recurring payment schedule) by its subscription ID.1 param
Retrieve a single subscription (recurring payment schedule) by its subscription ID.
idstringrequiredSubscription ID (e.g. SB000123)gocardlessmcp_integrate_with_gocardless#Return an overview of GoCardless integration options for collecting one-off and recurring payments.0 params
Return an overview of GoCardless integration options for collecting one-off and recurring payments.
gocardlessmcp_list_customers#List customers, optionally filtered by creation date range.5 params
List customers, optionally filtered by creation date range.
afterstringoptionalCursor for next pagecreated_at_gtestringoptionalFilter: created at or after this ISO 8601 datetimecreated_at_ltestringoptionalFilter: created at or before this ISO 8601 datetimelimitnumberoptionalNumber of results per page (default 50, max 500)sort_directionstringoptionalSort direction: asc or descgocardlessmcp_list_events#List audit log events for state changes across all resources, optionally filtered by resource type, action, or date range.11 params
List audit log events for state changes across all resources, optionally filtered by resource type, action, or date range.
actionstringoptionalFilter by action (e.g. created, confirmed, failed, paid_out, cancelled)afterstringoptionalCursor for next pagecreated_at_gtestringoptionalFilter: created at or after this ISO 8601 datetimecreated_at_ltestringoptionalFilter: created at or before this ISO 8601 datetimelimitnumberoptionalNumber of results per page (default 50, max 500)mandatestringoptionalFilter by mandate IDpaymentstringoptionalFilter by payment IDpayoutstringoptionalFilter by payout IDrefundstringoptionalFilter by refund IDresource_typestringoptionalFilter by resource type: payments, mandates, payouts, refunds, subscriptions, instalment_schedulessubscriptionstringoptionalFilter by subscription IDgocardlessmcp_list_mandates#List mandates (Direct Debit authorisations), optionally filtered by status, customer, or scheme.5 params
List mandates (Direct Debit authorisations), optionally filtered by status, customer, or scheme.
afterstringoptionalCursor for next pagecustomerstringoptionalFilter by customer IDlimitnumberoptionalNumber of results per page (default 50, max 500)schemestringoptionalFilter by scheme: bacs, sepa_core, ach, autogiro, becs, becs_nz, betalingsservice, faster_payments, pad, pay_tostatusstringoptionalFilter by status: pending_customer_approval, pending_submission, submitted, active, suspended_by_payer, failed, cancelled, expired, consumed, blockedgocardlessmcp_list_payments#List payments, optionally filtered by status, customer, mandate, subscription, currency, or date range.10 params
List payments, optionally filtered by status, customer, mandate, subscription, currency, or date range.
afterstringoptionalCursor for next page (from previous response's next_cursor)created_at_gtestringoptionalFilter: created at or after this ISO 8601 datetimecreated_at_ltestringoptionalFilter: created at or before this ISO 8601 datetimecurrencystringoptionalFilter by currency code (e.g. GBP, EUR, USD)customerstringoptionalFilter by customer ID (e.g. CU000123)limitnumberoptionalNumber of results per page (default 50, max 500)mandatestringoptionalFilter by mandate ID (e.g. MD000123)sort_directionstringoptionalSort direction: asc or descstatusstringoptionalFilter by status: pending_submission, submitted, confirmed, paid_out, cancelled, customer_approval_denied, failed, charged_backsubscriptionstringoptionalFilter by subscription ID (e.g. SB000123)gocardlessmcp_list_payouts#List payouts (bank settlements), optionally filtered by status, currency, or date range.6 params
List payouts (bank settlements), optionally filtered by status, currency, or date range.
afterstringoptionalCursor for next pagecreated_at_gtestringoptionalFilter: created at or after this ISO 8601 datetimecreated_at_ltestringoptionalFilter: created at or before this ISO 8601 datetimecurrencystringoptionalFilter by currency code (e.g. GBP, EUR, USD)limitnumberoptionalNumber of results per page (default 50, max 500)statusstringoptionalFilter by status: pending, paid, bouncedgocardlessmcp_list_refunds#List refunds, optionally filtered by payment, mandate, or date range.6 params
List refunds, optionally filtered by payment, mandate, or date range.
afterstringoptionalCursor for next pagecreated_at_gtestringoptionalFilter: created at or after this ISO 8601 datetimecreated_at_ltestringoptionalFilter: created at or before this ISO 8601 datetimelimitnumberoptionalNumber of results per page (default 50, max 500)mandatestringoptionalFilter by mandate IDpaymentstringoptionalFilter by payment IDgocardlessmcp_list_subscriptions#List subscriptions (recurring payment schedules), optionally filtered by status, customer, or mandate.5 params
List subscriptions (recurring payment schedules), optionally filtered by status, customer, or mandate.
afterstringoptionalCursor for next pagecustomerstringoptionalFilter by customer IDlimitnumberoptionalNumber of results per page (default 50, max 500)mandatestringoptionalFilter by mandate IDstatusstringoptionalFilter by status: pending_customer_approval, active, cancelled, finished, pausedgocardlessmcp_read_gocardless_resource#Read the contents of a GoCardless resource by URI to fetch API endpoint details or documentation.1 param
Read the contents of a GoCardless resource by URI to fetch API endpoint details or documentation.
uristringrequiredThe gocardless:// resource URI to readgocardlessmcp_submit_feedback#Submit a helpfulness rating (1–5) for the current MCP session, with an optional comment.2 params
Submit a helpfulness rating (1–5) for the current MCP session, with an optional comment.
ratingnumberrequiredHow helpful was this session? 1 = not helpful at all, 5 = extremely helpfulcommentstringoptionalOptional additional feedback