GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Register domains and manage DNS, hosting and mail at Porkbun, with every purchase confirmed first.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
PORKBUN_API_KEY_FILE, PORKBUN_SECRET_API_KEY_FILE, PORKBUN_OUTBOX_DIR, PORKBUN_TOOLSETS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"porkbun": {
"command": "npx",
"args": [
"-y",
"@foreverworks/mcp-porkbun"
],
"env": {
"PORKBUN_API_KEY_FILE": "your-value",
"PORKBUN_SECRET_API_KEY_FILE": "your-value",
"PORKBUN_OUTBOX_DIR": "your-value",
"PORKBUN_TOOLSETS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add porkbun --env PORKBUN_API_KEY_FILE=your-value --env PORKBUN_SECRET_API_KEY_FILE=your-value --env PORKBUN_OUTBOX_DIR=your-value --env PORKBUN_TOOLSETS=your-value -- npx -y @foreverworks/mcp-porkbun运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"porkbun": {
"command": "npx",
"args": [
"-y",
"@foreverworks/mcp-porkbun"
],
"env": {
"PORKBUN_API_KEY_FILE": "your-value",
"PORKBUN_SECRET_API_KEY_FILE": "your-value",
"PORKBUN_OUTBOX_DIR": "your-value",
"PORKBUN_TOOLSETS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"porkbun": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@foreverworks/mcp-porkbun"
],
"env": {
"PORKBUN_API_KEY_FILE": "your-value",
"PORKBUN_SECRET_API_KEY_FILE": "your-value",
"PORKBUN_OUTBOX_DIR": "your-value",
"PORKBUN_TOOLSETS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
PORKBUN_OUTBOX_DIR envPORKBUN_TOOLSETS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过域名 foreverworks.com 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:PORKBUN_API_KEY_FILE, PORKBUN_SECRET_API_KEY_FILE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.2)于5天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Run your Porkbun account from your AI assistant: find and register domains, edit DNS and DNSSEC, publish a static site, transfer a domain in or move its DNS to Cloudflare, set up mailboxes and webhooks, and read invoices. The tools are Porkbun's own (@porkbunllc/mcp-server), plus a zone file export, with safety around them. Every tool that spends money, commits to a charge, changes a domain's owner or hands out a secret is money: your client asks you first, and a charge over the account's monthly API limit is refused before it reaches Porkbun.
You need a Porkbun account and an API key pair (pk1_... and sk1_...), each half in a file, with API access turned on for the domains it should manage. Purchases are paid from account credit, or by your card through Stripe Link. To save a file (a certificate, an invoice PDF, a zone file, a mailbox password), the server also needs a directory to save into.
.%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22porkbun_secret_api_key_file%22%2C%22description%22%3A%22Path%20of%20a%20file%20holding%20your%20Porkbun%20secret%20API%20key%20(sk1_...).%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22porkbun_outbox_dir%22%2C%22description%22%3A%22Optional.%20Where%20the%20tools%20that%20save%20a%20file%20(an%20SSL%20bundle%2C%20an%20invoice%20PDF%2C%20a%20DNS%20zone%20export%2C%20a%20new%20mailbox's%20password)%20write%20it.%20Without%20it%20those%20tools%20answer%20with%20a%20configuration%20error%3B%20every%20other%20tool%20works.%22%7D%2C%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22porkbun_toolsets%22%2C%22description%22%3A%22Optional.%20The%20toolsets%20whose%20tools%20the%20server%20loads%2C%20separated%20by%20commas%2C%20e.g.%20dns%2Cforwards.%20Empty%20loads%20every%20toolset.%22%7D%5D&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40foreverworks%2Fmcp-porkbun%22%5D%2C%22env%22%3A%7B%22PORKBUN_API_KEY_FILE%22%3A%22%24%7Binput%3Aporkbun_api_key_file%7D%22%2C%22PORKBUN_SECRET_API_KEY_FILE%22%3A%22%24%7Binput%3Aporkbun_secret_api_key_file%7D%22%2C%22PORKBUN_OUTBOX_DIR%22%3A%22%24%7Binput%3Aporkbun_outbox_dir%7D%22%2C%22PORKBUN_TOOLSETS%22%3A%22%24%7Binput%3Aporkbun_toolsets%7D%22%7D%7D)
With Claude Code:
claude mcp add porkbun -e PORKBUN_API_KEY_FILE="<path to API key file>" -e PORKBUN_SECRET_API_KEY_FILE="<path to Secret API key file>" -- npx -y @foreverworks/mcp-porkbun
Claude Desktop (Settings, Developer, Edit Config) and most other clients read the same command as JSON:
{
"mcpServers": { "porkbun": { "command": "npx", "args": ["-y", "@foreverworks/mcp-porkbun"], "env": { "PORKBUN_API_KEY_FILE": " ", "PORKBUN_SECRET_API_KEY_FILE": " " } } } }
Each runs the published package on Node 22.19 or newer. VS Code and the Claude Desktop bundle ask for each setting as they add the server; leave an optional one empty. Cursor reads each from your environment instead (${env:PORKBUN_API_KEY_FILE} and so on), so set them before you start Cursor. The commands above set only what is required; Configuration has the rest.
git clone https://github.com/foreverworks/mcps.git && cd mcps
npm ci && npm run build claude mcp add porkbun -e PORKBUN_API_KEY_FILE=" " -e PORKBUN_SECRET_API_KEY_FILE=" " -- node "$PWD/servers/porkbun/dist/index.js"
In a JSON configuration, the command is node and its one argument the full path of servers/porkbun/dist/index.js. To share one running copy between several clients over HTTP, see docs/deploying.md.
| Variable | Required | Meaning |
|---|---|---|
PORKBUN_API_KEY_FILE | yes, or PORKBUN_API_KEY | File holding the API key (pk1_...). A file that is named but missing or empty is a config failure, never a fallback. |
PORKBUN_SECRET_API_KEY_FILE | yes, or PORKBUN_SECRET_API_KEY | File holding the secret API key (sk1_...). |
PORKBUN_API_KEY, PORKBUN_SECRET_API_KEY | no | The keys themselves, for a local stdio run (the names Porkbun's own server reads). |
PORKBUN_OUTBOX_DIR | for the tools that save a file | Where files are saved, with mode 0640 (the server's user and the directory's group). No default: unset, get_ssl_bundle, get_invoice_pdf, export_dns_zone, and create_mailbox or setup_mailbox without a password answer config; every other tool works. |
PORKBUN_BASE_URL, PORKBUN_DOCS_BASE | no | Read by Porkbun's package: the API base (default https://api.porkbun.com/api/json/v3) and where the documentation tools fetch from (default https://porkbun.com). Leave them unset. |
PORKBUN_X402_PRIVATE_KEY, PORKBUN_X402_MAX_CENTS | no | Read by Porkbun's package to pay in USDC, which this server does not offer. Never set them. |
PORKBUN_TOOLSETS | no | The toolsets to load, separated by commas; unset, every one (Toolsets). |
The keys are read on the first call that needs them, so the documentation tools (read_doc, search_docs, list_doc_topics), get_pricing and mock_call work without them. The keys are never logged or returned: the audit line carries no arguments or results.
A deployment that limits egress sets MCP_EGRESS_ALLOW=api.porkbun.com,porkbun.com. deploy_site and import_dns_records read files from MCP_FILE_ROOTS. Both, and the other variables every server shares, are in docs/configuration.md.
chmod 600), and point PORKBUN_API_KEY_FILE and PORKBUN_SECRET_API_KEY_FILE at them.Every tool definition the server hands your client travels with each request the client makes, and Porkbun's are long. PORKBUN_TOOLSETS names the toolsets to load, separated by commas. The tools of the others are not there at all, and the server's instructions tell the assistant which toolsets are missing, so it can tell you instead of looking for a way around. Unset, empty or all, every toolset is loaded, as before.
| Toolset | What it loads |
|---|---|
domains | Availability and prices, registering and renewing, auto-renew, contacts. |
dns | DNS records, restore points, scanning, importing and exporting a zone, nameservers, preflight_domain, and the free TLS certificate (get_ssl_bundle). |
dnssec | DS records at the registry, with preflight_domain. |
glue | Glue records, for nameservers named under the domain they serve. |
forwards | URL forwarding and email forwarding. |
hosting | Static hosting and Cloud for WordPress: plans, deploy_site, files, WordPress passwords. |
mailboxes | Email hosting mailboxes: buying, setting up, renewing, passwords. |
cloudflare | Moving DNS to your own Cloudflare account, and the zone, records and proxy there. |
transfers | Transferring a domain in, with check_domain for its price and scan_dns_records and import_dns_records for its zone. |
marketplace | Names other people sell: Porkbun Marketplace, the aftermarket, closeouts. |
webhooks | Webhook endpoints, their secrets and their deliveries. |
account | Top-ups and auto top-up, verifying the account's email and phone, invoices. |
docs | Porkbun's API documentation, and mock_call's example answers. |
ping, get_balance and get_api_settings are always loaded: ping is where you start and where a failure is diagnosed, and every purchase, in five of the toolsets, is paid from the balance and counts against the monthly API spend cap. Whatever is loaded, a purchase is still money and still checked against the caps before it is sent. A name that is not a toolset stops the server at start, with a message listing the ones there are. src/mcp/toolsets.ts places each tool by name, and a version of Porkbun's package with a tool it does not place fails the tests and will not start. Measured with scripts/measure-tokens.ts on 2026-10-23 (GPT-4 tokenizer), the tool list is 113 tools and about 44,200 tokens with every toolset, 23 tools and 8,800 with dns,forwards, and 25 tools and 12,300 with domains,account.
To load DNS and forwarding only:
{
"mcpServers": { "porkbun": { "command": "npx", "args": ["-y", "@foreverworks/mcp-porkbun"], "env": { "PORKBUN_TOOLSETS": "dns,forwards", "PORKBUN_API_KEY_FILE": "/path/to/porkbun-api-key", "PORKBUN_SECRET_API_KEY_FILE": "/path/to/porkbun-secret-api-key" } } } }
A toolset removes tools; MCP_MAX_ACCESS=read keeps every tool listed and refuses the writes.
ping. It checks the connection and the key pair, and shows the key's scopes.get_api_settings) and the balance (get_balance): what the account may still spend this month, and the credit a purchase is paid from.VERIFICATION_REQUIRED, the assistant sends each code (send_email_verification_code, send_phone_verification_code) and you read it back to confirm.read changes nothing; write changes the account, its DN
只显示了开头部分;其余内容请在仓库中阅读