Home / Servers / Stripe API / post_setup_intents

Create a SetupIntent

An MCP tool from the Stripe API server, hosted on mcp.hjlabs.in.

Create a SetupIntent Creates a SetupIntent object. After you create the SetupIntent, attach a payment method and confirm it to collect any required permissions to charge the payment method later. [POST /v1/setup_intents]

Name on the gateway: stripe_api__post_setup_intents · may change things.

Parameters

NameTypeDescription
allowed_payment_method_typesarrayThe list of payment method types to allow for this SetupIntent. Stripe will…
attach_to_selfbooleanIf present, the SetupIntent's payment method will be attached to the…
automatic_payment_methodsobjectWhen you enable this parameter, this SetupIntent accepts payment methods that…
confirmbooleanSet to true to attempt to confirm this SetupIntent immediately. This parameter…
confirmation_tokenstringID of the ConfirmationToken used to confirm this SetupIntent. If the provided…
customerstringID of the Customer this SetupIntent belongs to, if one exists. If present, the…
customer_accountstringID of the Account this SetupIntent belongs to, if one exists. If present, the…
descriptionstringAn arbitrary string attached to the object. Often useful for displaying to…
excluded_payment_method_typesarrayThe list of payment method types to exclude from use with this SetupIntent.
expandarraySpecifies which fields in the response should be expanded.
flow_directionsarrayIndicates the directions of money movement for which this payment method is…
mandate_dataobjectThis hash contains details about the mandate to create. This parameter can…
metadataobjectSet of key-value pairs that you can attach to an object. This can be useful…
on_behalf_ofstringThe Stripe account ID created for this SetupIntent.
payment_methodstringID of the payment method (a PaymentMethod, Card, or saved Source object) to…
payment_method_configurationstringThe ID of the payment method configuration to use with this SetupIntent.
payment_method_dataobjectWhen included, this hash creates a PaymentMethod that is set as the…
payment_method_optionsobjectPayment method-specific configuration for this SetupIntent.
return_urlstringThe URL to redirect your customer back to after they authenticate or cancel…
single_useobjectIf you populate this hash, this SetupIntent generates a single_use mandate…
usageoff_session | on_sessionIndicates how the payment method is intended to be used in the future. If not…
use_stripe_sdkbooleanSet to true when confirming server-side and using Stripe.js, iOS, or Android…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "stripe_api__post_setup_intents",
  "arguments": {}
}

Or connect the Stripe API server directly, which lists 606 tools including this one:

Run in your terminal
claude mcp add --transport http hj-stripe-api https://mcp.hjlabs.in/mcp/stripe-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a setupintent tool with allowed_payment_method_types set to ….

More from Stripe API