Home / Servers / Stripe API / post_billing_meters

Create a billing meter

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

Create a billing meter Creates a billing meter. [POST /v1/billing/meters]

Name on the gateway: stripe_api__post_billing_meters · may change things.

Parameters

NameTypeDescription
customer_mappingobjectFields that specify how to map a meter event to a customer.
default_aggregation requiredobjectThe default settings to aggregate a meter's events with.
display_name requiredstringThe meter’s name. Not visible to the customer.
event_name requiredstringThe name of the meter event to record usage for. Corresponds with the…
event_time_windowday | hourThe time window which meter events have been pre-aggregated for, if any.
expandarraySpecifies which fields in the response should be expanded.
value_settingsobjectFields that specify how to calculate a meter event's value.

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_meters",
  "arguments": {
    "default_aggregation": "…",
    "display_name": "…",
    "event_name": "…"
  }
}

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 billing meter tool with customer_mapping set to ….

More from Stripe API