TagWorks
Start free
Menu
How it worksPricingBlogAffiliateLog in
Claude Code · Cursor · Guide

Publish HTML from Claude Code or Cursor

When a coding agent like Claude Code or Cursor writes a page on your computer, you can publish it three ways: drag and drop, the REST API, or the TagWorks MCP server.

· 5 min read

TagWorks is an HTML publisher with a REST API and an MCP server, so a coding agent can turn the index.html it wrote into a permanent link.

Before you start

What TagWorks accepts

  • One HTML file, plus the PNG, JPG, WebP or GIF images it uses. Images are resized and compressed for you.
  • CSS inside the HTML (<style>) or loaded from an https:// URL, such as a CDN. Separate local .css files are not uploaded.
  • Scripts in the page keep working, but the public page runs in an isolated sandbox, so some browser features may be limited.
  • Pages can't hold server code, databases or secret API keys. TagWorks hosts the page, not a backend.

Create a personal API key in your dashboard under API & MCP if you want to use the API or MCP. Treat it like a password: keep it in an environment variable, never in your code or a public repository.

Option 1: Drag and drop

  1. Find the file

    Locate index.html and its images in your project folder.

  2. Upload

    Drop them into TagWorks and copy the permanent link.

Option 2: REST API

Send the page title and the full HTML as JSON:

export TAGWORKS_API_KEY="your-key"

jq -Rs '{title: "My page", html: .}' index.html | \
curl https://tagworks.io/api/v1/deploy \
  -H "Authorization: Bearer $TAGWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @-

The response includes your page's link. You can add this to a script or ask your agent to run it after it finishes the page.

Option 3: MCP (let the agent publish)

TagWorks runs a remote MCP server:

URLhttps://tagworks.io/api/mcp
TransportStreamable HTTP
AuthYour API key in the Authorization: Bearer header

In Claude Code you can add it from the terminal:

claude mcp add --transport http tagworks https://tagworks.io/api/mcp \
  --header "Authorization: Bearer $TAGWORKS_API_KEY"

For Cursor and other clients, add a remote MCP server with the same URL and header in the client's MCP settings. Setting names differ between clients, so check your client's documentation. After that, you can ask: "Publish index.html to TagWorks and give me the link."

What you get

FeatureDetails
Permanent linkA public URL that stays the same. Visitors don't need an account.
QR codeDownload it from your dashboard for print, posters or slides.
Unlimited editsUpload a new version anytime. The URL and QR code don't change.
AnalyticsVisits, where visitors came from (Instagram, blog, direct and more) and which outbound links they clicked.

Pricing

The Free plan gives you 1 live link with unlimited edits and basic analytics; free pages show a small TagWorks badge. Starter ($5/month) gives you 5 links without the badge, and Pro ($15/month) gives you 30 links plus visitor journey, period comparison and CSV export. See pricing.

FAQ

Do I need a paid plan to use the API or MCP?

No. You need a TagWorks account and a personal API key. Your plan's link limit still applies.

Can I deploy a whole project folder?

No. TagWorks publishes one HTML file and the images it uses. For multi-page apps or anything with a backend, use a full hosting platform.

Where should I keep my API key?

In an environment variable or your client's secret settings. If a key is exposed, delete it in the dashboard and create a new one.

Give your page a link

Free forever for your first link. No card needed.

Start free