# Porkbun (official)

> Porkbun's own MCP server - search, register and transfer domains, edit DNS, and publish a site, with a monthly spend cap.

[Canonical HTML page](https://top-mcps.com/mcp/porkbun-mcp-server) · [server.json](https://top-mcps.com/mcp/porkbun-mcp-server.json) · [methodology](https://top-mcps.com/about/methodology)

## Install

### Claude Desktop — `claude_desktop_config.json`

Paste under mcpServers. Fully quit and reopen Claude after editing.

```json
{
  "mcpServers": {
    "porkbun-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@porkbunllc/mcp-server"
      ],
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### Claude Code — `CLI or .mcp.json`

Run from your repo. Commit .mcp.json to share with your team.

```shell
# export PORKBUN_API_KEY=pk1_your_key
# export PORKBUN_SECRET_API_KEY=sk1_your_secret
claude mcp add porkbun-mcp-server -- npx -y @porkbunllc/mcp-server
```

### Cursor — `.cursor/mcp.json`

Global path: ~/.cursor/mcp.json. Reload window after editing.

```json
{
  "mcpServers": {
    "porkbun-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@porkbunllc/mcp-server"
      ],
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### VS Code — `.vscode/mcp.json`

VS Code uses the "servers" key (not "mcpServers").

```jsonc
{
  "servers": {
    "porkbun-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@porkbunllc/mcp-server"
      ],
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### Windsurf — `~/.codeium/windsurf/mcp_config.json`

Open via Cascade → hammer icon → Configure.

```json
{
  "mcpServers": {
    "porkbun-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@porkbunllc/mcp-server"
      ],
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### Cline — `cline_mcp_settings.json`

Open via the Cline sidebar → MCP Servers → Edit.

```json
{
  "mcpServers": {
    "porkbun-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@porkbunllc/mcp-server"
      ],
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### Continue — `~/.continue/config.json`

Continue uses modelContextProtocolServers with a transport block.

```json
{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": [
            "-y",
            "@porkbunllc/mcp-server"
          ],
          "env": {
            "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
            "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
          }
        }
      }
    ]
  }
}
```

### Codex CLI — `~/.codex/config.toml`

Codex uses TOML. Each server is a [mcp_servers.<name>] subtable.

```shell
# ~/.codex/config.toml
[mcp_servers.porkbun-mcp-server]
command = "npx"
args = [
  "-y",
  "@porkbunllc/mcp-server",
]
env = { PORKBUN_API_KEY = "${PORKBUN_API_KEY}", PORKBUN_SECRET_API_KEY = "${PORKBUN_SECRET_API_KEY}" }
```

### Zed — `~/.config/zed/settings.json`

Zed calls them "context_servers". Settings live-reload on save.

```jsonc
{
  "context_servers": {
    "porkbun-mcp-server": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@porkbunllc/mcp-server"
        ]
      },
      "env": {
        "PORKBUN_API_KEY": "${PORKBUN_API_KEY}",
        "PORKBUN_SECRET_API_KEY": "${PORKBUN_SECRET_API_KEY}"
      }
    }
  }
}
```

### ChatGPT — `ChatGPT → Settings → Connectors (remote URL)`

Paste this into Settings → Connectors → Add custom connector. Requires ChatGPT Pro / Team / Enterprise / Edu with Developer mode enabled. ChatGPT supports remote HTTPS MCP servers only — stdio servers must be hosted on a public HTTPS endpoint first.

```json
{
  "name": "Porkbun (official)",
  "transport": "http",
  "url": "https://mcp.porkbun.com/mcp"
}
```

## At a glance

- **Maintainer:** Porkbun
- **Transport:** stdio, Streamable HTTP
- **Auth model:** OAuth 2.1
- **Required secrets:** PORKBUN_API_KEY, PORKBUN_SECRET_API_KEY
- **Supported clients:** Claude, Claude Code, Cursor, Gemini CLI, Any MCP-compatible client, Porkbun accounts
- **License:** MIT
- **Language:** TypeScript
- **Latest version:** latest
- **MCP spec:** 2025-11-25 (1 revision behind)
- **Evidence:** npm @porkbunllc/mcp-server 0.62.0 declares @modelcontextprotocol/sdk ^1.29.0, whose newest protocol revision is 2025-11-25; hosted https://mcp.porkbun.com/mcp answers 401 without sign-in; read 2026-11-09
- **Last verified:** 2026-11-09
- **GitHub stars:** 36 (fetched 2026-11-19T09:02:21.599Z)
- **Score:** 79/100 (rubric 2027-01 — see https://top-mcps.com/about/methodology)
- **Source:** https://github.com/oborseth/Porkbun-MCP
- **Homepage:** https://porkbun.com/mcp

## Tools & permissions

| Tool | Description | Args | Side effects |
|------|-------------|------|--------------|
| `check_domain` | Check availability and pricing for one domain. | `—` | network |
| `get_pricing` | Registration, renewal and transfer pricing for all TLDs (no auth needed). | `—` | network |
| `search_aftermarket` | Find taken names for sale across aftermarkets, with price and a buy link. | `—` | network |
| `list_domains` | Page through the account's domains with filters. | `—` | read |
| `list_dns_records` | List DNS records for a domain. | `—` | read |
| `scan_dns_records` | Read what a domain publishes now from its live nameservers, before a transfer. | `—` | network |
| `get_api_settings` | The enforced monthly spend and top-up limits and what was used this month. | `—` | read |
| `register_domain` | Register a domain; spends account credit, or pays by USDC or card hold. | `—` | write |
| `transfer_domain` | Start an inbound transfer; returns a transfer id. | `—` | write |
| `update_nameservers` | Replace a domain's nameserver list (full replace). | `—` | write |
| `create_dns_record` | Create a DNS record. | `—` | write |
| `create_dnssec_record` | Submit a DNSSEC DS record to the registry. | `—` | write |
| `deploy_site` | Upload static files to a domain's Porkbun hosting. | `—` | write |
| `create_sandbox_key` | Mint a throwaway sandbox key pair with fake credit; no credentials needed. | `—` | network |

## Security & scope

- **Access scope:** read-write
- **Sandbox:** Hosted: sign in with Porkbun and approve the connection; the hosted server holds no wallet key. Local: a Porkbun API key pair whose permissions, allowed domains and allowed IPs are set on porkbun.com. Purchases are capped by the account's monthly spend limit ($100 by default).
- **Gotchas:**
  - A full-access key can register, renew and buy closeouts up to the monthly spend limit. Give the agent a dedicated key scoped to "Manage, but no purchases" unless it should buy.
  - API access is opt-in per domain unless "Opt In All Domains" is on; a domain without it reads as not in your account.
  - Setting PORKBUN_X402_PRIVATE_KEY lets the local server sign USDC payments in one call; use a wallet that holds only what you are willing to spend.

## Quick answer

**What it does.** Exposes Porkbun as read tools (`check_domain`, `get_pricing`, `list_domains`, `list_dns_records`, `scan_dns_records`, `search_aftermarket`, `get_api_settings`), free writes (`create_dns_record`, `update_nameservers`, `create_dnssec_record`, URL and email forwards, glue records, webhooks), and spending writes (`register_domain`, `renew_domain`, `transfer_domain`, `buy_closeout`, `create_hosting`). Documentation tools, `mock_call` and `create_sandbox_key` work without credentials.

**Best for:**
- Domain availability and price checks
- Registering or transferring a domain with a spend cap
- DNS, DNSSEC and forwarding changes
- Publishing a static site to Porkbun hosting
- Testing agent flows against the sandbox

**Not for:**
- Portfolios spread across several registrars
- Unattended purchases on a key without a spend limit
- Domains with API access switched off in the Porkbun panel

## Description

The official Porkbun MCP server, built and maintained by Porkbun, covers the full Porkbun v3 API: availability and pricing, registration, renewal and inbound transfers, DNS, DNSSEC, URL and email forwarding, glue records, static and WordPress hosting, webhooks, and moving domains to Cloudflare. Run it hosted at https://mcp.porkbun.com/mcp with a Porkbun sign-in, or locally with `npx -y @porkbunllc/mcp-server` and an API key pair. Purchases draw on account credit under a $100 monthly spend limit by default.

## Why it matters

It is the registrar's own server, so it tracks the API as Porkbun changes it, and its safety model is enforced on Porkbun's side rather than in a prompt: per-key permission scopes, allowed domains and allowed IPs, a monthly spend limit, and a sandbox key that runs every tool against fake credit.

## Key features

- Hosted at https://mcp.porkbun.com/mcp with Porkbun sign-in, or local via npx
- Full Porkbun v3 API: domains, DNS, SSL, hosting, webhooks, Cloudflare moves
- Per-key scopes, allowed domains and allowed IPs
- $100 monthly spend and top-up limits by default; money arguments in cents
- Sandbox keys with $1000 of fake credit
- Official, MIT

## FAQ

### Is it official?

Yes. Porkbun builds, hosts and maintains it (its CTO wrote it), publishes it on npm as @porkbunllc/mcp-server and documents it at porkbun.com/mcp. Porkbun says other Porkbun MCP servers on GitHub and in directories are third-party projects it does not review or support.

### Will it buy a domain without asking?

Only within the limits you set. Spending tools draw on account credit, every money argument is in cents so the approval prompt shows the real figure, and the account's monthly spend limit (default $100) stops anything above it. For no purchases at all, use a key scoped to "Manage, but no purchases" or the hosted `/mcp/no-purchases` endpoint.

### Hosted or local?

Hosted (https://mcp.porkbun.com/mcp) for ChatGPT, Claude and Cursor: sign in with Porkbun, no keys in a config file. Local (`npx -y @porkbunllc/mcp-server`) when you want to pin a key with narrow scopes and allowed IPs, or let the server pay in USDC from a wallet you control.

### Can an agent test this without touching real domains?

Yes. `create_sandbox_key` mints a sandbox key pair with $1000 of fake credit, no credentials needed, and every tool then runs against an isolated test environment. `mock_call` returns schema-accurate example responses with no key at all.

### How is this different from the community Porkbun server?

Both are listed. This one is Porkbun's own, covers the whole v3 API including hosting, webhooks and transfers, runs hosted with a Porkbun sign-in, and enforces limits on Porkbun's side (key scopes, spend limit). The community `porkbun-mcp` (korobkov-v) is local only and gates writes in the process instead: read-only until two flags are set, with idempotent DNS helpers such as dns_upsert and dns_batch_apply.

## Changelog

- **2026-11-09** — Added alongside the community Porkbun server: Porkbun's official server, @porkbunllc/mcp-server and https://mcp.porkbun.com/mcp, documented at porkbun.com/mcp.
