mcp-porkbun
Enables AI agents to interact with Porkbun's domain registration and DNS API: check domain availability and pricing, register domains, list account domains, get domain info, and create/list/delete DNS records.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
š mcp-porkbun
A Model Context Protocol server for Porkbun domain registration and DNS management. Let AI agents buy domains and configure DNS ā no browser required.
⨠Overview
mcp-porkbun exposes Porkbun's domain registration and DNS API as MCP tools, enabling AI agents to:
š Check availability ā look up domains and get first-year + renewal pricing
š Register domains ā purchase domains programmatically
š List domains ā inventory all domains in the account
š§ Manage DNS ā create, list, and delete any DNS record type
Originally built to power cold email infrastructure automation: an AI agent checks availability, purchases domains, and configures MX + SPF + DMARC records ā all in a single workflow.
Related MCP server: namecheap-api-mcp
š Prerequisites
A Porkbun account
A Porkbun API key and secret key ā generate them at porkbun.com/account/api
API access enabled per domain in the Porkbun dashboard (Domain Settings ā API)
Python 3.11+
š Setup
1. Install
git clone https://github.com/keyserfaty/mcp-porkbun
cd mcp-porkbun
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .2. Configure Environment
export PORKBUN_API_KEY="pk1_..."
export PORKBUN_SECRET_KEY="sk1_..."āļø MCP Configuration
Add to your ~/.claude.json (or project .mcp.json):
{
"mcpServers": {
"porkbun": {
"type": "stdio",
"command": "/path/to/.venv/bin/python",
"args": ["/path/to/mcp-porkbun/server.py"],
"env": {
"PORKBUN_API_KEY": "pk1_...",
"PORKBUN_SECRET_KEY": "sk1_..."
}
}
}
}š ļø Tools Reference
Auth
Tool | Description |
| Test credentials ā returns your public IP if successful |
Domain Management
Tool | Description | Key Parameters |
| Check availability and pricing |
|
| Purchase a domain |
|
| List all domains in the account |
|
| Get nameservers and status for a domain |
|
Typical purchase flow:
# 1. Check availability + price
result = check_domain("example.com")
# ā result["available"] == True, result["price_first_year"] == "9.73"
# 2. Register using the exact price returned
register_domain("example.com", price_dollars=9.73)ā ļø After registering, enable API access for the domain in the Porkbun dashboard (Domain ā Settings ā API) before making DNS calls.
DNS Management
Tool | Description | Key Parameters |
| List records, optionally filtered |
|
| Add a DNS record |
|
| Delete a record by ID |
|
| Bulk delete all records of a type |
|
Google Workspace DNS setup example:
# SPF
create_dns_record("example.com", "TXT", "v=spf1 include:_spf.google.com ~all", name="@")
# DMARC
create_dns_record("example.com", "TXT", "v=DMARC1; p=none; rua=mailto:dmarc@example.com", name="_dmarc")
# MX records
create_dns_record("example.com", "MX", "ASPMX.L.GOOGLE.COM", name="@", priority=1)
create_dns_record("example.com", "MX", "ALT1.ASPMX.L.GOOGLE.COM", name="@", priority=5)
# DKIM (after generating key in Google Workspace)
create_dns_record("example.com", "TXT", "v=DKIM1; k=rsa; p=...", name="google._domainkey")š¤ Example Agent Workflow
1. check_domain("newdomain.com") ā confirm available + get price
2. register_domain("newdomain.com", 9.73) ā purchase
3. create_dns_record(...) ā SPF, DMARC, MX (Ć5), DKIM
4. get_dns_records("newdomain.com") ā verify all records are liveš Project Structure
mcp-porkbun/
āāā server.py # MCP server & tool definitions
āāā api.py # Porkbun API helper (auth + requests)
āāā pyproject.toml # Package metadata & dependencies
āāā README.mdš¤ Contributing
Contributions welcome ā especially:
Domain transfer tools
URL forwarding management
SSL certificate retrieval
Bulk operations with built-in rate limiting
š License
MIT Ā© Karen Serfaty
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Register, transfer and manage domain names and DNS from your AI agent.
Domain search, registration, DNS, marketplace, and checkout with your AI agent.
Find, register, and manage domains from any AI chat or agent
Buy & manage domains from any AI chat: availability, register, DNS, email forwarding, AI bot stats.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to check domain availability, purchase domains via Stripe, and perform full DNS and nameserver management. It facilitates automated domain lifecycle tasks like record updates and transfer locks without requiring CAPTCHAs.MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Namecheap domains, DNS, contacts, registrar locks, and view SSL certificates and pricing through safe read and configuration tools.1654 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to check domain availability, get name suggestions, lock price quotes, and prepare registrations through the ThatMgmt domain reseller API without touching a dashboard.1353 npmMIT

TLDers Domain Pricesofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to compare live domain registration, renewal, and transfer prices across many registrars and TLDs, find promo codes, and check domain availability.43 npmMIT