Publish content from Claude Code and get a temporary, shareable URL.
pubthis takes markdown, HTML, documents, and images — and gives you a link that expires in 7 days. No accounts, no auth, no config. Just content in, URL out.
You: "share this report as a link"
Claude: I've published your report.
https://pubthis.co/a/01JABCDEFG
Expires in 7 days. Anyone with the link can view it.
claude plugin install pubthisThis gives you the publish MCP tool and a /pub slash command.
claude mcp add pubthis -- npx -y @pubthis/mcp-serverOr add it to your project's .mcp.json:
{
"mcpServers": {
"pubthis": {
"command": "npx",
"args": ["-y", "@pubthis/mcp-server"]
}
}
}Download CLAUDE.md into your project root. Claude Code will read it automatically and use pub directly — no MCP server or plugin required.
Once installed, just ask naturally:
- "Share this as a link"
- "Publish this report"
- "Give me a URL for this analysis"
You can also use the /pub slash command directly. Claude figures out the content type, formats it, publishes it, and hands you the link.
| Type | Notes |
|---|---|
| Markdown | Default. Reports, docs, specs. |
| HTML | Previews, prototypes. Sandboxed. |
| Plain text | Logs, raw output. |
| Screenshots, documents. | |
| PNG / JPEG / WebP | Images, diagrams. |
| Limit | Value |
|---|---|
| Max payload | 10 MB |
| Max TTL | 7 days |
- Artifacts are public. Anyone with the link can view them.
- Artifacts are immutable. No edits — publish a new one.
- Never publish secrets. No API keys, tokens, passwords, or credentials.
- Links expire. Default and max TTL is 7 days.
pubthis is open source. To run your own instance:
git clone https://github.com/coreyrab/pubthis.git
cd pubthis
npm install
npm run devSet PUB_BASE_URL to your domain. To point the plugin at your instance:
claude mcp add pubthis -e PUBTHIS_API_URL=http://localhost:3000 -- npx -y @pubthis/mcp-servernpm testMIT