Home / Servers / Stripe API / post_billing_portal_sessions

Create a portal session

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

Create a portal session Creates a session of the customer portal. [POST /v1/billing_portal/sessions]

Name on the gateway: stripe_api__post_billing_portal_sessions · may change things.

Parameters

NameTypeDescription
configurationstringThe ID of an existing configuration to use for this session, describing its…
customerstringThe ID of an existing customer.
customer_accountstringThe ID of an existing account.
expandarraySpecifies which fields in the response should be expanded.
flow_dataobjectInformation about a specific flow for the customer to go through. See the docs…
localestringThe IETF language tag of the locale customer portal is displayed in. If blank…
on_behalf_ofstringThe on_behalf_of account to use for this session. When specified, only…
return_urlstringThe default URL to redirect customers to when they click on the portal's link…

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_billing_portal_sessions",
  "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 portal session tool with configuration set to ….

More from Stripe API