Porkbun DNS 🐷 MCP Server
Manage DNS records, domains, DNSSEC, SSL certificates via MCP
Porkbun DNS 🐷 scores 60 (Good), licensed MIT and written in Python. It installs as a local process. It declares 26 tools. Filed under Uncategorized. GitHub shows 23 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
60 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
87/100 for listing completeness. Lost points: 3 of 21 tools barely described, short summary, no docs link.
How quality is graded
Where the 60 comes from
22 + 10 + 4 + 10 + 4 + 10 = 60. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "major-porkbun-mcp": { "command": "uvx", "args": [ "porkbun-mcp" ], "env": { "PORKBUN_API_KEY": "", "PORKBUN_SECRET_KEY": "", "PORKBUN_GET_MUDDY": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PORKBUN_API_KEY | Required | Porkbun API key |
PORKBUN_SECRET_KEY | Required | Porkbun secret key |
PORKBUN_GET_MUDDY | Optional | Enable write operations (default: false for read-only mode) |
Tools26Tool docs quality grade C
All capabilitiesdns_auditpromptAudit DNS configuration for issues (duplicates, missing email records, low TTLs)
dns_createtoolCreate a new DNS record
dns_deletetoolDelete a DNS record by ID
Delete DNS records by subdomain and type
dns_edittoolEdit a DNS record by ID
Edit DNS records by subdomain and type
dns_gettoolGet a specific DNS record by ID
Get DNS records by subdomain and type
dns_listtoolList all DNS records for a domain
dns_setuppromptSet up basic DNS for a new server (root A + www records)
dnssec_createtoolCreate a DNSSEC record
dnssec_deletetoolDelete a DNSSEC record
About
porkbun-mcp
MCP server for the Porkbun DNS API.
Manage DNS records, domains, DNSSEC, SSL certificates, and more via the Model Context Protocol.
Configuration
Set your Porkbun API credentials as environment variables:
export PORKBUN_API_KEY="pk1_..."
export PORKBUN_SECRET_KEY="sk1_..."
Get your API keys from the Porkbun API Access page.
Read-Only Mode (Default)
By default, porkbun-mcp runs in read-only mode for safety. Write operations (create, edit, delete) will return an error until explicitly enabled.
Enabling Write Operations
To let the pig get muddy and make changes:
Environment variable:
export PORKBUN_GET_MUDDY=true
CLI flag:
uvx porkbun-mcp --get-muddy
Usage
Run directly with uvx (no installation required):
uvx porkbun-mcp
SSE transport
uvx porkbun-mcp --transport sse
MCP Client Configuration
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"porkbun": {
"command": "uvx",
"args": ["porkbun-mcp", "--get-muddy"],
"env": {
"PORKBUN_API_KEY": "pk1_...",
"PORKBUN_SECRET_KEY": "sk1_..."
}
}
}
}
Note: Remove
--get-muddyfrom args for read-only mode (recommended for safety).
Claude Code / Codex
Add to ~/.claude/settings.json:
{
"mcpServers": {
"porkbun": {
"command": "uvx",
"args": ["porkbun-mcp", "--get-muddy"],
"env": {
"PORKBUN_API_KEY": "pk1_...",
"PORKBUN_SECRET_KEY": "sk1_..."
}
}
}
}
VS Code
Add to .vscode/mcp.json in your workspace (or use MCP: Add Server command):
{
"servers": {
"porkbun": {
"command": "uvx",
"args": ["porkbun-mcp", "--get-muddy"],
"env": {
"PORKBUN_API_KEY": "pk1_...",
"PORKBUN_SECRET_KEY": "sk1_..."
}
}
}
}
OpenCode
Add to your opencode.json configuration:
{
"mcp": {
"porkbun": {
"type": "local",
"command": ["uvx", "porkbun-mcp", "--get-muddy"],
"environment": {
"PORKBUN_API_KEY": "pk1_...",
"PORKBUN_SECRET_KEY": "sk1_..."
}
}
}
}
Available Tools
DNS
dns_list- List all DNS records for a domaindns_get- Get a specific DNS record by IDdns_get_by_name_type- Get DNS records by subdomain and typedns_create- Create a new DNS recorddns_edit- Edit a DNS record by IDdns_edit_by_name_type- Edit DNS records by subdomain and typedns_delete- Delete a DNS record by IDdns_delete_by_name_type- Delete DNS records by subdomain and type
Domains
domains_list- List all domains in your accountdomains_get_nameservers- Get nameservers for a domaindomains_update_nameservers- Update nameservers for a domaindomains_get_url_forwards- Get URL forwarding rulesdomains_add_url_forward- Add a URL forwarding ruledomains_delete_url_forward- Delete a URL forwarding ruledomains_check_availability- Check domain availability and pricingdomains_get_glue_records- Get glue records for a domain
DNSSEC
dnssec_list- List DNSSEC records for a domaindnssec_create- Create a DNSSEC recorddnssec_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 IPsubdomain_setup- Create A/CNAME records for a new subdomain
Development
# 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
Frequently asked questions
What is Porkbun DNS 🐷 MCP Server?
Manage DNS records, domains, DNSSEC, SSL certificates via MCP
How do I install Porkbun DNS 🐷 MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Porkbun DNS 🐷 MCP Server runs locally from the PyPI package porkbun-mcp with the command uvx porkbun-mcp.
Is Porkbun DNS 🐷 MCP Server free and open source?
Yes. Porkbun DNS 🐷 MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Porkbun DNS 🐷 MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Porkbun DNS 🐷 MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Porkbun DNS 🐷 MCP Server provide?
Porkbun DNS 🐷 MCP Server provides 21 tools, including dns_create, dns_delete, dns_delete_by_name_type, and dns_edit. See the full tool list for descriptions and parameters.
How is Porkbun DNS 🐷 MCP Server's trust score calculated?
Porkbun DNS 🐷 MCP Server scores 60 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.