Skip to main content
Glama
Official Porkbun MCP Server

Official Porkbun MCP Server

Create Hosting

create_hosting
Destructive

Provisions hosting for a domain—static, WordPress, or paid Link in Bio—using a chosen SKU, with cost acknowledgement and optional nameserver switching.

Instructions

Provision hosting for a domain in the account — Secure Static Hosting, Cloud for WordPress (a managed WordPress site), or a paid Link in Bio page, chosen by sku. The domain's FIRST provision starts a 15-day FREE trial that auto-renews at the plan price ($3/mo or $30/yr) when it ends; a re-provision after deprovision is charged to account credit (one free trial per domain). Provisioning switches the domain to Porkbun nameservers if it isn't already — set agree_to_nameserver_change: true to allow that. You MUST echo the plan's price in acknowledged_cost_cents (from list_hosting_plans) so the human is told about the auto-renew/charge. Use dry_run to preview. The call itself can take 30 seconds or more while the site is set up; wait for it rather than retrying. Provisioning can also be async: status may be PENDING — poll get_hosting until ACTIVE before deploying. For a WordPress plan, the file tools (deploy_site/list_hosting_files/…) do NOT apply — manage the site through WordPress instead, using create_wp_credentials to get REST API credentials.

A paid re-provision is a purchase like any other: How a purchase is paid. From prepaid account credit by default; a card saved at Porkbun is never charged by a purchase itself. Or directly, for this one purchase: pay_with_card: true (the user's card from their Stripe Link agent wallet, held and charged only if the purchase succeeds) or pay_with_usdc: true (USDC on Base over x402). If the credit is short, the call fails with INSUFFICIENT_FUNDS carrying cost, balance, shortfall, topUpAvailable and usdcAmountToCover (dry_run: true reports the same without charging). Ways forward, simplest first, always telling the user the dollar amount and getting their OK: (1) if they use Stripe Link, retry this exact call with pay_with_card: true; (2) if you can pay x402 (a wallet tool, or this server has PORKBUN_X402_PRIVATE_KEY), retry with pay_with_usdc: true; (3) when topUpAvailable is true a card is saved: top_up_account_credit (amount_cents at least topUpAmountToCover, or omit it for their configured amount), then retry; (4) add credit with top_up_with_card_mpp (Link) or top_up_with_usdc (for usdcAmountToCover, which allows for Coinbase's ~1% fee), then retry; (5) the user adds credit at https://porkbun.com/account/credit. If a purchase fails with VERIFICATION_REQUIRED, the phone (send_phone_verification_code then confirm_phone_verification) and the email (send_email_verification_code then confirm_email_verification) can both be verified without leaving the conversation, the user reading out each code. Suggest configure_auto_topup if they want credit refilled automatically. Money parameters are integer cents: state amounts to the user in dollars (cost_cents: 1108 is $11.08). If you do not move money on a user's behalf, hand it back instead: tell them the shortfall and that they can add it with buy account credit at https://porkbun.com/account/credit, then retry once they have.

Buying for a new or unfunded account: the whole path, including what only the human can do, is at https://porkbun.com/llms/guides/buy-a-domain-from-an-agent. Paying directly in USDC (no account credit needed): set pay_with_usdc: true. If this server has a wallet configured (PORKBUN_X402_PRIVATE_KEY, local installs only), the payment is signed and the purchase completes in this one call. Otherwise the result is status: PAYMENT_REQUIRED with a checkoutId, an x402Url and a payUrl, and nothing is charged: pay the x402Url with a wallet tool that pays x402 URLs (for example Coinbase's awal x402 pay <x402Url> --scheme auth-capture), or have the user pay the payUrl page, then call this tool again with the same arguments plus usdc_checkout_id. Tell the user the dollar amount first. If the purchase fails after payment, the payment is NOT returned to the wallet: it stays on the Porkbun account as credit (the error says keptAsCredit: true with the new balance), so retry without pay_with_usdc to buy from that credit.

Paying directly by card, with a hold (no account credit needed): set pay_with_card: true when the user pays with Stripe Link. The result is status: PAYMENT_REQUIRED with a payUrl and a cardPaymentId; nothing is charged. Pay the payUrl with an MPP wallet tool. With Link's CLI that is two commands: link-cli mpp pay <payUrl> -X POST --context "..." (context at least 100 characters) creates a spend request the user approves in Link; once approved, complete it with link-cli mpp pay <payUrl> --spend-request-id <lsrq_id> -X POST. That only authorizes the card. If link-cli answers NOT_AUTHENTICATED, run link-cli auth login first (a one-time device login the user approves). Then call this tool again with the same arguments plus card_payment_id: if the purchase succeeds the card is charged, and if it fails the hold is released and nothing is charged. The link works until expiresAt; if that passes before it is paid, call this tool again without card_payment_id for a fresh link instead of paying the old one.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "sku": "<sku>",
      "agree_to_terms": "<agree_to_terms>"
    },
    "name": "create_hosting"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuYesThe hosting plan SKU to provision. Discover the provisionable SKUs (and each one's price/interval/trial) via list_hosting_plans, then pass the row's `sku`. Secure Static Hosting: `PIXIESECURESTATICM2` ($3.00/mo) / `PIXIESECURESTATICY2` ($30.00/yr). Cloud for WordPress: `CLOUDWORDPRESSM1` ($12.00/mo) / `CLOUDWORDPRESSY1` ($120.00/yr) and the Pro/Business tiers. Link in Bio: `PIXIELINKSM1` ($3.00/mo) / `PIXIELINKSY1` ($30.00/yr); over a free Link in Bio page this upgrades it and keeps its content, then edit it with the *_link_in_bio tools.
domainYesDomain to provision hosting for, e.g. `example.com`.
dry_runNoValidate + preview without provisioning or charging.
pay_with_cardNoPay for this purchase by card from the user's Stripe Link agent wallet (MPP), with a hold: charged only if the purchase succeeds. Tell the user the amount first.
pay_with_usdcNoPay for this purchase directly in USDC on Base (x402) instead of from account credit. Tell the user the amount first.
agree_to_termsYesMust be "yes".
card_payment_idNoThe cardPaymentId from an earlier PAYMENT_REQUIRED (pay_with_card), once its payUrl has been paid. Send it with the same arguments as that call.
usdc_checkout_idNoThe checkoutId from an earlier PAYMENT_REQUIRED result, once its x402Url or payUrl has been paid. Send it with the same arguments as that call.
acknowledged_costNoDeprecated alias of `acknowledged_cost_cents`, same unit (integer US cents). Send `acknowledged_cost_cents` instead.
acknowledged_cost_centsNoThe chosen plan's price — take the `price` field of the SAME row you took `sku` from in list_hosting_plans (e.g. 300 static or Link in Bio monthly, 3000 static or Link in Bio yearly, 1200 WordPress Starter monthly, 12000 WordPress Starter yearly). Must match exactly or the call is rejected — this confirms the human was told the cost. Required. Integer US cents: 803 means $8.03, not $803.
agree_to_nameserver_changeNoSet true to allow switching the domain to Porkbun nameservers (required when it isn't already on them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.62.0
    • changedInput schema / properties / acknowledged_cost_cents / description
      Previous value: -"The chosen plan's price — take the `price` field of the SAME row you took `sku` from in list_hosting_plans (e.g. 300 static monthly, 3000 static yearly, 1200 WordPress Starter monthly, 12000 WordPress Starter yearly). Must match exactly or the call is rejected — this confirms the human was told the cost. Required. Integer US cents: 803 means $8.03, not $803."New value: +"The chosen plan's price — take the `price` field of the SAME row you took `sku` from in list_hosting_plans (e.g. 300 static or Link in Bio monthly, 3000 static or Link in Bio yearly, 1200 WordPress Starter monthly, 12000 WordPress Starter yearly). Must match exactly or the call is rejected — this confirms the human was told the cost. Required. Integer US cents: 803 means $8.03, not $803."
  2. Changed1 schema field changedv0.57.0
    • changedInput schema / properties / sku / description
      Previous value: -"The hosting plan SKU to provision. Discover the provisionable SKUs (and each one's price/interval/trial) via list_hosting_plans, then pass the row's `sku`. Secure Static Hosting: `PIXIESECURESTATICM2` ($3.00/mo) / `PIXIESECURESTATICY2` ($30.00/yr). Cloud for WordPress: `CLOUDWORDPRESSM1` ($12.00/mo) / `CLOUDWORDPRESSY1` ($120.00/yr) and the Pro/Business tiers."New value: +"The hosting plan SKU to provision. Discover the provisionable SKUs (and each one's price/interval/trial) via list_hosting_plans, then pass the row's `sku`. Secure Static Hosting: `PIXIESECURESTATICM2` ($3.00/mo) / `PIXIESECURESTATICY2` ($30.00/yr). Cloud for WordPress: `CLOUDWORDPRESSM1` ($12.00/mo) / `CLOUDWORDPRESSY1` ($120.00/yr) and the Pro/Business tiers. Link in Bio: `PIXIELINKSM1` ($3.00/mo) / `PIXIELINKSY1` ($30.00/yr); over a free Link in Bio page this upgrades it and keeps its content, then edit it with the *_link_in_bio tools."
  3. Changed4 schema fields changedv0.51.1
    • addedInput schema / properties / card_payment_id
      Added value: +{
      +  "description": "The cardPaymentId from an earlier PAYMENT_REQUIRED (pay_with_card), once its payUrl has been paid. Send it with the same arguments as that call.",
      +  "type": "string"
      +}
    • addedInput schema / properties / pay_with_card
      Added value: +{
      +  "description": "Pay for this purchase by card from the user's Stripe Link agent wallet (MPP), with a hold: charged only if the purchase succeeds. Tell the user the amount first.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / pay_with_usdc
      Added value: +{
      +  "description": "Pay for this purchase directly in USDC on Base (x402) instead of from account credit. Tell the user the amount first.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / usdc_checkout_id
      Added value: +{
      +  "description": "The checkoutId from an earlier PAYMENT_REQUIRED result, once its x402Url or payUrl has been paid. Send it with the same arguments as that call.",
      +  "type": "string"
      +}
  4. Addedv0.39.4

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare a destructive, non-idempotent write, and the description adds substantial context beyond them: a 15-day free trial that auto-renews, one-trial-per-domain, nameserver switching as a side effect, 30s+ latency with a warning not to retry, possible PENDING/async status, and specific failure modes (INSUFFICIENT_FUNDS, PAYMENT_REQUIRED, VERIFICATION_REQUIRED). This is exactly the side-effect and cost disclosure a destructive purchase tool needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and hosting-specific behavior are front-loaded, which is good, but the bulk of the text is a multi-paragraph purchase/payment runbook (five numbered fallback paths, link-cli command syntax, NOT_AUTHENTICATED recovery, Coinbase fee notes) that largely restates the schema's own pay_with_card/pay_with_usdc descriptions. That volume crowds out the provisioning details an agent actually needs and makes the definition expensive to read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter, destructive, network-touching purchase tool with no output schema, the description covers the full lifecycle: validation via dry_run, consent flags, cost acknowledgement, candidate failure codes, async completion polling, and post-provision management paths. Nothing an agent needs in order to call it correctly or recover from an error appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds rationale the schema lacks — that `acknowledged_cost_cents` must echo the price from the same `list_hosting_plans` row so the human is told about auto-renew, and that `agree_to_nameserver_change: true` is required only when the domain isn't already on Porkbun nameservers. It also explains the `card_payment_id`/`usdc_checkout_id` resubmission pattern in workflow terms rather than just field types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Provision hosting for a domain in the account") and enumerates the three plan families selected by `sku` (Secure Static, Cloud for WordPress, paid Link in Bio). It also differentiates from siblings by naming `list_hosting_plans` for SKU discovery, `get_hosting` for polling, and explicitly excluding the file tools for WordPress plans.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use context and alternatives: use `dry_run` to preview, discover SKUs via `list_hosting_plans`, poll `get_hosting` until ACTIVE, and use `create_wp_credentials` instead of the file tools for WordPress. Prerequisites (nameserver consent, acknowledged cost) are stated as gating conditions rather than left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools