PasteHTML — Claude Code MCP server: what it does, how to install
Publishes HTML documents and Markdown pages to pastehtml.dev directly from coding agents. Useful for sharing mockups, design plans, and test reports.
claude mcp add --transport http mcp https://pastehtml.dev/mcpWhat PasteHTML does
This server links your development agent with pastehtml.dev over HTTP. Whenever the model creates markup files up to 2 MB, it uploads them to dedicated subdomains and returns live URLs alongside source inspection pages. Each paste runs on its own isolated origin, allowing local storage and client scripts to work safely.
Communication uses the remote endpoint at https://pastehtml.dev/mcp. You do not need to configure static tokens in project configs: the client authenticates via a browser consent screen through OAuth on initial execution. After granting access, uploads map directly to your account folders and tracking dashboard.
Keep in mind that pastes cannot be deleted once created on the platform. The service only permits in-place overwrites to replace file bytes while preserving the existing link.
What it helps with
- Publish generated HTML mockups directly to an isolated live link
- Update shared web pages in place without breaking existing URLs
- Organize agent-created documentation into specific account folders
- Protect sensitive deployment drafts with a custom password
Example prompts for the agent
- Publish
design-plan.htmlto pastehtml.dev inside the Specs folder - Deploy this HTML preview to pastehtml and protect it with password
testsecret - Update the existing pastehtml link with the latest build output
How to install PasteHTML
Platform CLI: remote server
claude mcp add --transport http mcp https://pastehtml.dev/mcpPlatform CLI: remote server
codex mcp add pastehtml --url https://pastehtml.dev/mcpConfig file
{
"mcpServers": {
"pastehtml": {
"url": "https://pastehtml.dev/mcp"
}
}
}Config file
{
"servers": {
"pastehtml": {
"type": "http",
"url": "https://pastehtml.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http pastehtml https://pastehtml.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about PasteHTML
How to install PasteHTML in Claude Code?
Run claude mcp add --transport http pastehtml https://pastehtml.dev/mcp. Complete the authorization screen inside your browser when prompted.
What does the PasteHTML MCP server do?
It gives coding agents tools to publish HTML or Markdown to pastehtml.dev, organize items across directories, and update live pages.
Can you delete uploaded pastes?
Deletion is not supported on pastehtml.dev. You can overwrite paste contents under the original link, but you cannot destroy published entries.