Porkbun MCP Server
Search and register domains, edit DNS records, manage SSL and hosting, and configure Cloudflare through the Porkbun API.
- Maintained by
- Porkbun
- Hosting
- Hosted endpoint, or run it locally
- Authentication
- OAuth sign-in
- Last checked
Domain registrations and renewals are charged to your Porkbun account.
How to connect the Porkbun MCP server
Pick your AI client and paste the snippet. Swap the YOUR_… placeholders for your own values. New to this? Our guide to how MCP clients and servers fit together explains what each piece does.
Claude Code
claude mcp add --transport http porkbun https://mcp.porkbun.com/mcp Then run /mcp inside Claude Code and choose Authenticate to sign in.
Full Claude Code setup guide →Claude Desktop and claude.ai
Name: Porkbun
Remote MCP server URL: https://mcp.porkbun.com/mcp Custom connectors need a Pro, Max, Team or Enterprise plan. On Team and Enterprise an owner adds them in admin settings.
Full Claude Desktop setup guide →Cursor
{
"mcpServers": {
"porkbun": {
"url": "https://mcp.porkbun.com/mcp"
}
}
} VS Code
{
"servers": {
"porkbun": {
"type": "http",
"url": "https://mcp.porkbun.com/mcp"
}
}
} ChatGPT
Business, Enterprise and Edu plans (and Pro, read-only) can add this endpoint as an app in developer mode. ChatGPT setup guide →
+ − Run it locally instead
Claude Code
claude mcp add --env PORKBUN_API_KEY=YOUR_API_KEY --env PORKBUN_SECRET_API_KEY=YOUR_SECRET_API_KEY --transport stdio porkbun \
-- npx -y @porkbunllc/mcp-server Claude Desktop
{
"mcpServers": {
"porkbun": {
"command": "npx",
"args": [
"-y",
"@porkbunllc/mcp-server"
],
"env": {
"PORKBUN_API_KEY": "YOUR_API_KEY",
"PORKBUN_SECRET_API_KEY": "YOUR_SECRET_API_KEY"
}
}
}
} Fully quit and reopen Claude Desktop after saving.
Full Claude Desktop setup guide →Cursor
{
"mcpServers": {
"porkbun": {
"command": "npx",
"args": [
"-y",
"@porkbunllc/mcp-server"
],
"env": {
"PORKBUN_API_KEY": "YOUR_API_KEY",
"PORKBUN_SECRET_API_KEY": "YOUR_SECRET_API_KEY"
}
}
}
} VS Code
{
"servers": {
"porkbun": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@porkbunllc/mcp-server"
],
"env": {
"PORKBUN_API_KEY": "YOUR_API_KEY",
"PORKBUN_SECRET_API_KEY": "YOUR_SECRET_API_KEY"
}
}
}
} Frequently asked questions
What is the Porkbun MCP server?
It is a Model Context Protocol (MCP) server — a small piece of software that gives AI assistants like Claude a secure, governed connection to Porkbun. Search and register domains, edit DNS records, manage SSL and hosting, and configure Cloudflare through the Porkbun API.
Is there an official Porkbun MCP server?
Yes. The Porkbun MCP server is an official integration, maintained by the vendor or the Model Context Protocol project, which makes it the safest default for business use. It is maintained by Porkbun.
Is the Porkbun MCP server hosted, or do I run it myself?
Both. Porkbun runs a hosted endpoint at https://mcp.porkbun.com/mcp, so most people just paste that URL into their AI client. You can also run the server locally with npx, supplying your own credentials.
Do I need an API key for the Porkbun MCP server?
No API key is needed for the hosted server. You sign in through Porkbun's own OAuth screen, and the assistant only gets the access your account has.
What can an AI assistant actually do with Porkbun?
Through this server an assistant can work with domain search, dns records, ssl, hosting — reading from and acting on Porkbun directly instead of you copy-pasting between windows. What you allow it to do is controlled by the permissions you grant.
How do I set this up for my business?
The setup section above has copy-paste config for Claude Code, Claude Desktop, Cursor and VS Code. Once it is running against real systems, the question becomes what catches it when it acts wrongly, and whether that control has ever been watched to hold. Crox puts a number on it.
New to MCP? Start with our plain-English guide to the Model Context Protocol or see how to connect AI to your business tools without writing code .
Already running this in production?
An agent with a live connection to your tools is a model that can act. Crox puts a number on what catches it when it acts wrongly — by breaking the control on purpose and measuring how much margin was left before something irreversible happened.