Porkbun MCP by usefulapi
v1.2.1Read domains, DNS records and nameservers; create, edit and delete DNS records in Porkbun.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
porkbun_list_domains List domains
List the domains in the Porkbun account, up to 1000 per call. Filter by exact domain, name substring, or expiry window. Use start to page. Porkbun API: POST /domain/listAll.
| Parameter | Type | Description |
|---|---|---|
domain | string | Exact domain name match (0 or 1 result). |
expiringWithinDays | integer | Only domains expiring within this many days. |
includeLabels | boolean | Include label metadata for each domain. |
nameContains | string | Case-insensitive substring of the domain name. |
start | integer | Zero-based offset for paging (default 0). |
porkbun_get_domain Get domain
Get one domain in the account: status, expiry date, auto-renew and security flags. Porkbun API: GET /domain/get/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_get_nameservers Get nameservers
Get the nameservers a domain delegates to at the registry. Porkbun API: GET /domain/getNs/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_get_glue_records Get glue records
List the glue (host) records of a domain at the registry. Porkbun API: GET /domain/getGlue/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_get_url_forwards List URL forwards
List the URL forwards (301, 302 and masked) set on a domain. Porkbun API: GET /domain/getUrlForwarding/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_check_domain Check domain availability
Check whether a domain name is available to register, with the registration price. This does not buy anything. Porkbun limits sustained bulk checks. Porkbun API: POST /domain/checkDomain/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_get_pricing Get TLD pricing
Get Porkbun's public registration, renewal and transfer prices per TLD. Porkbun API: POST /pricing/get.
porkbun_get_account_balance Get account balance
Get the account credit balance. Read only: this does not add or spend credit. Porkbun API: GET /account/balance.
porkbun_list_dns_records List DNS records
List all DNS records of a domain hosted at Porkbun, with their ids. Porkbun API: GET /dns/retrieve/{domain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
porkbun_get_dns_records_by_name_type Get DNS records by name and type
List the DNS records of one type at one subdomain (empty subdomain = apex). Porkbun API: GET /dns/retrieveByNameType/{domain}/{type}/{subdomain}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
type * | string | DNS record type. |
subdomain | string | Subdomain prefix such as www, or empty for the apex. Do not include the domain name. |
porkbun_create_dns_record Create DNS record
Create a DNS record on a domain hosted at Porkbun. This changes live DNS; caching resolvers may serve the old answer until their TTL expires. Porkbun API: POST /dns/create/{domain}.
| Parameter | Type | Description |
|---|---|---|
content * | string | The record value, for example an IP address or a hostname. |
domain * | string | The domain name, for example example.com. |
type * | string | DNS record type. |
name | string | Subdomain prefix such as www, or empty for the apex. Do not include the domain name. |
notes | string | Free-text note stored with the record. |
prio | integer | Priority for MX and SRV records. |
ttl | integer | TTL in seconds. Omit or 0 to use the account minimum (typically 600). |
porkbun_edit_dns_record Edit DNS record
Edit a DNS record by id. Only the fields you pass change. This changes live DNS; caching resolvers may serve the old answer until their TTL expires. Porkbun API: POST /dns/edit/{domain}/{id}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
id * | string | The DNS record id. |
content | string | New record value. |
name | string | Subdomain prefix such as www, or empty for the apex. Do not include the domain name. |
notes | string | New note. An empty string clears the note. |
prio | integer | New priority for MX and SRV records. |
ttl | integer | New TTL in seconds. 0 uses the account minimum. |
type | string | DNS record type. |
porkbun_delete_dns_record Delete DNS record
Delete a DNS record by id. Porkbun removes it; caching resolvers may keep serving it until their TTL expires. Use porkbun_list_dns_records to find the id first. Porkbun API: POST /dns/delete/{domain}/{id}.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain name, for example example.com. |
id * | string | The DNS record id. |