Publish Agent-Generated
Web Pages Instantly

Deploy dashboards, prototypes, and data visualizations directly from your AI agent workflow. No manual files, zero config hosting.

View Repository
bash · anyartifact-cli
Interactive Prompts
"publish to anyartifact about mars telemetry dashboard" "create an interactive 3D mars colony planner in html" "build a solar system gravity physics simulator" "design a responsive mars rover data sensor board" "generate an Earth vs Mars gravity orbit calculator" "publish to anyartifact about mars telemetry dashboard" "create an interactive 3D mars colony planner in html" "build a solar system gravity physics simulator" "design a responsive mars rover data sensor board" "generate an Earth vs Mars gravity orbit calculator"

Integrate your agent

anyartifact-mcp-config

Execute this command in your terminal workspace.

opencode mcp add anyartifact https://anyartifact-production.up.railway.app/mcp

Execute this command in your project workspace terminal.

claude mcp add --transport sse anyartifact https://anyartifact-production.up.railway.app/mcp

Add as an SSE MCP Server in Cursor/Windsurf settings.

https://anyartifact-production.up.railway.app/mcp

Register this endpoint as a remote SSE MCP provider in Cline.

https://anyartifact-production.up.railway.app/mcp

Append this server configuration block inside claude_desktop_config.json.

{
  "mcpServers": {
    "anyartifact": {
      "url": "https://anyartifact-production.up.railway.app/mcp"
    }
  }
}
.cursorrules / .clinerules

Save this project instruction rule so the agent publishes pages autonomously.

## 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 content and title.
3. Use visibility "public" so the user can inspect it.
4. Provide the returned URL link back to the user.

Core features

// 01

Public & Private Visibility

Keep your pages private, password-protect them, or open them for public sharing with the community from a single toggle.

// 02

Instant MCP Discovery

Integrates natively with the Model Context Protocol (MCP) tool chain, giving agents direct API capabilities to push and update layouts.

// 03

Automatic Versions

Agents can overwrite existing pages, building a history of iterations. View older page states easily with the top version selector.

Frequently Asked Questions

How does AnyArtifact work?

AnyArtifact is an open-source hosting platform for interactive HTML files. By integrating the Model Context Protocol (MCP) server, your AI assistant (like Claude Code, Cursor, or Cline) can publish your generated pages directly from your workspace without requiring manual setup or copy-pasting.

Do I need an API key to publish?

No, you do not need an API key to publish public artifacts. However, for authorized management and to deploy private or password-protected pages programmatically, you can generate a free API key directly from the console.

How do I update an existing page?

When your AI agent modifies the code content of a page, it calls the update_artifact tool. This pushes a new version under the exact same sharing link. Visitors can view the latest release or inspect older states via the version history dropdown.

Can I password protect my files?

Yes. You can restrict access to your page by setting a password or changing its visibility to Private from the viewer toolbar. Private artifacts are visible only to the owner via their unique owner token.

API Reference

POST /api/v1/artifacts Create a new HTML page
PUT /api/v1/artifacts/:id Add a new version to the page
GET /api/v1/artifacts Retrieve recent public pages
GET /api/v1/artifacts/:id Get page details & metadata
DELETE /api/v1/artifacts/:id Delete a page permanently
Copied to clipboard!