Skip to content
67hosting

How to publish sites and apps with an AI agent (MCP and API)

Updated · 5 min read

In short

To let an AI agent publish sites on its own, create an API token under “Profile and API tokens” and add the server https://app.host67.com/mcp to your MCP client settings with an Authorization: Bearer header and your token. The agent then gets 12 tools: creating and publishing sites, deploying apps, domains, email, logs and the database. For scripts, the same actions are available in the REST API.

If you write code with an AI agent — in Claude, Claude Code, Cursor or another tool with MCP support — the agent can put the result online by itself. No need to download an archive and upload it by hand: just say “publish the site” or “deploy the app”.

Step 1. Create an API token

  1. In the dashboard, open “Profile and API tokens”.
  2. In the “API tokens” section, enter a name — for example, MCP — and click “Create token”.
  3. Copy the token (h67_…) — it's shown only once.

The token acts on behalf of your account within your plan. Don't commit it to a repository; if it leaks, delete it in your profile and create a new one.

Step 2. Connect the MCP server

The server works over a URL — nothing to install.

Claude Code — one terminal command:

claude mcp add host67 https://app.host67.com/mcp --transport http --header "Authorization: Bearer h67_YOUR_TOKEN"

Cursor, Claude Desktop and other clients — add the server to the MCP JSON settings:

{
  "mcpServers": {
    "host67": {
      "type": "http",
      "url": "https://app.host67.com/mcp",
      "headers": { "Authorization": "Bearer h67_YOUR_TOKEN" }
    }
  }
}

Where the settings file lives depends on the client — usually it's the MCP section of its settings.

Step 3. Give the agent a task

Talk to the agent in plain language:

  • “Publish this site on 67hosting at the address portfolio” — the agent creates the site and uploads the files.
  • “Connect the domain mysite.com to it” — the agent attaches the domain and tells you which A record to set.
  • “Deploy the app api with a database in Europe” — the agent packs the code and deploys a container with Postgres.
  • “Show the logs of the app api” — the agent reads the build and runtime logs.

What the agent can do

ToolWhat it does
list_sites, get_siteList sites and get one site's details
create_siteCreate a site in a region, with a free address
publish_sitePublish the site files (fully replaces the content)
delete_siteDelete a site
add_domainAttach your own domain to a site or an app
deploy_appDeploy an app: Dockerfile or auto-build, database, environment variables
scale_appTurn always-on mode on or off
app_logsApp build and runtime logs
app_db_queryRun an SQL query against the app's database
send_emailSend an email from a verified domain
share_fileUpload a file and get a temporary link

The agent works within your plan: the same limits on sites, domains and apps as in the dashboard. Paid actions — like switching on always-on mode — are charged from your balance.

Without MCP: the REST API

For scripts and CI/CD, the same operations are available in the REST API with the same token in the Authorization: Bearer header:

curl https://app.host67.com/api/v1/sites \
  -H "Authorization: Bearer h67_your_token"

All methods are described in the documentation. For agents there's a compact one-file reference, api.txt: the resource model, the order of operations and retry rules. It's handy for an agent that doesn't support MCP.

FAQ

Which AI agents are supported?

Any client that supports MCP over HTTP: Claude, Claude Code, Cursor and others. Agents without MCP can be given the api.txt reference and will work through the REST API.

Is it safe to give an agent the token?

The token gives full access to your account within your plan, including deleting sites. Create a separate token for the agent — then you can revoke it in your profile without affecting other integrations.

How much does publishing through an agent cost?

The same as through the dashboard: publishing sites and free apps costs nothing, and limits follow your plan. Paid features such as always-on apps are charged from your balance.

The agent says a limit has been reached. What should I do?

The agent hit a plan limit — for example, on the number of sites or domains. Delete sites you don't need or upgrade to Pro: it allows 20 sites and up to 10 domains per site.

Try it on your own site

Free, no card: a site on a *.host67.com address with SSL in a couple of minutes.

Start for free

More guides