PluginBench
MCP Server
Maintained
MIT

Porkbun DNS 🐷 MCP Server

io.github.major/porkbun

Manage DNS records, domains, DNSSEC, and SSL certificates via Porkbun API through Claude and Cursor.

What is the Porkbun DNS 🐷 MCP server?

The Porkbun DNS MCP server provides AI agents with tools to manage DNS records, domains, DNSSEC, SSL certificates, and related infrastructure through the Porkbun API. It supports read-only mode by default for safety, with optional write operations when explicitly enabled.

This server connects Claude and Cursor to your Porkbun account, letting you query and manage DNS records, domains, nameservers, URL forwards, DNSSEC, and SSL certificates. It's useful for automating DNS operations, auditing configurations, setting up email DNS, and migrating serversβ€”all through natural language prompts.

How to install Porkbun DNS 🐷

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench β€” verify against the source before use.
Environment / auth
  • 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)

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "porkbun": {
      "command": "uvx",
      "args": [
        "porkbun-mcp"
      ],
      "env": {
        "PORKBUN_API_KEY": "<YOUR_PORKBUN_API_KEY>",
        "PORKBUN_SECRET_KEY": "<YOUR_PORKBUN_SECRET_KEY>",
        "PORKBUN_GET_MUDDY": "<YOUR_PORKBUN_GET_MUDDY>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • 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_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_list β€” List DNSSEC records for a domain
  • dnssec_create β€” Create a DNSSEC record
  • dnssec_delete β€” Delete a DNSSEC record
  • ssl_retrieve β€” Retrieve the SSL certificate bundle for a domain

Use cases

  • Audit DNS configuration for issues like duplicates, missing email records, or low TTLs
  • Set up email DNS records (MX, SPF, DKIM, DMARC) for a domain
  • Update DNS A records when migrating a server to a new IP address
  • Create and manage subdomains with A/CNAME records
  • Check domain availability and pricing across TLDs

Porkbun DNS 🐷 MCP server FAQ

What is the Porkbun DNS MCP server?

It's an MCP server that gives Claude and Cursor access to the Porkbun DNS API, allowing you to manage DNS records, domains, DNSSEC, SSL certificates, and related infrastructure via natural language.

Is it free to use?

The server itself is free and open-source (MIT license). You need a Porkbun account and API credentials, which are available on the Porkbun API Access page.

How do I install it in Claude Desktop?

Add the server to ~/.config/claude/claude_desktop_config.json with your Porkbun API credentials. Use `uvx porkbun-mcp` as the command and set PORKBUN_API_KEY and PORKBUN_SECRET_KEY environment variables.

Does it support write operations by default?

No. The server runs in read-only mode by default for safety. Enable write operations by setting PORKBUN_GET_MUDDY=true or using the --get-muddy CLI flag.

What authentication is required?

You need Porkbun API credentials: PORKBUN_API_KEY (starting with pk1_) and PORKBUN_SECRET_KEY (starting with sk1_), obtainable from your Porkbun account settings.

Can I use it with Cursor or VS Code?

Yes. For Cursor, add it to ~/.claude/settings.json. For VS Code, add it to .vscode/mcp.json or use the MCP: Add Server command.

README (reference)

Source of truth, from the repository.

porkbun-mcp

MCP server for the Porkbun DNS API.

Manage DNS records, domains, DNSSEC, SSL certificates, and more via the Model Context Protocol.

CI codecov PyPI version Python 3.13+ License: MIT

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

<!-- mcp-name: io.github.major/porkbun -->

Related MCP servers

Query system performance metrics via MCP - CPU, memory, disk I/O, network, processes

0
Python
MIT
View repository β†’
PEPensyve logo

Pensyve

Active

Universal memory runtime for AI agents β€” episodic, semantic, and procedural memory that persists across sessions.

69
Rust
View repository β†’

Neutral W3C DID/VC identity and reputation oracle for AI agents (did:key/did:web, eddsa-jcs-2022).

View repository β†’

Turn a raw dev log (commit subjects, PR titles) into customer-facing release notes Markdown.

View repository β†’

Encode uploads to web-ready media: video to HLS, audio to AAC, images to WebP. Async jobs.

View repository β†’

Audit a page for search and AI answer engines; generate robots.txt, sitemap, head, llms.txt.

View repository β†’