Quickstart: MCP Server

Let any MCP-compatible agent (Claude Code, Claude Desktop, claude.ai, Cursor, VS Code, Windsurf, Codex, ChatGPT) publish the sites it generates straight to live hosting, provision custom domains for them, and send transactional email — in under 5 minutes.

1. Get a Platform API Key

Sign up at thin.host, then open Email & API → Settings in your dashboard to create an API key (one per app or agent — each can be revoked on its own). For testing, you can use the free tier (3 domains, 100 API calls/day).

Sending email (the send_email tool) needs a separate, founder-approved access step beyond the API key. See Get access to email.

2. Connect an agent

The hosted MCP server runs at https://thin.host/mcp (Streamable HTTP). Clients that support OAuth register themselves, open a browser and show a thin.host consent page, so most setups need nothing but the URL. If a client cannot do OAuth, send an API key instead: Authorization: Bearer th_live_….

ClientFastest setup
Claude Codeclaude mcp add --transport http thin-host https://thin.host/mcp, or the thin.host plugin
Claude Desktop / claude.aiAdd a custom connector with the URL
Cursor~/.cursor/mcp.json or the install link
VS Code (Copilot agent mode)code --add-mcp or .vscode/mcp.json
Windsurf (Devin Desktop)devin mcp add or mcp_config.json
Codex CLI and IDE extensioncodex mcp add thin-host --url https://thin.host/mcp
ChatGPTAdd a custom connector (developer mode) with the URL

Claude Code

# OAuth: add the server, then in Claude Code run /mcp, pick thin-host and choose Authenticate
claude mcp add --transport http thin-host https://thin.host/mcp

# Available in every project, not just this one
claude mcp add --transport http --scope user thin-host https://thin.host/mcp

# With an API key instead of OAuth
claude mcp add --transport http thin-host https://thin.host/mcp \
  --header "Authorization: Bearer th_live_your_key"

Or install the plugin, which adds the hosted server together with the Docusaurus-deploy and email skills:

/plugin marketplace add thinhost/thinhost-mcp
/plugin install thin-host@thinhost

Claude Desktop and claude.ai

Connectors added on claude.ai also work in Claude Desktop and on mobile (and in Claude Code when you sign in with the same account).

  1. Open Customize → Connectors and choose Add custom connector.
  2. Enter the URL https://thin.host/mcp exactly. If the dialog asks how to register the OAuth client, choose Register automatically.
  3. Click Add, then Connect, sign in to thin.host and allow access.

On Team and Enterprise plans an owner adds the connector once under Organization settings → Connectors, and each member then connects it from Customize → Connectors. The Free plan allows one custom connector.

Cursor

Add the server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), then sign in when Cursor prompts for thin-host:

{
  "mcpServers": {
    "thin-host": {
      "url": "https://thin.host/mcp"
    }
  }
}

One-click install link: Add thin.host to Cursor.

VS Code (GitHub Copilot agent mode)

code --add-mcp '{"name":"thin-host","type":"http","url":"https://thin.host/mcp"}'

Or commit it to a workspace in .vscode/mcp.json. VS Code registers itself with thin.host and opens a browser to sign in on first use.

{
  "servers": {
    "thin-host": {
      "type": "http",
      "url": "https://thin.host/mcp"
    }
  }
}

The portable .mcp.json at the workspace root (and ~/.copilot/mcp-config.json) uses the same entry under "mcpServers" instead of "servers".

Windsurf (Devin Desktop)

Windsurf is now Devin Desktop. Add the server from a terminal and sign in:

devin mcp add -s user thin-host https://thin.host/mcp
devin mcp login thin-host

Or edit ~/.config/devin/mcp_config.json. Builds that still read ~/.codeium/windsurf/mcp_config.json use "serverUrl" in place of "url".

{
  "mcpServers": {
    "thin-host": {
      "url": "https://thin.host/mcp"
    }
  }
}

Codex CLI and IDE extension

codex mcp add thin-host --url https://thin.host/mcp   # detects OAuth and opens the browser
codex mcp login thin-host                             # sign in again later

Both write to ~/.codex/config.toml, which the CLI, the IDE extension and the desktop app share. To use an API key, point Codex at an environment variable:

[mcp_servers.thin-host]
url = "https://thin.host/mcp"
bearer_token_env_var = "THINHOST_API_KEY"

ChatGPT

  1. On chatgpt.com, open Plugins, click + and choose Add custom MCP server.
  2. Name it thin.host, enter https://thin.host/mcp as the server URL and choose OAuth authentication.
  3. Confirm, click Create as a plugin, install it and sign in to thin.host.
  4. In a chat, type @ and pick thin.host.

Adding a custom MCP server is a ChatGPT web feature. Business, Enterprise and Edu workspaces get full access (on Business, admins create the plugin); OpenAI documents Pro accounts as limited to read and fetch actions, which rules out publishing.

What the hosted server can and cannot do

The hosted server cannot read your disk, so it publishes from a URL (publish_website_from_url / update_website_from_url — a .zip of the site or a single HTML page). Coding agents with a shell can instead upload a zip straight to the REST API with an API key: curl -F file=@site.zip -F title="My Docs" https://thin.host/v1/websites/archive -H "Authorization: Bearer th_live_…". To publish a local build folder directly, use the local server below.

Local server via uvx (reads your files)

Runs the same server on your machine so publish_website can read a local folder or build directory directly — no zipping. Needs uv.

claude mcp add thin-host \
  -e THINHOST_API_URL=https://thin.host/v1 \
  -e THIN_HOST_API_KEY=th_live_your_key \
  -- uvx thinhost-mcp

The package is thinhost-mcp on PyPI; the same wheel is also served at https://thin.host/dl/thinhost-mcp/latest if you would rather pin to the URL.

Claude Desktop bundle (.mcpb)

Download a ready-to-install bundle from the dashboard (Email & API → MCP package) and open it in Claude Desktop, or add the server by hand to claude_desktop_config.json:

{
  "mcpServers": {
    "thin-host": {
      "command": "uvx",
      "args": ["thinhost-mcp"],
      "env": {
        "THINHOST_API_URL": "https://thin.host/v1",
        "THIN_HOST_API_KEY": "th_live_your_key_here"
      }
    }
  }
}

3. Use It

In a Claude conversation, ask Claude to build something and put it live:

"Build me a landing page for my bakery and publish it."

Claude writes the site, calls publish_website, and hands you a live URL like https://thin.host/s/sunrise-bakery/. Iterate in the same conversation — "make the header green" — and Claude pushes the change with update_website.

Custom domains work the same way:

"I just deployed my site to https://myapp.vercel.app. Can you set up myportfolio.com as a custom domain?"

Claude will call provision_domain, get back a claim URL, and share it with you. You visit the claim page, pay, configure DNS, and the domain goes live.

Available Tools

ToolDescription
publish_websitePublish a local HTML file, directory, or ZIP as a live hosted site
update_websitePush updated pages/assets to an existing hosted site
list_websitesList your hosted sites with their live URLs
provision_domainCreate a new custom domain with payment/claim flow
check_domain_statusPoll domain provisioning progress
update_originChange the target URL for a domain
release_domainTear down a provisioned domain
list_domainsList all domains with optional filtering
send_emailSend a transactional notification email (requires email access approval)

Example Flow

# Agent provisions a domain
result = await mcp.call("provision_domain", {
    "domain": "mysite.com",
    "origin_url": "https://myapp.vercel.app",
    "user_email": "user@example.com"
})
# → { provision_id, status: "pending_payment", claim_url, dns_instructions }

# Agent shares the claim_url with the user
# User pays and configures DNS

# Agent checks status
status = await mcp.call("check_domain_status", {
    "provision_id": result["provision_id"]
})
# → { status: "active", ready: true }

See the MCP Tool Reference for full parameter and response documentation.