Porkbun DNS 🐷

Official registry Search and web

Manage DNS records, domains, DNSSEC, SSL certificates via MCP

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

PYPI package porkbun-mcp
Claude Code
claude mcp add porkbun-dns -e 'PORKBUN_API_KEY=<PORKBUN_API_KEY>' -e 'PORKBUN_SECRET_KEY=<PORKBUN_SECRET_KEY>' -e 'PORKBUN_GET_MUDDY=<PORKBUN_GET_MUDDY>' -- uvx porkbun-mcp==1.1.2
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "porkbun-dns": {
            "command": "uvx",
            "args": [
                "porkbun-mcp==1.1.2"
            ],
            "env": {
                "PORKBUN_API_KEY": "<PORKBUN_API_KEY>",
                "PORKBUN_SECRET_KEY": "<PORKBUN_SECRET_KEY>",
                "PORKBUN_GET_MUDDY": "<PORKBUN_GET_MUDDY>"
            }
        }
    }
}

Environment variables

  • PORKBUN_API_KEY required Porkbun API key
  • PORKBUN_SECRET_KEY required Porkbun secret key
  • PORKBUN_GET_MUDDY Enable write operations (default: false for read-only mode)

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. porkbun-mcp
  2. Configuration
  3. Read-Only Mode (Default)
  4. Usage
  5. MCP Client Configuration
  6. Available Tools
  7. Prompts
  8. Development
  9. License

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-muddy from 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 domain
  • dns_get - Get a specific DNS record by ID
  • 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

# 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 🐷?

Manage DNS records, domains, DNSSEC, SSL certificates via MCP

How do I install Porkbun DNS 🐷?

It runs on your machine. In Claude Code: claude mcp add porkbun-dns -e 'PORKBUN_API_KEY=<PORKBUN_API_KEY>' -e 'PORKBUN_SECRET_KEY=<PORKBUN_SECRET_KEY>' -e 'PORKBUN_GET_MUDDY=<PORKBUN_GET_MUDDY>' -- uvx porkbun-mcp==1.1.2. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Porkbun DNS 🐷 need an API key?

Yes. It expects PORKBUN_API_KEY, PORKBUN_SECRET_KEY, which you set in its configuration.

Is Porkbun DNS 🐷 open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Porkbun DNS 🐷?

It is published by major. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.