Free interactive web page hosting for any AI agent workflow
anyartifact-production.up.railway.app
AnyArtifact is a free hosting platform where any AI assistant (Claude Code, Cursor, Cline, etc.) can publish interactive HTML artifacts (dashboards, prototypes, maps) instantly. No signups required for viewing, and fully integrated with the Model Context Protocol (MCP).
- 🚀 Zero Config Hosting - Instant deployment of sandboxed HTML content
- 🔌 Model Context Protocol (MCP) - Direct connection to Claude Code and Cursor
- 📱 Viewport Simulator - Test designs inside Desktop, Tablet, and Mobile viewport frames
- 📝 Version History - AI agents can overwrite previous pages to create version tracks
- 🔒 Visibility Controls - Toggle between Public, Private (token-based), or Password-Protected
- ⚡ Optimized Engine - Built with Hono, TypeScript, and compiled Node.js for zero cold starts
Here is how AnyArtifact handles publishing from your terminal or AI workspace:
$ opencode mcp add anyartifact https://anyartifact-production.up.railway.app/mcp
✔ Connected to MCP registry successfully.
# Ask your agent: "Create a Mars Colony telemetry dashboard and host it."
# The agent autonomously executes:
$ anyartifact publish ./mars_dashboard.html --title "Mars Colony"
Analyzing code layout...
Resolving local script bundles...
Uploading to AnyArtifact server...
✔ Artifact "Mars Colony" uploaded successfully (v1.0.0)
⚡ Live URL: https://anyartifact-production.up.railway.app/share/mars-colonyAdd AnyArtifact as a tool to your AI agent of choice:
OpenCode:
opencode mcp add anyartifact https://anyartifact-production.up.railway.app/mcpClaude Code:
claude mcp add --transport sse anyartifact https://anyartifact-production.up.railway.app/mcpCursor / Windsurf:
Add as an SSE MCP Server inside settings pointing to:
https://anyartifact-production.up.railway.app/mcp
Add the following rule to your .cursorrules or .clinerules to let the agent auto-deploy:
## AnyArtifact Integration
When creating interactive HTML artifacts (charts, dashboards, visualizations, reports, or web pages), use the AnyArtifact MCP tools to publish them.
MCP Server: https://anyartifact-production.up.railway.app/mcp
Tools: publish_artifact, update_artifact, get_artifact, list_artifacts
Workflow:
1. Generate the HTML content.
2. Call publish_artifact with the code and title.
3. Use visibility "public" so the user can view it.
4. Return the deployment URL to the user.| Method | Endpoint | Auth | Description |
|---|---|---|---|
POST |
/api/v1/artifacts |
✅ | Publish a new HTML page |
PUT |
/api/v1/artifacts/:id |
✅ | Push a new version to the page |
DELETE |
/api/v1/artifacts/:id |
✅ | Delete a page permanently |
GET |
/api/v1/artifacts |
❌ | Retrieve recent public pages |
GET |
/api/v1/artifacts/:id |
❌ | Get page details & versions |
| Method | Endpoint | Description |
|---|---|---|
GET |
/mcp/tools |
List available MCP tools |
POST |
/mcp/tools/call |
Execute a tool |
- Node.js >= 20.0.0
- npm
# Clone the repository
git clone https://github.com/pathakcodes/anyartifact.git
cd anyartifact
# Install dependencies
npm install
# Seed the database and generate local developer keys
npm run db:seed
# Start the development server
npm run dev# Compile and run container
docker build -t anyartifact .
docker run -p 3000:3000 -v ./data:/app/data anyartifact- Revamped UX/UI: Designed a developer-first dark console layout (mimicking Geist/Linear) with grid backdrops and monochrome borders.
- Interactive Prompts: Added a horizontal marquee ribbon featuring click-to-copy Mars example prompts.
- Viewport simulator: Added Desktop, Tablet, and Mobile simulation buttons to preview published pages on various screen dimensions.
- Typing Optimizations: Switched compiler resolution to
NodeNextand resolved type shadowing forsql.js. - Deployment Refactoring: Changed production dockerization to build and run compiled standard Node (
node dist/index.js) instead oftsxwrapper. - DB Bug Fixes: Corrected database migration order where index generations were running before
ALTER TABLEcolumns were created.
- Security & Tokens: Added owner token checks and password-protected visibility mode.
- First Launch: Introduced Hono HTTP API, sql.js backend, and the initial Model Context Protocol SSE server endpoints.