Manage DNS records, domains, DNSSEC, SSL certificates via MCP
porkbun-mcp (Model Context Protocol)
This MCP server connects to the Porkbun DNS API to manage DNS-related resources. It provides capabilities for handling DNS records, domains, DNSSEC, and SSL certificates through Model Context Protocol, based on the repository description.
๐ ๏ธ Key Features
Manage DNS records
Manage domains
Manage DNSSEC
Manage SSL certificates
MCP integration for Porkbun DNS API
๐ Use Cases
Provision and update DNS records for domains
Enable or manage DNSSEC settings
Manage SSL certificates associated with domains
โก Developer Benefits
Centralizes Porkbun DNS API operations behind an MCP server interface
Uses a repository focused on DNS, DNSSEC, and SSL management via MCP
โ ๏ธ Limitations
Functionality is limited to what the Porkbun DNS API supports, as described: DNS records, domains, DNSSEC, and SSL certificates.
dns_get_by_name_type - Get DNS records by subdomain and type
dns_create - Create a new DNS record
dns_edit - Edit a DNS record by ID
dns_edit_by_name_type - Edit DNS records by subdomain and type
dns_delete - Delete a DNS record by ID
dns_delete_by_name_type - Delete DNS records by subdomain and type
Domains
domains_list - List all domains in your account
domains_get_nameservers - Get nameservers for a domain
domains_update_nameservers - Update nameservers for a domain
domains_get_url_forwards - Get URL forwarding rules
domains_add_url_forward - Add a URL forwarding rule
domains_delete_url_forward - Delete a URL forwarding rule
domains_check_availability - Check domain availability and pricing
domains_get_glue_records - Get glue records for a domain
DNSSEC
dnssec_list - List DNSSEC records for a domain
dnssec_create - Create a DNSSEC record
dnssec_delete - Delete a DNSSEC record
SSL
ssl_retrieve - Retrieve the SSL certificate bundle for a domain
Pricing
pricing_get - Get pricing for all available TLDs
Utility
ping - Test API connectivity and get your public IP
Prompts
Pre-defined workflows to guide common DNS operations:
dns_setup - Set up basic DNS for a new server (root A + www records)
dns_audit - Audit DNS configuration for issues (duplicates, missing email records, low TTLs)
email_dns_setup - Configure email DNS (MX, SPF, DKIM, DMARC)
update_server_ip - Update DNS records when migrating to a new server IP
subdomain_setup - Create A/CNAME records for a new subdomain
Development
bash
# Install dependencies
uv sync --dev
# Run all checks
make check
# Individual commands
make lint # ruff check
make format # ruff format
make typecheck # ty check
make test# pytest with coverage
License
MIT
Install
Configuration
Environment variables
PORKBUN_API_KEYrequired
Porkbun API key
PORKBUN_SECRET_KEYrequired
Porkbun secret key
PORKBUN_GET_MUDDY
Enable write operations (default: false for read-only mode)