Porkbun MCP Server (official)

MCP serverCloud & infra

Official Porkbun MCP server: domains, DNS, SSL, hosting and Cloudflare via the Porkbun API.

Available today. Use it from your connected AI after setup.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use Porkbun MCP Server (official)

Install Porkbun MCP Server (official)

The server’s own address, for the clients that take one directly. Or connect ahel onceand every client you use reads it from one address, with the account kept on ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http --scope user porkbun-mcp-server-official 'https://mcp.porkbun.com/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://mcp.porkbun.com/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=porkbun-mcp-server-official&config=eyJ1cmwiOiJodHRwczovL21jcC5wb3JrYnVuLmNvbS9tY3AifQ==

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://mcp.porkbun.com/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add porkbun-mcp-server-official --url 'https://mcp.porkbun.com/mcp'

    Run it once, then sign in with codex mcp login porkbun-mcp-server-official if the server asks for an account.

From the project's README

As published by oborseth/porkbun-mcp in README.md.

The official MCP server from Porkbun, built and maintained by Porkbun (by Owen Borseth, Porkbun's CTO). It is published on npm as @porkbunllc/mcp-server and hosted by Porkbun at https://mcp.porkbun.com/mcp. Other "Porkbun MCP" projects on GitHub and in MCP directories are community wrappers around the public API; they are not made or supported by Porkbun. In the official MCP Registry it is listed as com.porkbun/mcp, a name the registry grants only to whoever proves control of porkbun.com; community projects appear under io.github.* names.

A Model Context Protocol server that exposes the Porkbun v3 API as native tools for AI agents — Claude Desktop, Cursor, Cline, and any other MCP-compatible client.

Setup guide, client configs and the full tool list: porkbun.com/mcp

No install: use the hosted connector. Porkbun runs this server at https://mcp.porkbun.com/mcp. Add that URL as a custom connector in ChatGPT or Claude (or claude mcp add --transport http porkbun https://mcp.porkbun.com/mcp in Claude Code), sign in to Porkbun and approve. No API key to copy. Steps per client: Connect ChatGPT or Claude. How it is deployed: deploy/README.md. The ChatGPT and Claude directory listings use a narrower variant, /mcp/no-purchases (no tool that spends money or returns a secret); it changes which tools are offered, not what a connection may do.

Status: full Porkbun v3 coverage (domains, DNS, SSL, hosting, webhooks; current version on the npm badge above). Also runs hosted at https://mcp.porkbun.com/mcp for ChatGPT and Claude, with sign-in instead of API keys. Provisions Cloud for WordPress and mints WordPress REST API credentials so an agent can manage the site it just created. Moves domains to a customer's own Cloudflare account and then manages those records, the proxy and zone settings. An isolated sandbox: a pk1_sb_ key runs every tool against a simulated environment with fake credit — no real registry actions, DNS changes or charges — and still delivers signed webhooks. A credential-free mock server returns schema-accurate example responses for any endpoint.

What's included

Read tools (free, no spend, no state changes)

ToolDescription
pingVerify API connectivity and credentials
check_domainCheck availability and pricing for a single domain
get_registration_requirementsTLD registration requirements as JSON Schema — is it API-registerable, the create payload, and registry eligibility fields (.us nexus, .ca legal type, …)
get_pricingGet registration/renewal/transfer pricing for all TLDs (no auth needed)
list_marketplaceBrowse the Porkbun aftermarket — filter by TLD, max price, name substring
search_closeoutsSearch expired-domain closeouts; filter by age, price, TLD, name length; sort by registration date
get_closeoutOne closeout plus its binding total (closeout price + the renewal/transfer year)
buy_closeoutBuy a closeout outright. Spends account credit
list_domainsPaginate through domains; filter by tld, expiry, auto-renew, API access
get_domainGet metadata for a single domain in the account
get_balanceGet account credit balance
get_auto_topupRead auto top-up settings, whether a card is on file, and what a top-up would charge
get_api_settingsGet monthly spend limit, low-balance alert, auto top-up config, MTD spend
get_nameserversGet current nameservers for a domain
list_dns_recordsList DNS records for a domain
scan_dns_recordsDiscover what a domain publishes now, from its live nameservers (use before a transfer — a transfer carries no zone data)
import_dns_recordsBulk-create records from a supplied list or a live scan; idempotent, already-present records are skipped
list_dnssec_recordsList DNSSEC DS records published at the registry
list_url_forwardsList URL forwarding rules for a domain (incl. exact redirectType: 301/302/307/masked)
list_glue_recordsList glue records (host-to-IP mappings) for a domain
list_transfersList in-progress and recent inbound transfers
get_transfer_statusGet status of a specific inbound transfer
get_ssl_bundleRetrieve the free Porkbun-issued SSL bundle for a domain
get_contactsGet a domain's four contacts (registrant/admin/tech/billing) with current values
get_webhook_event_typesList the event types a webhook endpoint can subscribe to
list_webhooksList webhook endpoints (URL, events, status, delivery health, secret)
get_webhookGet a single webhook endpoint by id
list_webhook_deliveriesList recent delivery attempts (status, attempts, HTTP, error); ~30-day history
get_webhook_deliveryGet a single delivery incl. the full signed payload
list_doc_topicsList Porkbun API doc topics (the docs index)
read_docRead a doc page as Markdown (dns, webhooks, … or overview/full)
search_docsKeyword-search the full reference; returns the most relevant sections

The list_doc_topics / read_doc / search_docs tools let an agent ground itself in Porkbun's own documentation (the /llms Markdown surface) mid-conversation — no web browsing required, and no API credentials needed. You can add the server purely to research the API, then supply keys when you're ready for live operations.

Account funding (charges a saved card, not credit)

ToolWhat it does
configure_auto_topupTurn auto top-up on/off: below threshold_cents, add amount_cents from the saved payment method. Amounts set via the API are capped at $500
top_up_account_creditCharges the saved card now and adds the credit. Omit amount_cents for the account's configured amount (or $50 if never set), or pass amount_cents (500-50000) for a one-off figure. Ask the user first, in dollars. 5/day, 20/month, within the monthly spend limit

Domain lifecycle writes (spend account credit)

ToolDescription
register_domainRegister a new domain — call check_domain first to confirm price
renew_domainRenew an existing domain
transfer_domainInitiate an inbound transfer (returns transferId; takes 5-7 days)
get_transfer_setupWhere a held inbound transfer is and what it is waiting on
prepare_transferCreate the DNS zone for a held transfer, before the domain moves
start_transferRelease a held transfer to the registry (refuses on an empty zone)
cancel_transferCancel a pending inbound transfer and refund it
update_transfer_auth_codeReplace the auth code on a stalled transfer and re-queue it

Domain settings writes (free)

ToolDescription
update_auto_renewTurn auto-renewal on or off
update_nameserversReplace the nameserver list for a domain (full replace, not append)
update_contactsEdit domain contacts — any subset of registrant/admin/tech/billing; a registrant change fires the new-owner notice email. On address-validated TLDs (.de/.nrw/.uk/.us/.ca/.au/.eu/.in/.nz families) it validates the registrant address — resolve with address_validation_choice. A .au registrant name/org change is a website-only ownership trade.

DNS / DNSSEC / URL-forwarding / glue writes (free)

ToolDescription
create_dns_recordCreate a new DNS record (A, AAAA, CNAME, MX, TXT, etc.)
update_dns_recordUpdate an existing DNS record by its ID
delete_dns_recordDelete a DNS record by its ID
create_dnssec_recordSubmit a DNSSEC DS record to the registry
delete_dnssec_recordRemove a DNSSEC DS record by key tag
create_url_forwardCreate a URL forwarding rule (permanent/temporary/masked; optional redirect_type 301/302/307/masked)
delete_url_forwardDelete a URL forwarding rule by ID
create_glue_recordCreate a glue record (host-to-IP mapping at the registry)
update_glue_recordReplace the IP list for a glue record
delete_glue_recordDelete a glue record by host

Secure Static Hosting

ToolDescription
list_hosting_plansList API-provisionable hosting products + plans, with price (cents), interval, trial length, features
create_hostingProvision hosting for a domain by sku (from list_hosting_plans) — first provision per domain is a 15-day free trial that auto-renews at the plan price; re-provision after deprovision is charged to account credit (one free trial per domain). Switches the domain to Porkbun NS (gated by agree_to_nameserver_change); requires acknowledged_cost. dry_run supported
get_hostingGet hosting status for a domain (plan, trial, expiry, auto-renew)
deploy_siteUpload static files (base64, ≤10MB/call) to a domain's hosting
list_hosting_filesList files under a path in a domain's hosting
delete_hosting_fileDelete a file (or empty dir) from a domain's hosting
make_hosting_dirCreate a directory (and missing parents) in a domain's hosting (deploy auto-creates dirs in a file path)
delete_hostingDeprovision (cancel) hosting for a domain

Cloud for WordPress

create_hosting with a CLOUDWORDPRESS… sku provisions a managed WordPress site instead of static hosting (the file tools don't apply — manage it through WordPress).

ToolDescription
create_wp_credentialsMint a WordPress Application Password (returned once) so an agent can drive the site via /wp-json/ with HTTP Basic. Defaults to a dedicated least-privilege editor user; administrator requires an explicit acknowledgement (it can install plugins = run code)
list_wp_credentialsList application passwords on the site (metadata only — passwords can't be re-read)
delete_wp_credentialsRevoke an application password by uuid, or all of them

Cloudflare connect (move domains to the customer's own Cloudflare account)

Connecting the Cloudflare account itself is a human step — Cloudflare's consent screen has to be completed in a browser — so get_cloudflare_connection hands you a URL to show your user, then acts as the poll target. Everything after that is automated.

  • get_cloudflare_connection — connected or not, and where to send the human if not (poll this)
  • list_cloudflare_inventory — every domain with its eligibility and a plain-English reason
  • preview_cloudflare_move — exactly which records a move would copy or drop, queueing nothing
  • connect_domains_to_cloudflare — queue one or many (async: returns queued, never connected)
  • get_cloudflare_queue / get_cloudflare_domain_status — progress, and the audit trail
  • retry_cloudflare_domain / rollback_cloudflare_domain — re-queue a failure, or restore Porkbun nameservers
  • get_cloudflare_records / create_cloudflare_record / edit_cloudflare_record / delete_cloudflare_record — manage DNS in the zone that actually answers once a domain has moved
  • set_cloudflare_proxy — turn the orange cloud on or off, per record (a move always imports DNS-only, on purpose)
  • get_cloudflare_zone — Cloudflare's own zone state, plus nameserver-drift detection
  • get_cloudflare_zone_settings / set_cloudflare_zone_settings — SSL mode and friends
  • disconnect_cloudflare — forget the grant (domains already moved keep working)

Sandbox / test mode

Use a sandbox API key (public key prefixed pk1_sb_, secret sk1_sb_) and every tool above runs against an isolated test environment — same server, you just swap the key. Registrations, renewals, transfers, DNS, contacts, glue, and DNSSEC are all simulated against a separate sandbox datastore: no real registry actions, no DNS changes, no certificates, and no charges. Your sandbox account starts with fake account credit, availability/pricing reflect the real catalog, and every response includes "sandbox": true. Create a sandbox key on porkbun.com/account/api. Or mint one instantly with create_sandbox_key — no signup, no credentials. (Hosting and email endpoints aren't simulated and return SANDBOX_UNSUPPORTED with a sandbox key.)

ToolDescription
create_sandbox_keyNo credentials needed — instantly mint a throwaway sandbox key pair (pk1_sb_/sk1_sb_, $1000 fake credit) so an agent can start testing before it has any keys
sandbox_topupSandbox only — grant fake account credit (default $1000) so paid ops can keep being exercised after funds run out
sandbox_resetSandbox only — wipe the sandbox account's domains/DNS/orders/credit and re-grant $1000, for a clean slate between test runs
sandbox_trigger_webhookSandbox only — fire a sample signed webhook event of any type (incl. cron-driven domain.expiring) to your registered endpoints, to test your handler + signature verification on demand

Mock server (no credentials)

mock_call returns a schema-accurate example response for any endpoint with no key required — nothing to set up. Pass a path like domain/listAll or dns/create/example.com (omit it to list every mockable endpoint), or set error: true for the error shape. Responses touch no datastore and match the live API's shape exactly, so you can build and test client code before you have any credentials.

ToolDescription
mock_callNo credentials needed — schema-accurate example response for any endpoint (path mirrors the real route; error: true for the error shape; omit path to list all mockable endpoints)

Webhook writes (free)

ToolDescription
create_webhookRegister an HTTPS endpoint to receive signed event payloads; returns the signing secret
update_webhookChange an endpoint's URL, events, or status (ACTIVE/DISABLED)
rotate_webhook_secretGenerate a new signing secret for an endpoint
test_webhookSend a webhook.test event to confirm reachability and signature verification
resend_webhookRe-queue a past delivery (reuses the original event id)
delete_webhookDelete a webhook endpoint

Porkbun POSTs a signed JSON payload to your endpoint when subscribed events occur (domain.registered, domain.renewed, domain.transfer.completed, domain.expiring, dns.record.created|updated|deleted). Verify the X-Porkbun-Signature header — it's sha256= + HMAC-SHA256 of {timestamp}.{rawBody} keyed by the endpoint secret, where {timestamp} is the X-Porkbun-Webhook-Timestamp header.

Claude plugin

plugin/ is a Claude plugin (claude.ai, Cowork and Claude Code): the hosted connector at https://mcp.porkbun.com/mcp/no-purchases plus two skills, publish-website (publish a site Claude builds to Porkbun Secure Static Hosting instead of giving upload steps) and change-dns-safely. It holds no code. To try it in Claude Code: claude --plugin-dir ./plugin. Raise version in plugin/.claude-plugin/plugin.json with every change to the folder.

Install

You'll need Node.js 18 or newer.

npx -y @porkbunllc/mcp-server

This downloads and runs the latest version on demand. No global install needed.

Configure your MCP client

Claude Desktop

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "porkbun": {
      "command": "npx",
      "args": ["-y", "@porkbunllc/mcp-server"],
      "env": {
        "PORKBUN_API_KEY": "pk1_your_public_key_here",
        "PORKBUN_SECRET_API_KEY": "sk1_your_secret_key_here"
      }
    }
  }
}

Restart Claude Desktop. Porkbun tools should appear in the tool picker.

Docs-only, no keys: the documentation tools (search_docs, read_doc, list_doc_topics) work without credentials, so you can omit the env block entirely to use the server just for API research. The authenticated tools return a clear "set PORKBUN_API_KEY" message until you add keys.

Cursor / Cline / Continue

Most MCP-aware editors use a similar mcpServers config block. See your client's documentation for the exact location.

Get API keys

Create API keys at porkbun.com/account/api. You'll need both the public key (pk1_…) and the secret key (sk1_…).

By default, API access is opt-in per domain. To use the API to manage all your domains, enable the "Opt In All Domains" toggle in the same settings page. Otherwise you'll need to enable API access for each domain individually under Domain Management.

Recommended: scope the key to your agent

Each API key supports two optional restrictions, set via the gear icon next to the key in porkbun.com/account/api:

  • Allowed IPs — one entry per line; supports bare IPv4/IPv6 plus CIDR ranges (198.51.100.0/24, 2001:db8::/32). Requests from other IPs fail with HTTP 403 IP_NOT_ALLOWED before any other check runs.
  • Allowed domains — one entry per line, exact match. Operations against domains not in the list fail with HTTP 403 DOMAIN_NOT_ALLOWED.

Empty fields = no restriction (matches current behavior). When you give an MCP server a key, the recommended pattern is:

  1. Create a fresh key dedicated to the agent (not your master key).
  2. List the specific domains the agent should manage.
  3. If you know the agent's egress IP, list it too.

The blast radius of an accidentally-leaked key drops to "operations on these domains from this IP" instead of "anything on the account."

Environment variables

VariableRequiredPurpose
PORKBUN_API_KEYfor live opsYour Porkbun public API key. Omit to use only the credential-free documentation tools.
PORKBUN_SECRET_API_KEYfor live opsYour Porkbun secret API key. Omit to use only the credential-free documentation tools.
PORKBUN_BASE_URLnoOverride the API base URL (e.g. for testing against api-betamax.porkbun.com/api/json/v3)
PORKBUN_DOCS_BASEnoOverride the docs host used by the *_doc(s) tools (default https://porkbun.com)

Local development

git clone https://github.com/oborseth/Porkbun-MCP.git
cd Porkbun-MCP
npm install
npm run build
npm start          # or: node dist/index.js

The server speaks JSON-RPC 2.0 over stdio. Smoke test from a shell:

(printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}') \
  | PORKBUN_API_KEY=pk1_… PORKBUN_SECRET_API_KEY=sk1_… node dist/index.js

Money parameters are in cents, and say so

Every money parameter ends in _cents and takes integer US cents: cost_cents: 1108 is $11.08, amount_cents: 803 is $8.03. The unit is in the name because some clients build their approval prompt from the raw arguments, and a bare amount: 803 was shown to a user as "$803". The old names (cost, amount, threshold, acknowledged_cost, price_min, price_max) are still accepted in the same unit; sending both names with different values is refused before anything reaches the API.

Reliability

Write operations automatically attach a per-call Idempotency-Key header. Retried calls within 24 hours return the cached response, so your agent can safely retry on network errors without double-charging or double-registering.

Privacy

This MCP server is a thin client that runs locally (on your machine, or wherever you host it) and relays your requests directly to the Porkbun API over HTTPS. It does not add any data collection of its own:

  • What it sends, and to whom. Your API key/secret and the arguments of each tool call are sent only to https://api.porkbun.com (and, for the credential-free documentation and mock tools, to https://porkbun.com). Nothing is sent anywhere else.
  • Storage. The server keeps your credentials in memory for the lifetime of the process (read from environment variables); it does not write them to disk, log them, or cache your data.
  • Hosted connector. At mcp.porkbun.com the same code runs on Porkbun's infrastructure. It holds no API keys: each request carries the user's OAuth access token, which is forwarded to the Porkbun API and kept in memory only briefly (a 30-second validity cache). Request logs record method, path, status and timing, never tokens or request bodies.
  • No telemetry. There is no analytics, tracking, or third-party sharing performed by this connector.
  • Data you access through it (domains, DNS, contacts, billing, etc.) is your Porkbun account data, handled by Porkbun under its policy.

Full data-handling, retention, third-party, and contact details are in Porkbun's privacy policy: https://porkbun.com/legal/agreement/privacy_policy

License

MIT

Links

Signals

GitHub stars
32
Forks
2
Last commit
Sep 2026
Advanced
Delivery
mcp MCP server → your ahel connector (mcp.ahel.ai) → your AI.
Catalog kind
mcp-server
Key
com-porkbun-mcp
Source
github.com/oborseth/porkbun-mcp
Hosted endpoint
https://mcp.porkbun.com/mcp