How to Use Porkbun with Claude Code, Cursor and Other AI Coding Tools
Any tool that supports remote MCP servers with sign-in can connect to Porkbun's hosted server at https://mcp.porkbun.com/mcp.
Claude Code
claude mcp add --transport http --scope user porkbun https://mcp.porkbun.com/mcp
Then run /mcp in a session, select porkbun, and authenticate. Your browser opens the Porkbun page; sign in, choose what it may do (Full access, Manage, but no purchases or Read-only) and click Allow Claude Code. --scope user makes it available in every project; leave it out to add it to one project only.
Cursor and other clients
Cursor, one click: Add Porkbun to Cursor. Cursor opens and adds the hosted server; sign in with Porkbun when it first connects. If the link does nothing, use the one on porkbun.com/mcp or add it by hand:
Other clients: add the URL to the client's MCP configuration:
{
"mcpServers": {
"porkbun": { "url": "https://mcp.porkbun.com/mcp" }
}
}
The client opens the Porkbun sign-in page the first time it connects.
Prefer API keys, or need the sandbox?
Tool asks for a client ID and client secret? Some apps won't find the Porkbun sign-in on their own and ask you for an OAuth client ID and secret instead. You can create a pair in one step; the instructions, and the addresses to enter, are in our connection guide under "Apps that ask for a client ID and secret". You still sign in to Porkbun and choose what the app may do.
Tool can't sign in with OAuth? If it can send HTTP headers, use the hosted URL with an API key pair instead: send X-API-Key and X-Secret-API-Key, or, if it can store only one secret, Authorization: Bearer pk1_...:sk1_... (your public key, a colon, then your secret key) (create the key at porkbun.com/account/api, give it only the permissions it needs, and no IP restriction, because the requests come from Porkbun's server). The key's permissions, allowed domains and spending limit all apply.
You can also run the same server on your own machine with an API key. See "How to Install the Official Porkbun MCP Server Locally (Claude Desktop and Other Apps)" for the local setup, which works the same way in other clients. The sandbox tools (a free test environment with fake credit) only work this way, with a sandbox key.