Skip to Content

How to let AI agents connect domains (MCP)

Agents can find a domain's provider, connect it, check it and fix it over MCP.

Why agents need domain provisioning

When an agent builds a landing page, spins up a storefront, or ships a small app for a user, the last step is almost always a real address on the open web. Until recently that meant handing the user a checklist: buy a name somewhere, log into a registrar, find the DNS tab, paste in records, wait, then come back and confirm. Every one of those steps is a place the user drops off, and none of them are things an agent could do on its own.

Giving an agent the ability to find a domain's provider, connect it and check it closes most of that gap. Where the provider allows it, the records are written without the person it works for touching a DNS record. For a platform that hosts many such projects, this is also how you let AI-driven onboarding actually finish the job instead of stalling at the domain step. See CustomDomain™ for AI agents for the audience view of this.

What the agent needs to do

A complete domain provisioning flow breaks into three jobs. An agent needs each one exposed as a callable capability so it can chain them without human help.

Search for a domain

First the agent needs to find a name that is available and appropriate. That means checking availability for a specific name and, ideally, getting suggestions when the obvious choice is taken. A good search capability returns availability and price so the agent can present real options to the user or pick one against a budget it was given.

Buy or register it

Once a name is chosen, the agent registers it. Registration is a real transaction with a registrar, so this step usually needs an account and a payment method already on file, plus the contact details a registrar requires. Exposed as a tool, registration lets the agent turn an available name into an owned one in a single call, rather than sending the user off to a checkout page. On the CustomDomain™ hosted service, buying a domain through MCP is off. Buying a new domain in the console is live, and it arrives connected.

Connect it to the product

Owning a name is not the same as pointing it at your product. Connecting a domain means three things happen: DNS records are written so the name resolves to the product, every record is checked until it resolves, and a certificate is issued so the address serves over HTTPS. In plain DNS terms this looks like adding a CNAME on a subdomain such as app.example.com that points at the target your platform gives you, and letting a certificate be issued over ACME. For an agent, the win is that a single connect capability can carry out all of it and report back when the address is live. If the domain is registered through the same flow, the DNS records can be written automatically with no manual paste at all. The certificate side is what we call on-demand TLS: certificates are provisioned and renewed for each connected domain without anyone managing them by hand.

How MCP exposes these as tools

The Model Context Protocol is a published protocol for exposing tools to AI clients. An MCP server advertises a set of tools, each with a name, a description, and a schema for its inputs and outputs. The agent reads that list, decides which tool fits the step it is on, and calls it with structured arguments. The protocol handles the request and returns a structured result the agent can act on.

This maps cleanly onto domain provisioning. Search, register, and connect each become a tool. The agent that is searching for a name calls the search tool and reads the availability back. For a name the user owns, it calls the connect tool to attach the name to the product and waits for it to reach live. Because the tools are described in a machine-readable schema, the agent chooses and sequences them on its own, which is exactly what lets a domain flow run without a human in the loop.

How CustomDomain™ provides this to agents

CustomDomain™ runs the provider integrations, the record checks, the certificates and the edge for bringing custom domains onto a product, and it exposes the same capabilities over MCP so an agent can drive them directly. The hosted MCP server has 20 tools. Agents can find a domain's provider, connect it, check it and fix it over MCP. Buying a domain through MCP is off on the hosted service. Buying a new domain in the console is live, and it arrives connected. No MCP tool accepts DNS records. The server computes them from vetted templates. The provisioning logic is the same one that powers the product, so what an agent does through MCP and what a platform does through the API stay consistent.

The exact MCP endpoint, the tool names, their parameters, and how an agent authenticates are documented in one place. See the docs for the current MCP details, and the pillar guide on custom domains for SaaS for how the same infrastructure serves platform teams building this into their own product. Agent jobs, from connecting a customer's domain to serving your MCP server on your own domain, are on custom domains for AI agents and MCP.

Frequently asked questions

What is MCP and why does it matter for domains?

MCP, the Model Context Protocol, is a published protocol for exposing tools to AI clients: the client asks a server what it can do, then calls those tools with typed arguments. It matters for domains because it gives an agent a machine-readable way to discover and call the exact capabilities a domain flow needs, so the agent can run the flow itself instead of handing steps back to a person.

Can an agent register a domain on its own?

Only where registration is exposed as a tool and switched on. Registration is a real transaction, so it relies on an account, a payment method and the contact details a registrar requires. On the CustomDomain™ hosted service, buying a domain through MCP is off. Buying a new domain in the console is live, and it arrives connected.

Does the user still have to edit DNS records?

Only where their provider has no automatic path. Where the provider allows it, the records are written for the user. Where it does not, the agent gets the exact records with that provider's steps to pass on. Every record is checked until the domain is live.

How does HTTPS get set up without a human?

Certificates are issued over ACME, the standard protocol for automated certificate issuance, and provisioned and renewed per domain without anyone managing them by hand. This is what we mean by on-demand TLS, so a freshly connected address serves securely as soon as it goes live. On CustomDomain™, edge certificates are on Growth and up.

Where do I find the exact MCP tools and endpoint?

The current MCP endpoint, the available tools, their parameters, and the authentication details live in the docs. Because this is a fast-moving category, the docs are the source of truth rather than any fixed example here.