Need help? You’ve come to the right place

What’s New Getting Started Building Integrating Publishing Glorify HTMLPub New Leadpages

[HTMLPub] Using the Claude MCP Connector

Last Updated

The HTMLPub MCP connector lets Claude and other AI assistants publish, edit, and manage your pages directly — no copying, pasting, or API keys required. Just describe what you want and Claude does it.

The connector works with Claude.ai, Claude Code, and Claude Desktop, and is available on all plans.

Setup

The connector URL is: https://mcp.htmlpub.com/mcp

Claude.ai

  1. Open Claude.aiSettingsConnectors.
  2. Click Add custom connector.
  3. Paste https://mcp.htmlpub.com/mcp and click Add.
  4. Sign in with your HTMLPub account when prompted.

Claude Code

Run this command in your terminal:

claude mcp add htmlpub --transport http https://mcp.htmlpub.com/mcp

You'll be prompted to sign in on first use.

Claude Desktop

Add the following to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "htmlpub": {
      "url": "https://mcp.htmlpub.com/mcp"
    }
  }
}

Restart Claude Desktop after saving.

Authentication

The connector uses OAuth — no API keys to store or rotate. When you first connect, you authorize it with your HTMLPub account. Tokens expire after one hour and you'll be re-prompted automatically if needed.

If you're part of an organization, the connector uses your organization's context automatically.

What Claude can do

Pages

  • Create a page — publish HTML with an auto-generated URL
  • Publish with a custom slug — create or update a page at a specific URL (Starter and Pro)
  • Read a page — retrieve the HTML source of any of your pages
  • Edit a page — apply targeted text replacements without rewriting the whole file
  • Delete a page — permanently remove a page
  • List pages — see all your published pages and their URLs; A/B test variant records are flagged (isExperimentVariant: true) so Claude knows which pages are variants and can target them by their own slug

Assets

  • Import from URL — pull in images, fonts, CSS, or JS from any public URL (GitHub, CDNs, etc.)
  • Upload a file — upload assets directly via presigned URL
  • List assets — discover all assets attached to a page

Sites

  • Create a site — group pages under a shared URL prefix
  • List sites — see all your sites with page counts

Blogs (Starter and Pro)

  • Create and manage blogs, posts, templates, and landing pages
  • Write posts in Markdown and set status to draft or published
  • Update blog landing page HTML

Web analysis

  • Analyze a URL — Claude can inspect any public website and extract its structure, colors, and typography — useful for recreating or taking inspiration from existing sites

Working with A/B Test Variants

If a page is part of an A/B test, each variant is stored as a separate page record with its own slug. The base slug (e.g. my-page) targets Variant A — the original. Other variants follow the convention my-page-variant-b, my-page-variant-c, and so on.

When you ask Claude to read or edit a page that belongs to a running A/B test, the tool response includes an experiment object with the test name, status, your page's role (base or variant), and the slugs of sibling variants. Claude uses this to confirm which variant it's working on and to offer to target a different one if needed.

  • list_pages — variant records are flagged with isExperimentVariant: true so Claude can distinguish them from regular pages.
  • get_page / edit_page / update_page — responses include an experiment field when the page belongs to an active (Draft, Running, or Paused) experiment. Completed or archived experiments are excluded because their variant pages are cleaned up.

To read or edit a specific variant, give Claude the variant's slug directly — for example: "Edit the headline on my-page-variant-b."

Example prompts

Once connected, try asking Claude:

  • "Build me a personal homepage and publish it to HTMLPub."
  • "Look at mycompany.com and create a similar landing page for my product."
  • "Update the headline on my page at /p/my-page to say 'New headline'."
  • "Create a new blog post on my blog with the title 'Hello World' and publish it."
  • "Add my logo from github.com/myuser/repo/logo.png to my homepage."

Plan limits

The connector respects your plan limits. Actions that exceed your plan (e.g., creating a custom slug on Free, or creating a blog on Free) will return an error with an upgrade prompt.

Feature Free Starter Pro
Create pages Yes (5 total, expire in 7 days) Yes (50 total) Yes (250 total)
Custom slugs No Yes Yes
Blog tools No Yes (1 blog) Yes (3 blogs)
Asset storage 50 MB 500 MB 5 GB

Need more help?

You can always get in touch with our support team—just click Support in your Leadpages navigation menu, or submit a ticket ↗

Was this article helpful?
Powered by Zendesk