Porkbun (official)

com.porkbun由 porkbun.com 发布官方发布者v0.62.0更新于 Nov 7, 2026

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

已验证Streamable HTTP可网页运行云端与基础设施金融商业与电商

概览

AI 生成的概览

Porkbun 官方 MCP 服务器,让助手管理域名、DNS、SSL、主机与 Cloudflare,可托管或本地运行。

可以做什么
  • 查询域名可用性、价格、清仓与二级市场域名,读取账户域名、余额与发票
  • 列出、创建、更新和删除 DNS 记录、DNSSEC、URL 与邮件转发、胶水记录和名称服务器
  • 注册、续费和转入域名,管理自动续费与联系人
  • 开通静态主机与 Cloud for WordPress,上传文件并编辑 WordPress 内容
  • 管理 Webhook、邮箱和 Cloudflare 区域设置,并检索 Porkbun API 文档
适用场景
适合需要让助手查看或修改 Porkbun 账户中的域名与 DNS、把站点发布到 Porkbun 主机,或在不提供凭据的情况下研究 Porkbun API 的场景。
运行要求
可使用托管端点并通过 Porkbun 登录(OAuth),或在本地以 Node.js 18 及以上运行 npm 包。实际操作用 PORKBUN_API_KEY 与 PORKBUN_SECRET_API_KEY,并需为域名或整个账户开启 API 访问。可选的 PORKBUN_X402_PRIVATE_KEY 支持直接用 USDC 付款。
安装前请注意
许多工具会花钱:注册、续费、转入、清仓购买、主机、邮箱和信用卡充值会扣余额或已存卡,设置 PORKBUN_X402_PRIVATE_KEY 后还能直接签付 USDC。DNS、名称服务器、联系人和主机改动会立即生效,可能影响网站或邮件。建议使用专用的受限 API 密钥;更改注册人会触发所有权通知邮件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Porkbun (official),将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.porkbun%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "porkbun-official": {
      "type": "http",
      "url": "https://mcp.porkbun.com/mcp"
    }
  }
}

README

Porkbun MCP Server (official)

[npm version] [npm downloads] [License: MIT]

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. (An app that asks for an OAuth client ID and secret can register one at https://porkbun.com/oauth2/register with token_endpoint_auth_method: client_secret_post. A client that can't do OAuth can send the account's API key pair as X-API-Key + X-Secret-API-Key headers instead, or as a single secret, Authorization: Bearer pk1_…:sk1_…, if it can store only one.) 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 (clients that can't do OAuth can send an API key pair). Provisions Cloud for WordPress and edits the site's pages, posts and images directly (wordpress_request, wordpress_upload_media: no WordPress password needed, so it works from ChatGPT and Claude), or mints REST API credentials for your own code. Builds and edits Link in Bio pages. 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 Porkbun Marketplace (names Porkbun customers list themselves); filter by TLD, max price, name substring. For every aftermarket at once, use search_aftermarket
search_closeoutsSearch expired-domain closeouts; filter by age, price, TLD, name length; sort by registration date
search_aftermarketFind taken names that are for sale (Afternic, Sedo, Atom, NameBright, DAX, Porkbun Marketplace), with price, sale type and a link to buy on porkbun.com
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
top_up_with_usdcAdd credit with USDC on Base ($1-$500; Coinbase keeps ~1%, so use INSUFFICIENT_FUNDS's usdcAmountToCover): returns an x402 URL an agent's wallet pays directly, and a payment page for the user
get_usdc_topup_statusWhether a USDC top-up has been paid and credited
top_up_with_card_mppA payment link an agent pays with the user's card over MPP (Stripe Link agent wallet); credit lands immediately
send_phone_verification_codeTexts (or calls) a code to the phone on the account, to clear VERIFICATION_REQUIRED
confirm_phone_verificationVerifies the phone with the code the user received
send_email_verification_codeEmails a code to the address on the account, to clear VERIFICATION_REQUIRED
confirm_email_verificationVerifies the email with the code from that email
list_invoicesThe account's invoices, newest first: date, paid/refunded state, net total, domains, and a link to each on porkbun.com
get_invoiceOne invoice as data: bill-to, payment method, lines with terms and expiry dates, and totals
get_invoice_pdfThe invoice PDF as an embedded file, plus a 15-minute download link that works without signing in
get_api_settingsThe monthly limits actually enforced (spendLimit on purchases, topupLimit on credit added; $100 each by default), what was spent and added this month, alerts and auto top-up config
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_email_forwardsList email forwards on a domain (address → mailbox), with limits and whether forwarding MX is in place
list_mailboxesList email hosting mailboxes (including ones waiting to be set up), the price of another, and mail client settings
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. Pays from credit, directly in USDC (pay_with_usdc), or by card with a hold (pay_with_card)
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- and email-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_email_forwardForward an address at the domain to another mailbox; asks first (DNS_CHANGE_CONFIRMATION_REQUIRED) before replacing another mail service's MX or rewriting SPF
delete_email_forwardDelete an email forward; the last one also removes the forwarding MX/SPF
setup_mailboxSet up a waiting email hosting mailbox (paid, or the free trial every registration includes); generates the password unless one is given
set_email_passwordChange a mailbox's password
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
create_mailboxBuy an email hosting mailbox ($36/yr, renews yearly) and set it up in one call; cost_cents must match, dry_run quotes; paid from credit or with pay_with_card / pay_with_usdc
renew_mailboxAdd a year to a mailbox now at its renewalPrice (set-up mailboxes also auto-renew); paid from credit or with pay_with_card / pay_with_usdc
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
update_hosting_auto_renewTurn auto-renew off (the plan runs to its end date; a paid Link in Bio falls back to free) or back on

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
wordpress_requestEdit a Cloud for WordPress site's content: any WordPress REST API call (pages, posts, menus, settings), run inside the site with no password; editor by default, administrator on request
wordpress_upload_mediaAdd an image or file to the site's media library from a URL or base64
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
set_wordpress_php_version / set_wordpress_versionChange the PHP version, or move WordPress to the latest or previous release
reissue_wordpress_ssl / set_wordpress_search_visibilityRestart a stuck certificate; show or hide the site from search engines
list_wordpress_backups / create_wordpress_backup / delete_wordpress_backupBackups (automatic daily files + hourly database, and one on-demand of each)
restore_wordpress_backupReplace the site with a files + database backup pair (queued; poll get_hosting)
get_wordpress_staging / create_wordpress_staging / reset_wordpress_staging / delete_wordpress_stagingA private staging copy on *.stagebun.com (queued; poll get_wordpress_staging)
publish_wordpress_stagingReplace the live site with staging (backs up live first)
set_wordpress_staging_password / set_wordpress_staging_outbound / set_wordpress_staging_environmentStaging password, outbound email/API blocking, environment type

Link in Bio (a single page of links on a domain)

Most .com domains registered at Porkbun come with a free page. create_link_in_bio turns on a free one (50 links); create_hosting with PIXIELINKSM1 / PIXIELINKSY1 buys a paid plan (1000 links, scheduling, animation, passcode protection, analytics IDs) and upgrades a free page in place, content included. Edits show up at once in the page and in the editor on porkbun.com.

ToolDescription
get_link_in_bioThe page: URL, plan and what it allows, profile, links with ids, socials, appearance, settings
create_link_in_bioTurn on a free page served on the domain
update_link_in_bio_profileTitle, bio, avatar
add_link_in_bio_link / edit_link_in_bio_link / delete_link_in_bio_linkLinks, featured links and category headings; hide, schedule, animate or protect a link
reorder_link_in_bio_linksSet the display order
update_link_in_bio_socials / update_link_in_bio_appearance / update_link_in_bio_settingsSocial icons; preset, fonts, buttons, colours; content warning and analytics IDs

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
request_api_keyStart creating a live API key the account holder approves in the browser (optionally with only some permissions); returns the approval link
retrieve_api_keyAfter approval, collect the new key pair once
revoke_api_keyPermanently revoke the key this server is using (only that key)
share_site_accessLet someone else and their AI agent run one domain's website: returns an approval link; once the account holder approves on porkbun.com, a one-time share link, QR code, share code and handoff prompt
list_site_sharesSite shares and their status; the link, code and handoff prompt for approved ones
revoke_site_shareEnd a site share (a claimed key stops working within seconds)
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. Optional scopes (e.g. ["dns"]) mints a restricted key to test a least-privilege setup
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, cloudflare.connect.completed|failed, account.verification.code_sent|completed; fields per event: https://porkbun.com/llms/webhooks). 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 four skills: publish-website (publish a site Claude builds to Porkbun Secure Static Hosting instead of giving upload steps), change-dns-safely, diagnose-domain (site down, mail bouncing, DNS not updating) and move-dns-to-porkbun. It holds no code. Install it in Claude Code with /plugin marketplace add oborseth/Porkbun-MCP then /plugin install porkbun@porkbun (the repo root carries a marketplace file, .claude-plugin/marketplace.json, pointing at ./plugin), or try a working copy with claude --plugin-dir ./plugin. Raise version in plugin/.claude-plugin/plugin.json with every change to the folder.

Gemini CLI

gemini extensions install https://github.com/oborseth/Porkbun-MCP

Adds the hosted server (gemini-extension.json at the repo root) and a short GEMINI.md with usage rules. Then run /mcp auth porkbun to sign in with your Porkbun account. Keep version in gemini-extension.json in step with package.json: the extension gallery picks up tagged releases.

Install

You'll need Node.js 18 or newer.

bash
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):

json
{  "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

Cursor, one click: Add Porkbun to Cursor adds the hosted server (https://mcp.porkbun.com/mcp); you sign in with Porkbun on first use, no API key. If the link doesn't open from here (some sites strip cursor:// links), use the button on https://porkbun.com/mcp.

For the local server, most MCP-aware editors use the same mcpServers config block as above. See your client's documentation for the exact location. Agents installing it can follow llms-install.md.

Get API keys

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

Or let the assistant get one: the server starts without keys, and request_api_key (no credentials needed) returns a link where you approve a new key, optionally with only some permissions; retrieve_api_key then hands the assistant the key pair once. Put it in the config below and restart the server.

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 three optional restrictions, set at porkbun.com/account/api when you create the key, or later with the gear icon next to it:

  • 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.
  • Permissions — Full access, Read-only, Manage, but no purchases, or custom scopes (read, dns, domains, email, hosting, purchase, funding, account). A tool call outside them fails with HTTP 403 INSUFFICIENT_SCOPE and changes nothing; ping shows the key's scopes.

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. Give it only the permissions it needs (often Manage, but no purchases).
  4. 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 tools (documentation, create_sandbox_key, request_api_key / retrieve_api_key).
PORKBUN_SECRET_API_KEYfor live opsYour Porkbun secret API key. Omit to use only the credential-free tools (documentation, create_sandbox_key, request_api_key / retrieve_api_key).
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)
PORKBUN_X402_PRIVATE_KEYnoPrivate key (0x…) of a Base wallet holding USDC. Lets the purchase tools pay directly with pay_with_usdc: true in one call. Use a wallet holding only what you are willing to spend.
PORKBUN_X402_MAX_CENTSnoLargest single USDC payment the server will sign, in cents (default 5000, $50).

Local development

bash
git clone https://github.com/oborseth/Porkbun-MCP.gitcd Porkbun-MCPnpm installnpm run buildnpm start          # or: node dist/index.js

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

bash
(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

Paying for purchases directly in USDC (x402)

register_domain, renew_domain, transfer_domain, buy_closeout, create_hosting, create_mailbox and renew_mailbox take pay_with_usdc: true, which skips account credit entirely. The API answers with an x402 payment requirement (USDC on Base, the exact price), and:

  • with PORKBUN_X402_PRIVATE_KEY set, this server signs it and the purchase completes in the same tool call. It only signs terms that are exactly the quoted price in USDC on Base, and never above PORKBUN_X402_MAX_CENTS;
  • without it (and always on the hosted connector, which holds no one's key), the tool returns status: PAYMENT_REQUIRED with a checkoutId, an x402Url and a payUrl. Pay the x402Url with a wallet tool (for example Coinbase's awal x402 pay <x402Url> --scheme auth-capture) or have the user pay the payUrl page, then call the same tool again with usdc_checkout_id.

If a purchase fails after payment, the payment is not sent back to the wallet: it stays on the Porkbun account as credit (the error says so, with the new balance), ready to retry from credit or spend on anything else. Guide: Pay with USDC (x402).

Paying for purchases by card, with a hold (Stripe MPP)

The same five tools take pay_with_card: true for a user with a Stripe Link agent wallet. The tool returns status: PAYMENT_REQUIRED with a single-use payUrl and a cardPaymentId; pay the link with an MPP wallet tool (link-cli mpp pay <payUrl> -X POST --context "..."; the user approves in Link), which only authorizes the card. Call the same tool again with card_payment_id: the card is charged if the purchase succeeds, and the hold is released (nothing charged) if it fails. Guide: Pay with the user's card (MPP).

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 stores no API keys: each request carries the user's OAuth access token (or, from clients that can't do OAuth, their API key pair), which is forwarded to the Porkbun API and kept in memory only briefly (a 30-second validity cache, keyed by a hash). Request logs record method, path, status and timing, never tokens, keys 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

来源:README.md,提交 d9227cb

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

21
  1. v0.62.0最新Nov 7, 2026
  2. v0.61.0Nov 6, 2026
  3. v0.59.0Nov 3, 2026
  4. v0.55.0Oct 30, 2026
  5. v0.54.0Oct 29, 2026
  6. v0.52.0Oct 18, 2026
  7. v0.51.1Oct 14, 2026
  8. v0.50.0Oct 9, 2026
  9. v0.49.0Oct 8, 2026
  10. v0.48.0Oct 8, 2026
  11. v0.46.0Oct 7, 2026
  12. v0.45.5Oct 7, 2026
  13. v0.45.1Oct 6, 2026
  14. v0.44.3Oct 6, 2026
  15. v0.43.6Oct 5, 2026
  16. v0.43.5Oct 3, 2026
  17. v0.41.1Oct 2, 2026
  18. v0.39.6Oct 1, 2026
  19. v0.39.4Oct 1, 2026
  20. v0.39.1Sep 30, 2026
  21. v0.38.1Sep 26, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Porkbun 集成