Home / Servers / Stripe API / post_tax_calculations

Create a Calculation

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

Create a Calculation Calculates tax based on the input and returns a Tax Calculation object. [POST /v1/tax/calculations]

Name on the gateway: stripe_api__post_tax_calculations · may change things.

Parameters

NameTypeDescription
currency requiredstringThree-letter ISO currency code, in lowercase. Must be a supported currency.
customerstringThe ID of an existing customer to use for this calculation. If provided, the…
customer_detailsobjectDetails about the customer, including address and tax IDs.
expandarraySpecifies which fields in the response should be expanded.
line_items requiredarrayA list of items the customer is purchasing. You can pass up to 100 line items…
ship_from_detailsobjectDetails about the address from which the goods are being shipped.
shipping_costobjectShipping cost details to be used for the calculation.
tax_dateintegerThe calculation uses the tax rules and rates that are in effect at this…

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_tax_calculations",
  "arguments": {
    "currency": "…",
    "line_items": []
  }
}

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 calculation tool with currency set to ….

More from Stripe API