# Porkbun (official)

Connects an AI agent to Porkbun tools for domain and DNS tasks. Use it to check domain availability or inspect DNS records.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 33
- Author: oborseth
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/oborseth/Porkbun-MCP
- Updated: 2026-10-18
- HTML: https://affpapa.org/en/nevibecode/mcp/porkbun-official

## What it does

The MCP server exposes Porkbun API tools to an agent. It can check a domain’s availability and price, list account domains, and retrieve DNS records or current nameservers. It can also scan a domain’s live DNS before a transfer; zone data does not move with the transfer.

Porkbun hosts an HTTP endpoint, and Claude Code can connect to it directly. There is also a local `npx` setup that uses an API key and secret key. The hosted connection requires signing in to Porkbun and approving access. Some tools can spend account funds: `buy_closeout` purchases a domain closeout, so review the agent’s request before allowing it.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.porkbun.com/mcp`
- Environment variables: `PORKBUN_API_KEY`, `PORKBUN_SECRET_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.porkbun.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env PORKBUN_API_KEY=<PORKBUN_API_KEY> --env PORKBUN_SECRET_API_KEY=<PORKBUN_SECRET_API_KEY> --transport stdio porkbun-official -- npx -y @porkbunllc/mcp-server
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add porkbun-official --url https://mcp.porkbun.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add porkbun-official --env PORKBUN_API_KEY=<PORKBUN_API_KEY> --env PORKBUN_SECRET_API_KEY=<PORKBUN_SECRET_API_KEY> -- npx -y @porkbunllc/mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "porkbun-official": {
            "url": "https://mcp.porkbun.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "porkbun-official": {
            "command": "npx",
            "args": [
                "-y",
                "@porkbunllc/mcp-server"
            ],
            "env": {
                "PORKBUN_API_KEY": "<PORKBUN_API_KEY>",
                "PORKBUN_SECRET_API_KEY": "<PORKBUN_SECRET_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "porkbun-official": {
            "type": "http",
            "url": "https://mcp.porkbun.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "porkbun-official": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@porkbunllc/mcp-server"
            ],
            "env": {
                "PORKBUN_API_KEY": "<PORKBUN_API_KEY>",
                "PORKBUN_SECRET_API_KEY": "<PORKBUN_SECRET_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http porkbun-official https://mcp.porkbun.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e PORKBUN_API_KEY=<PORKBUN_API_KEY> -e PORKBUN_SECRET_API_KEY=<PORKBUN_SECRET_API_KEY> porkbun-official npx -y @porkbunllc/mcp-server
```
Replace <…> with your own values

## When to use it
- check a domain’s availability and registration price
- inspect DNS records before a domain transfer
- search for domains listed for sale
- check a Porkbun account balance

## Example prompts
- Check whether `example.com` is available and find its registration price.
- Show the DNS records for `example.com` before I transfer it.
- Search for domains for sale that match this name.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
