StableDomains API, MCP server & CLI
Everything a developer or AI agent needs to search, price and register domains with StableDomains, paid in USDC or USDT.
- StableDomains API docs
REST API reference: search, quote, orders, DNS, renewals.
- Domain ending price report
Monthly year-1 vs renewal prices for every ending, with a CSV download.
- OpenAPI spec
Machine-readable OpenAPI 3 spec for every endpoint.
- StableDomains MCP server
Connect https://stabledomains.net/api/mcp to Claude, Cursor or any MCP client.
- StableDomains CLI
npx stabledomains search | price | register | status.
- llms.txt
When to use StableDomains, plus llms-full.txt for full context.
- Agent skills
Step-by-step skills file for agents.
- x402 payments
Pay per request in USDC on Base over HTTP 402.
- Status
Live API health.
Quickstart, no signup
- Free tier: search, availability, pricing and quotes are free with no account and no API key.
- Self-serve API key:
POST /api/v1/agents/signupreturns an API key instantly, no form (guest tier, 30 req/min). Or create keys in the dashboard or withPOST /api/v1/keys. - Dry run:
POST /api/v1/orderswith{"dry_run":true}(or headerX-Dry-Run: 1) checks availability, price and TLD rules and returnswould_succeedwith no order and no charge. DNS PUT/PATCH acceptdry_runtoo. - Scoped API keys:
POST /api/v1/keyswith{"scope":"read"}(GET requests),"domains":["example.com"](limit to named domains) or"allow_purchase":false(no orders, renewals, transfers or top-ups). Existing keys keep full scope. - Monthly spend cap:
PUT /api/v1/account/spend-capwith{"monthly_spend_cap_usd":50}. Orders that would pass the cap are refused with 403. - Signed webhooks:
PUT /api/v1/account/notificationswith{"webhook_url":"https://…"}returns a signing secret. Events cover registration, transfer, renewal, expiry and DNS changes (dns.changed). VerifyX-StableDomains-Signature: sha256=HMAC_SHA256(secret, raw_body); failed deliveries are retried for 24 hours, deduplicate onX-StableDomains-Delivery. - Renew dry run:
POST /api/v1/domains/{domain}/renewwith{"dry_run":true}returns the quote, new expiry and blockers without charging. - TLD requirements:
GET /api/v1/tlds/{tld}/requirementsreturns a JSON Schema for the order body plus eligibility rules. - DNS record types: A, AAAA, CNAME, MX, TXT and NS on hosted DNS. For SRV, CAA or ALIAS, set custom nameservers and manage them at your DNS provider.
- Tracing: every API response carries
X-Request-IdandX-API-Version. - Try before you pay: creating an order locks a quote for 60 minutes and costs nothing until a payment is sent, so you can test the full flow end to end.
- Payment: USDC/USDT from a wallet, gasless x402, or a human can pay by card on the Stripe checkout page.
- Stripe Link (MPP): order and renewal 402 responses also carry a
WWW-Authenticate: Paymentchallenge withmethod="stripe". An agent pays it with a Shared Payment Token from the customer's Stripe Link wallet, after the customer approves it in Link (for examplenpx @stripe/link-cli mpp pay), then retries withAuthorization: Payment …and its key inX-API-Key. The amount is the order price plus the card fee (minimum $0.50). Stripe MPP docs.
curl -X POST https://stabledomains.net/api/v1/agents/signup # -> api_key curl "https://stabledomains.net/api/v1/search?q=myidea" curl "https://stabledomains.net/api/v1/availability?domain=myidea.com"
StableDomains CLI
Official command-line tool (Node 18+). Package: stabledomains. Tarball: stabledomains-0.2.0.tgz.
npx stabledomains search myidea npx stabledomains price myidea.com npx stabledomains register myidea.com --years 1 --chain base --token USDC npx stabledomains status <order_id> # add --json for machine-readable output; STABLEDOMAINS_API_KEY attaches orders to your account npx stabledomains register myidea.com --ref yourcode # or export STABLEDOMAINS_REF=yourcode
Earn on what your tools register
Pass your affiliate ref code with each order and earn 10% of our margin, paid weekly in USDC on Base. Send it as "ref": "yourcode" in the JSON body or as an X-SD-Ref: yourcode header on POST /api/v1/orders, /api/v1/cart and /api/v1/transfers. The MCP tools create_order, create_cart and transfer_domain take ref, and the CLI takes --ref or STABLEDOMAINS_REF. Get your code in the referral dashboard or with the MCP tool get_referral_link. Banners, links and a search widget are in the affiliate toolkit; how the program works.
curl -X POST https://stabledomains.net/api/v1/orders \
-H "authorization: Bearer $STABLEDOMAINS_API_KEY" -H "content-type: application/json" \
-H "X-SD-Ref: yourcode" -d '{"domain":"myidea.com","years":1}'FAQ
Is there an official StableDomains MCP server?
Yes. It runs at https://stabledomains.net/api/mcp (streamable HTTP, OAuth 2.1 with dynamic client registration) and is listed in the MCP Registry as net.stabledomains/registrar, version 2.5.0 (server.json). For chat directories there is also https://stabledomains.net/api/mcp/discover, which has no buying tools and returns a checkout link instead. Setup: Claude, ChatGPT, safety controls.