Metered gateway for MCP servers and APIs: keys, quotas, Stripe meter events. Self-serve via MCP.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Put a metering gateway in front of your MCP server or HTTP API. Returns the public endpoint.
Display name
https URL of your MCP server or API
Units per successful call of a tool (default 1)
Headers sent to the upstream (e.g. Authorization). Stored encrypted, never returned.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http earnstile https://earnstile.com/api/mcp
Put a metering gateway in front of your MCP server or HTTP API. Returns the public endpoint.
| Argument | Type | Description |
|---|---|---|
| name* | string | Display name |
| type | string | |
| tool_weights | object | Units per successful call of a tool (default 1) |
| upstream_url* | string | https URL of your MCP server or API |
| rest_count_paths | array | |
| upstream_headers | object | Headers sent to the upstream (e.g. Authorization). Stored encrypted, never returned. |
{
"type": "object",
"required": [
"name",
"upstream_url"
],
"properties": {
"name": {
"type": "string",
"description": "Display name"
},
"type": {
"enum": [
"mcp",
"rest"
],
"type": "string",
"default": "mcp"
},
"tool_weights": {
"type": "object",
"description": "Units per successful call of a tool (default 1)",
"additionalProperties": {
"type": "integer"
}
},
"upstream_url": {
"type": "string",
"description": "https URL of your MCP server or API"
},
"rest_count_paths": {
"type": "array",
"items": {
"type": "string"
}
},
"upstream_headers": {
"type": "object",
"description": "Headers sent to the upstream (e.g. Authorization). Stored encrypted, never returned.",
"additionalProperties": {
"type": "string"
}
}
}
}Create an API key (gwk_...) for one of your customers or agents. Returned once.
| Argument | Type | Description |
|---|---|---|
| label* | string | |
| gateway* | string | Gateway slug |
| monthly_quota | integer | |
| rate_per_minute | integer | |
| stripe_customer_id | string |
{
"type": "object",
"required": [
"gateway",
"label"
],
"properties": {
"label": {
"type": "string"
},
"gateway": {
"type": "string",
"description": "Gateway slug"
},
"monthly_quota": {
"type": "integer"
},
"rate_per_minute": {
"type": "integer",
"default": 60
},
"stripe_customer_id": {
"type": "string"
}
}
}List your gateways.
No arguments.
{
"type": "object",
"properties": {}
}Counted units of a UTC month split into accepted by Stripe, pending, failed, cancelled, local only and historically undeterminable. Read-only; acceptance is not an invoice or payment.
| Argument | Type | Description |
|---|---|---|
| month | string | YYYY-MM (UTC), default current month |
| gateway* | string |
{
"type": "object",
"required": [
"gateway"
],
"properties": {
"month": {
"type": "string",
"description": "YYYY-MM (UTC), default current month"
},
"gateway": {
"type": "string"
}
}
}Revoke a customer key.
| Argument | Type | Description |
|---|---|---|
| key_id* | integer | |
| gateway* | string |
{
"type": "object",
"required": [
"gateway",
"key_id"
],
"properties": {
"key_id": {
"type": "integer"
},
"gateway": {
"type": "string"
}
}
}Create a free provider account (business customers only). Returns an account API key (gwa_...) once.
| Argument | Type | Description |
|---|---|---|
| email* | string | |
| vat_id | string | |
| company* | string | |
| country* | string | ISO 3166-1 alpha-2 |
| accept_terms* | boolean | Must be true: accept the terms of service |
{
"type": "object",
"required": [
"company",
"email",
"country",
"accept_terms"
],
"properties": {
"email": {
"type": "string",
"format": "email"
},
"vat_id": {
"type": "string"
},
"company": {
"type": "string"
},
"country": {
"type": "string",
"description": "ISO 3166-1 alpha-2"
},
"accept_terms": {
"type": "boolean",
"description": "Must be true: accept the terms of service"
}
}
}Change stripe_customer_id, monthly_quota or rate_per_minute of an existing key; the key itself stays the same. Applies to requests received afterwards; recorded usage keeps its original customer. Omitted fields keep their value, null clears stripe_customer_id or monthly_quota.
| Argument | Type | Description |
|---|---|---|
| key_id* | integer | |
| gateway* | string | |
| monthly_quota | integer | null | |
| rate_per_minute | integer | |
| stripe_customer_id | string | null |
{
"type": "object",
"required": [
"gateway",
"key_id"
],
"properties": {
"key_id": {
"type": "integer"
},
"gateway": {
"type": "string"
},
"monthly_quota": {
"type": [
"integer",
"null"
]
},
"rate_per_minute": {
"type": "integer"
},
"stripe_customer_id": {
"type": [
"string",
"null"
]
}
}
}Counted usage of a gateway, grouped by key, tool or day (UTC).
| Argument | Type | Description |
|---|---|---|
| to | string | YYYY-MM-DD |
| from | string | YYYY-MM-DD |
| group | string | |
| gateway* | string |
{
"type": "object",
"required": [
"gateway"
],
"properties": {
"to": {
"type": "string",
"description": "YYYY-MM-DD"
},
"from": {
"type": "string",
"description": "YYYY-MM-DD"
},
"group": {
"enum": [
"key",
"tool",
"day"
],
"type": "string"
},
"gateway": {
"type": "string"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 3, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.