npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

porkbun-mcp-server

v1.4.0

Published

MCP server for Porkbun API v3 — domain registration, DNS management, SSL certificates, and more

Downloads

405

Readme

porkbun-mcp

MCP server for the Porkbun API v3 — 33 tools covering domain registration, DNS management, SSL certificates, email hosting, marketplace, and more. Supports multiple Porkbun accounts in a single server instance.

Installation

npm

npm install -g porkbun-mcp-server

GitHub Packages

npm install -g @eyalm321/porkbun-mcp-server --registry=https://npm.pkg.github.com

Configuration

Single account

export PORKBUN_API_KEY="pk1_..."
export PORKBUN_SECRET_API_KEY="sk1_..."

Get your API keys at porkbun.com/account/api.

Multiple accounts

Create a JSON file listing your accounts and point PORKBUN_ACCOUNTS_FILE at it:

// ~/.porkbun-accounts.json
[
  { "user": "default",   "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." },
  { "user": "alice",     "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." },
  { "user": "acme-corp", "PORKBUN_API_KEY": "pk1_...", "PORKBUN_SECRET_API_KEY": "sk1_..." }
]
export PORKBUN_ACCOUNTS_FILE="$HOME/.porkbun-accounts.json"

The shorthand aliases apiKey and secretApiKey are also accepted inside the file.

Then pass user to any authenticated tool:

// Use the default credentials
{ "name": "porkbun_domain_list_all", "arguments": {} }

// Use Alice's credentials
{ "name": "porkbun_domain_list_all", "arguments": { "user": "alice" } }

// User identifiers are case-insensitive
{ "name": "porkbun_domain_list_all", "arguments": { "user": "Acme-Corp" } }

Resolution rules:

  • The default account (used when user is omitted) is PORKBUN_API_KEY / PORKBUN_SECRET_API_KEY, or — if defined — the entry in PORKBUN_ACCOUNTS_FILE with user: "default".
  • A user argument matches a configured account by lowercased identifier.
  • Use porkbun_list_users to discover which user identifiers are configured.

Usage with Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "porkbun": {
      "command": "npx",
      "args": ["-y", "porkbun-mcp-server"],
      "env": {
        "PORKBUN_API_KEY": "pk1_...",
        "PORKBUN_SECRET_API_KEY": "sk1_...",
        "PORKBUN_ACCOUNTS_FILE": "/Users/you/.porkbun-accounts.json"
      }
    }
  }
}

PORKBUN_ACCOUNTS_FILE is optional — leave it out for a single-account setup.

Tools (33)

Utility

  • porkbun_ping — Test credentials and get IP
  • porkbun_get_ip — Get public IP (no auth)
  • porkbun_list_users — List configured user identifiers

Pricing

  • porkbun_get_pricing — Get domain pricing for all TLDs (no auth)

API Key Management

  • porkbun_apikey_request — Initiate API key authorization
  • porkbun_apikey_retrieve — Poll for API key approval

Domain (13 tools)

  • porkbun_domain_list_all — List all domains
  • porkbun_domain_get_ns — Get nameservers
  • porkbun_domain_update_ns — Update nameservers
  • porkbun_domain_update_auto_renew — Update auto-renew
  • porkbun_domain_check — Check availability & pricing
  • porkbun_domain_create — Register a domain
  • porkbun_domain_add_url_forward — Add URL forward
  • porkbun_domain_get_url_forwarding — List URL forwards
  • porkbun_domain_delete_url_forward — Delete URL forward
  • porkbun_domain_create_glue — Create glue record
  • porkbun_domain_update_glue — Update glue record
  • porkbun_domain_delete_glue — Delete glue record
  • porkbun_domain_get_glue — Get glue records

DNS (11 tools)

  • porkbun_dns_retrieve — Retrieve all DNS records
  • porkbun_dns_retrieve_by_id — Get record by ID
  • porkbun_dns_retrieve_by_name_type — Get records by name/type
  • porkbun_dns_create — Create DNS record
  • porkbun_dns_edit — Edit record by ID
  • porkbun_dns_edit_by_name_type — Edit records by name/type
  • porkbun_dns_delete — Delete record by ID
  • porkbun_dns_delete_by_name_type — Delete records by name/type
  • porkbun_dns_create_dnssec — Create DNSSEC record
  • porkbun_dns_get_dnssec — Get DNSSEC records
  • porkbun_dns_delete_dnssec — Delete DNSSEC record

SSL

  • porkbun_ssl_retrieve — Retrieve SSL certificate bundle

Email Hosting

  • porkbun_email_set_password — Set email hosting password

Marketplace

  • porkbun_marketplace_list — List marketplace domains

Every authenticated tool accepts an optional user parameter that selects which account from PORKBUN_ACCOUNTS_FILE to use. Omit it to use the default account.

Development

npm install
npm run build
npm test

License

MIT