Claude Code domain registration tutorial

How to Buy a Domain from Claude Code with InstaDomain

InstaDomain is a remote MCP server that lets Claude Code check domain names, show exact pricing, start payment, register the domain through OpenSRS, and create a Cloudflare DNS zone without leaving your terminal.

1. Install InstaDomain in Claude Code

InstaDomain is hosted at https://instadomain.fly.dev/mcp/ and uses the Streamable HTTP MCP transport. The current Claude Code command for a remote HTTP MCP server is:

claude mcp add --transport http instadomain https://instadomain.fly.dev/mcp/

Then open Claude Code in your project and check that the server is connected:

claude
/mcp

You can also install through Smithery:

npx -y @smithery/cli@latest install @nach-dakwale/instadomain --client claude

2. Ask Claude Code to find a domain

Start with a normal product request. Claude Code can call InstaDomain when it needs domain availability.

Find a short .com or .dev domain for this repo. Check availability and show me the best options before buying anything.

Useful tools Claude can call:

  • suggest_domains generates candidate names from a keyword or product description.
  • check_domains_bulk checks up to 50 names at once.
  • check_domain checks one exact domain and returns exact pricing.

3. Confirm the required purchase details

Domain registration is a real purchase and cannot be treated like a reversible code edit. Before Claude Code calls a purchase tool, confirm these details explicitly:

Domain string: the exact name, such as example.dev.
Price: the exact amount returned by check_domain.
Registrant identity: the legal owner name, email, and address.
Payment rail: Stripe Checkout, Stripe MPP, or x402 USDC on Base.
DNS behavior: InstaDomain creates a Cloudflare zone and points nameservers there.
Ask Claude to repeat those five details back to you before buying. That keeps the final tool call intentional and auditable.

4. Buy the domain

Stripe Checkout

For a normal card payment, ask Claude Code to use buy_domain.

Buy example.dev with Stripe Checkout. Use the registrant details I just provided. Show me the checkout link and wait for payment before polling status.

Claude receives a Stripe Checkout URL. Open it, pay, then Claude can call get_domain_status until registration and DNS setup are complete.

Stripe MPP

For agent-native fiat payments, use buy_domain_mpp. InstaDomain returns a payment URL that completes through Stripe Machine Payments Protocol with a Shared Payment Token.

x402 USDC

For crypto-native agents, use buy_domain_crypto. The returned payment URL is an x402 endpoint. An x402-capable HTTP client pays USDC on Base, then the order proceeds.

5. Use the DNS result

After payment clears, InstaDomain does three things for you:

  1. Registers the domain through OpenSRS.
  2. Creates a Cloudflare DNS zone.
  3. Returns nameservers and a scoped Cloudflare API token.

You can then ask Claude Code to wire deployment DNS records:

The domain is registered. Use the Cloudflare DNS token from get_domain_status and add the records needed for my Vercel deployment.

6. Keep ownership and transfer rights clear

The domain is registered in your name as the legal registrant. InstaDomain is listed only as admin and technical contact for service management. WHOIS privacy is enabled by default.

If you later want to move the domain to another registrar, use unlock_domain and get_transfer_code to start a transfer. ICANN rules can require a 60 day lock after initial registration before transfer is allowed.

Copy and paste prompt

I want to buy a domain for this project with InstaDomain.

First, suggest and check domain options.
Second, show me exact pricing for the best available names.
Third, before purchase, repeat the exact domain, price, registrant identity, payment rail, and DNS behavior.
Do not call a purchase tool until I explicitly confirm.

Ready to connect InstaDomain to Claude Code?

Install on Smithery Back to InstaDomain