Porkbun MCP Server
The Porkbun MCP Server exposes the Porkbun domain registrar API as AI-accessible tools (46 total), enabling full domain lifecycle management, DNS configuration, and more. Spend-based operations auto-attach idempotency keys to prevent double-charging.
Account & Status
ping– Verify API connectivity and credentialsget_balance– Check account credit balanceget_api_settings– View spend limits, low-balance alerts, auto top-up config, and MTD spend
Domain Research & Pricing
check_domain– Check availability and get registration/renewal/transfer pricingget_pricing– Browse pricing for all TLDs (no auth required)list_marketplace– Browse aftermarket domains for saleget_registration_requirements– Get TLD-specific registration requirements
Domain Management
list_domains– Paginate through account domains with rich filteringget_domain– Get full metadata for a single domainget_nameservers/update_nameservers– View or replace nameserversupdate_auto_renew– Enable or disable auto-renewal
Domain Lifecycle (incur cost)
register_domain– Register a new domain (requires price confirmation)renew_domain– Renew an existing domaintransfer_domain– Initiate an inbound transfer with an EPP/auth codelist_transfers/get_transfer_status– Monitor in-progress transfers
DNS Records
list_dns_records,create_dns_record,update_dns_record,delete_dns_record
DNSSEC
list_dnssec_records,create_dnssec_record,delete_dnssec_record
URL Forwarding
list_url_forwards,create_url_forward,delete_url_forward
Glue Records
list_glue_records,create_glue_record,update_glue_record,delete_glue_record
SSL Certificates
get_ssl_bundle– Retrieve the free Porkbun-issued SSL certificate bundle
Webhooks
list_webhooks,get_webhook,create_webhook,update_webhook,rotate_webhook_secret,test_webhook,resend_webhook,delete_webhook,list_webhook_deliveries,get_webhook_delivery,get_webhook_event_types
API Documentation (no auth required)
list_doc_topics,read_doc,search_docs– Browse and search the Porkbun API reference
Allows interaction with the Porkbun API, providing tools for domain management including checking availability, pricing, DNS records, DNSSEC, URL forwarding, glue records, domain registration, renewal, transfer, and account settings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Porkbun MCP Servercheck if example.com is available for registration"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Porkbun MCP Server
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.
Status: v0.11.0 — covers everything you can do in the Porkbun web UI, plus outbound webhooks. All write operations attach an
Idempotency-Keyautomatically, so retries within 24 hours don't double-charge.
What's included (46 tools)
Read tools (free, no spend, no state changes)
Tool | Description |
| Verify API connectivity and credentials |
| Check availability and pricing for a single domain |
| TLD registration requirements as JSON Schema — is it API-registerable, the create payload, and registry eligibility fields (.us nexus, .ca legal type, …) |
| Get registration/renewal/transfer pricing for all TLDs (no auth needed) |
| Browse the Porkbun aftermarket — filter by TLD, max price, name substring |
| Paginate through domains; filter by tld, expiry, auto-renew, API access |
| Get metadata for a single domain in the account |
| Get account credit balance |
| Get monthly spend limit, low-balance alert, auto top-up config, MTD spend |
| Get current nameservers for a domain |
| List DNS records for a domain |
| List DNSSEC DS records published at the registry |
| List URL forwarding rules for a domain |
| List glue records (host-to-IP mappings) for a domain |
| List in-progress and recent inbound transfers |
| Get status of a specific inbound transfer |
| Retrieve the free Porkbun-issued SSL bundle for a domain |
| List the event types a webhook endpoint can subscribe to |
| List webhook endpoints (URL, events, status, delivery health, secret) |
| Get a single webhook endpoint by id |
| List recent delivery attempts (status, attempts, HTTP, error); ~30-day history |
| Get a single delivery incl. the full signed payload |
| List Porkbun API doc topics (the docs index) |
| Read a doc page as Markdown ( |
| Keyword-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.
Domain lifecycle writes (spend account credit)
Tool | Description |
| Register a new domain — call |
| Renew an existing domain |
| Initiate an inbound transfer (returns transferId; takes 5-7 days) |
Domain settings writes (free)
Tool | Description |
| Turn auto-renewal on or off |
| Replace the nameserver list for a domain (full replace, not append) |
DNS / DNSSEC / URL-forwarding / glue writes (free)
Tool | Description |
| Create a new DNS record (A, AAAA, CNAME, MX, TXT, etc.) |
| Update an existing DNS record by its ID |
| Delete a DNS record by its ID |
| Submit a DNSSEC DS record to the registry |
| Remove a DNSSEC DS record by key tag |
| Create a URL forwarding rule |
| Delete a URL forwarding rule by ID |
| Create a glue record (host-to-IP mapping at the registry) |
| Replace the IP list for a glue record |
| Delete a glue record by host |
Webhook writes (free)
Tool | Description |
| Register an HTTPS endpoint to receive signed event payloads; returns the signing secret |
| Change an endpoint's URL, events, or status (ACTIVE/DISABLED) |
| Generate a new signing secret for an endpoint |
| Send a |
| Re-queue a past delivery (reuses the original event id) |
| Delete 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.
Related MCP server: domain-suite-mcp
Install
You'll need Node.js 18 or newer.
npx -y @porkbunllc/mcp-serverThis 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 theenvblock 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 403IP_NOT_ALLOWEDbefore 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:
Create a fresh key dedicated to the agent (not your master key).
List the specific domains the agent should manage.
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
Variable | Required | Purpose |
| for live ops | Your Porkbun public API key. Omit to use only the credential-free documentation tools. |
| for live ops | Your Porkbun secret API key. Omit to use only the credential-free documentation tools. |
| no | Override the API base URL (e.g. for testing against |
| no | Override the docs host used by the |
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.jsThe 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.jsReliability
All write operations (when added in future releases) will automatically attach a per-call Idempotency-Key header. Retried calls within 24 hours return the cached response — your agent can safely retry on network errors without double-charging.
License
MIT
Links
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oborseth/Porkbun-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server