Push artefacts to Artefact from Claude (MCP)

Artefact ships a Model Context Protocol server so Claude and other MCP-compatible AI clients can share HTML artefacts for you. Generate an API token, add the server URL, and your AI can create password-protected artefacts, update them, and send them to specific recipients — all without leaving the chat.

To push an artefact from Claude to Artefact: add the Artefact MCP server with your API token — Claude can then create, list, update and share password-protected HTML artefacts on your behalf.

DemoWatch: Connect Claude to Artefact in 60 seconds

What the MCP server can do

The Artefact MCP server exposes five tools to the AI:

  • create_artefact — turn HTML into a password-protected share link.
  • list_artefacts — see what's already been shared.
  • get_artefact — pull back the current HTML of an artefact you own so the AI can edit it in place.
  • update_artefact — edit title, description, or HTML content.
  • delete_artefact — clean up artefacts you no longer need.
  • share_artefact_via_email — send a magic-link invite that bypasses the password for a specific recipient.

Built on the Model Context Protocol

MCP is the open standard behind Claude's tool use. Any client that supports it — Claude Desktop, Claude.ai connectors, Cursor, Continue, and a long list of agent frameworks — can connect to the Artefact server with no extra glue code. Point it at the endpoint, paste your token, done.

Scoped, revocable access

API tokens are tied to a single user account, hashed at rest, and revokable from Settings → API tokens at any time. The AI can only perform the actions you'd be allowed to perform yourself. Guest passwords stay on the server — the model only sees the generated value when it first creates an artefact.

How to connect Claude to Artefact

  1. Create an API token. In Artefact, open Settings → API tokens and generate a personal token. It's scoped to your account and revokable at any time.
  2. Add the MCP server to your client. In Claude Desktop or any MCP-compatible client, add a new server pointing at https://useartefact.com/api/mcp with your token as a Bearer credential.
  3. Ask Claude to share an artefact. Tell Claude what you want — 'turn this HTML into an artefact and email it to alex@…' — and it uses the MCP tools to create the artefact, set a password, and send the invite for you.

Frequently asked questions

What is MCP?+

MCP — the Model Context Protocol — is an open standard for connecting AI assistants to tools and data. The Artefact MCP server exposes the actions you'd normally do in the Artefact dashboard as tools the AI can call directly.

Which clients are supported?+

Anything that speaks MCP. That includes Claude Desktop, Claude.ai connectors, Cursor, and a growing list of agent frameworks. The endpoint is a standard HTTP MCP server.

Where do I get an API token?+

Sign in to Artefact, open Settings → API tokens, and click Create token. Copy the value once — it's hashed in storage and not shown again.

What can the AI actually do?+

Create new artefacts from HTML, list existing artefacts, update titles and content, delete artefacts, and share via email with a magic link. It cannot read guest comments or change billing.

Is it secure?+

Tokens are scoped to a single user, hashed at rest, and revokable from Settings at any time. Guest passwords are never exposed to the model — the AI sees only the share URL and the generated password on creation.

Create an API token

Related