Publish HTML over MCP from any client
One self-contained HTML document in, one share link out. Prefer OAuth when the client supports browser consent (Claude Code, Codex, Cursor-class); use a bearer publisher key for clients that only send a custom Authorization header. Once you allow the tool, the agent publishes and hands you the link. Readers of a public link can comment without an account by default; the agent reads comments with get_feedback and answers with reply_to_feedback.
Updated
What this does
Artifact Publisher is an MCP server that publishes one self-contained HTML document and returns a stable link. By default the link is public: anyone who has it can open the page in a browser, with no account. The endpoint is https://app.artifactpublisher.com/mcp over streamable HTTP (POST). Prefer OAuth browser consent when the client supports it; otherwise send Authorization: Bearer <publisher key>. Claude Code and Codex readers: see the Claude Code andCodex guides, or Connect with OAuth.
Before you start
- An account. Sign in at your dashboard, create the workspace and copy the publisher key. It is shown once, and only a hash is stored, so a lost key is replaced rather than recovered.
- An MCP client that can send a custom
Authorizationheader. - One HTML document of up to 10 MiB of UTF-8 (25 MiB on the Max plan), with all CSS, scripts, images and data inline.
Connect your client
Use <your-key> as the placeholder below and keep the real key out of prompts, repositories and artifacts. The Cursor, Codex CLI and Windsurf snippets read the key from an environment variable:
export ARTIFACT_PUBLISHER_KEY=<your-key>Claude Code
claude mcp add --transport http artifact-publisher https://app.artifactpublisher.com/mcp \
--header 'Authorization: Bearer <your-key>'Cursor
In ~/.cursor/mcp.json, or .cursor/mcp.json in a project:
{ "mcpServers": { "artifact-publisher": {
"url": "https://app.artifactpublisher.com/mcp",
"headers": { "Authorization": "Bearer ${env:ARTIFACT_PUBLISHER_KEY}" } } } }Codex CLI
In ~/.codex/config.toml, which the Codex IDE extension and the ChatGPT desktop app share:
[mcp_servers.artifact-publisher]
url = "https://app.artifactpublisher.com/mcp"
bearer_token_env_var = "ARTIFACT_PUBLISHER_KEY"VS Code and Copilot
In .vscode/mcp.json. VS Code prompts for the key:
{ "inputs": [{ "type": "promptString", "id": "ap-key", "description": "Artifact Publisher key", "password": true }],
"servers": { "artifact-publisher": { "type": "http",
"url": "https://app.artifactpublisher.com/mcp",
"headers": { "Authorization": "Bearer ${input:ap-key}" } } } }Windsurf
In mcp_config.json, opened from the Cascade panel:
{ "mcpServers": { "artifact-publisher": {
"serverUrl": "https://app.artifactpublisher.com/mcp",
"headers": { "Authorization": "Bearer ${env:ARTIFACT_PUBLISHER_KEY}" } } } }Claude Desktop uses a custom connector with a request header; the quickstart has the steps and notes that request headers are in beta and not on every account. Artifact Publisher for ChatGPT is in review with OpenAI. Until it's listed, ChatGPT Plus and higher plans can add it as a custom MCP server with this URL, https://app.artifactpublisher.com/mcp, and sign in with OAuth. The ChatGPT desktop app also reads the same Codex configuration file as above.
Publish your first page
Ask the agent to call publish_artifact with title and html. A minimal document:
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Status</title>
<style>body{font:16px system-ui;margin:2rem}</style></head>
<body><h1>Status</h1><p>Build passed.</p></body>
</html>The result includes the share link in url (https://app.artifactpublisher.com/artifact/<slug>), the version and the access policy. Optional arguments are summary,expires_at, comments_enabled, visibility and allowed_emails.
Update in place
update_artifact keeps the same link and adds a new immutable version. Pass expected_versionequal to the current version, so two writers cannot overwrite each other without noticing. Earlier versions stay readable at their pinned URLs.
Tools at a glance
| Tool | Scope | Does |
|---|---|---|
publish_artifact | artifacts:write | Publish HTML as version 1 and return the link |
update_artifact | artifacts:write | Keeps the same link; adds a version, or renames |
set_artifact_access | artifacts:write | Change access without a new version |
revoke_artifact | artifacts:write | Stop serving the artifact |
list_artifacts | artifacts:read | List workspace artifacts with unresolved comment counts |
get_feedback | feedback:read | Read comments, pinned to a version |
reply_to_feedback | feedback:write | Reply in a comment thread |
The MCP integration page is the reference and lists every tool, including the ones not shown here.
Control access and take a page down
set_artifact_access switches visibility between public (default),private and allowlist; unlisted still works as an alias of public. allowlist takes up to 50allowed_emails, and those recipients need an Artifact Publisher account. revoke_artifactstops serving the page. It cannot recall a copy someone already saved.
Comments and feedback
Comments are optional. Readers can comment on the whole page or on a selected passage. Your agent reads them withget_feedback and answers with reply_to_feedback. Feedback is pull-only: there are no webhooks.
Limits
- A personal workspace holds 5 active artifacts and 50 versions across them. At a limit, publishing returns a
quota_exceedederror foractive_artifacts, and publishing or updating returns one forversions, each with the number in use and the limit. Revoke an artifact or let it expire to free its slot, its versions and its storage bytes. Content we retain after deletion is capped at a multiple of the storage allowance, and past that publishing returns aquota_exceedederror forretained_storage. - The page runs in a sandboxed iframe with no network access, so remote fonts, images and APIs do not load.
- A public link is not authenticated. Anyone with the link can open it.
- Without a key,
initialize,tools/listandpingwork, with a 16 KiB body limit and 60 calls per minute per client. Everytools/callneeds the key. - Data is stored in Cloudflare's EU jurisdiction, and requests can be processed outside the EU on the way. Sign-in runs inside our own Worker, with accounts stored in the EU. Clerk, a US company and our sign-in provider until 2026-10-17, still holds the sign-in data of accounts created before then until we close that instance. See the privacy policy.
- No compliance certification, audit or penetration test is claimed.