什么是 Porkbun DNS?
通过 MCP 管理 Porkbun 的 DNS 记录、域名、DNSSEC 和 SSL 证书等配置与资源。
README
porkbun-mcp
MCP server for the Porkbun DNS API.
Manage DNS records, domains, DNSSEC, SSL certificates, and more via the Model Context Protocol.
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-muddyfrom 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 domaindns_get- Get a specific DNS record by IDdns_get_by_name_type- Get DNS records by subdomain and typedns_create- Create a new DNS recorddns_edit- Edit a DNS record by IDdns_edit_by_name_type- Edit DNS records by subdomain and typedns_delete- Delete a DNS record by IDdns_delete_by_name_type- Delete DNS records by subdomain and type
Domains
domains_list- List all domains in your accountdomains_get_nameservers- Get nameservers for a domaindomains_update_nameservers- Update nameservers for a domaindomains_get_url_forwards- Get URL forwarding rulesdomains_add_url_forward- Add a URL forwarding ruledomains_delete_url_forward- Delete a URL forwarding ruledomains_check_availability- Check domain availability and pricingdomains_get_glue_records- Get glue records for a domain
DNSSEC
dnssec_list- List DNSSEC records for a domaindnssec_create- Create a DNSSEC recorddnssec_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 IPsubdomain_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 -->常见问题
Porkbun DNS 是什么?
通过 MCP 管理 Porkbun 的 DNS 记录、域名、DNSSEC 和 SSL 证书等配置与资源。
相关 Skills
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。