MCP server for the Askell payment and subscription API (Bun + stdio)
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
MCP server for the Askell payment and subscription API.
Connect it to Cursor, Claude Desktop, or any MCP client to discover Askell endpoints, inspect customers/contracts/billing, and call the API. Reads and writes are separate tools so clients can show their own approval UI on mutations.
In the Askell dashboard, copy your private (secret) API key. Optionally also the public key (only needed for temporary payment-method / checkout status endpoints).
Prefer two server entries if you have both production and sandbox keys. Tool names are the same on both; the client distinguishes them by the server key (askell-prod vs askell-sandbox). Each instance's instructions include the environment it is talking to.
Put keys in gitignored dotenv files, not in JSON. Copy .env.example:
.env β production (ASKELL_ENV=production and that dashboard's keys).env.sandbox β sandbox (ASKELL_ENV=sandbox and that dashboard's keys)Bun does not auto-load .env.sandbox. --no-env-file stops the sandbox process from also reading a production .env that happens to sit in the cwd.
Project file: .cursor/mcp.json. mcp.json.example is this shape. ${workspaceFolder} is the directory that contains that mcp.json (the repo root when the file is .cursor/mcp.json). In ~/.cursor/mcp.json, use an absolute envFile path.
With Bun:
With a binary (download askell-mcp-<os>-<arch> from Releases, then chmod +x). Same envFile; the binary reads the environment Cursor injects:
Reload the window after saving.
Config file:
~/.config/Claude/claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonNo envFile field. The desktop process cwd is not your repo, so a relative .env path does not resolve. With Bun, pass an absolute --env-file:
A binary has no --env-file. Put the keys in env (plaintext in that JSON file):
Quit Claude Desktop completely and reopen it. Saving the file is not enough.
Project .mcp.json expands ${VAR} from the environment of the process that launched claude. It does not load a dotenv file. The Bun --env-file args from the Desktop section work here as well; a relative path is fine when you start claude from the repo. ${ASKELL_PRIVATE_API_KEY} inside env only works when that variable is already exported in that environment. A .env file alone is not read.
| Variable | Required | Default | Description |
|---|---|---|---|
ASKELL_PRIVATE_API_KEY | yes* | β | Secret API key (or ASKELL_SECRET_API_KEY) |
ASKELL_PUBLIC_API_KEY | no | β | Public key for a few checkout/payment endpoints |
ASKELL_ENV | no | production | production | sandbox β selects the official API host |
ASKELL_API_BASE_URL | no | β | Custom/local API base only. Do not set together with ASKELL_ENV unless it matches |
ASKELL_RESPONSE_MAX_BYTES | no | 64000 | Max response size returned to the model |
ASKELL_MUTATION_GATE | no | auto | auto / elicit / off β see below |
ASKELL_REQUIRE_MUTATION_APPROVAL | no | β | Deprecated alias: trueβelicit, falseβoff |
ASKELL_ENV picks a stable host (same v1/v2 surface):
https://askell.is/apihttps://sandbox.askell.is/api (isolated tenant; keys from that dashboard)Point a second MCP server entry at sandbox (ASKELL_ENV=sandbox) rather than switching env on one process. Keys do not work across hosts. Γskell Test Gateway is a payment acquirer (fake cards) on either host β not the same as the sandbox API. Official prose at docs.askell.is still documents Test Gateway and may omit the sandbox host.
ASKELL_MUTATION_GATE:
auto (default) β confirmation form only if this request's _meta envelope declared form elicitation (MCP 2026-07-28). 2025-era clients (Cursor, most hosts) do not send that envelope, so the mutation runs and their own βallow this toolβ UI is the gate.elicit β always return an elicitation form. The SDK refuses the call if the client cannot fulfil it (2026 envelope / 2025 initialize via the legacy shim).off β never ask (eval / trusted automation).If both ASKELL_MUTATION_GATE and ASKELL_REQUIRE_MUTATION_APPROVAL are set, ASKELL_MUTATION_GATE wins.
Typical agent workflow:
askell_list_operations / askell_describe_operation (from bundled OpenAPI v1 + v2)askell_call for GET/HEAD, askell_mutate for POST/PUT/PATCH/DELETE| Tool | Description |
|---|---|
askell_list_operations | Search bundled OpenAPI operations |
askell_describe_operation | Params and body schema for one operation |
askell_call | GET/HEAD any v1/v2 endpoint |
askell_mutate | POST/PUT/PATCH/DELETE any v1/v2 endpoint |
askell_paginate_all | Follow paginated list endpoints |
askell_customer_overview | v1 customer + subscriptions |
askell_contract_overview | v2 subscription contract + billing runs |
askell_billing_run_triage | v2 billing run (+ optional contract) |
askell_list_webhooks | List configured webhooks (hmac_secret redacted) |
| URI | Content |
|---|---|
askell://spec/v1 | OpenAPI v1 |
askell://spec/v2 | OpenAPI v2 |
askell://docs/webhook-events | Webhook event reference |
/customers/, /subscriptions/ (no /v2 prefix)/v2//v2/coupons/ + /v2/promotion-codes/ (coupon = definition, promotion code = what the customer types). Contract: GET/POST /v2/subscription-contracts/{id}/discount|apply-code|remove-discount (one active). Quotes take promotion_code and, for an existing buyer, customer (id) so combo discounts + promo restrictions apply. First-period totals already include coupon + combo; quote.recurring_* include combo but not the coupon (discount.recurring_final_amount while the coupon is active). Recurring finalize needs a verified payment method even when due-now is 0. Not the v1 discount 0β100 field.GET /v2/fulfillment-orders/ for backfill; POST .../{id}/fulfill/ (optional tracking body) and POST .../{id}/cancel/ mark shipped/cancelled. Same body as fulfillment_order.* webhooks.See CONTRIBUTING.md for local development, tests, and releases.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/askell)<a href="https://allmcps.com/mcp/askell"><img src="https://allmcps.com/api/badge/askell?style=directory" alt="Askell on AllMCPs" /></a>