Connect your AI
Add Open Artifact as an MCP server in your AI client. Your AI can then create artifacts, read their saved state, and update them.
Add the server URL
| Setting | Value |
|---|---|
| Name | open-artifact |
| Transport | Streamable HTTP |
| Local URL | http://localhost:3000/mcp |
| Hosted URL | https://YOUR-SERVER/mcp |
Use the local URL when the client and server run on the same computer. A cloud-hosted client needs a public HTTPS address.
Connect the server. Your client opens a browser sign-in page: enter your admin username and password, then approve the connection. Most clients return automatically. If your client asks for a code, copy the one-time code back into its terminal.
No API key or Authorization header is needed for clients that support MCP OAuth. Names and steps differ between clients; choose HTTP and browser authentication in its MCP settings.
For clients that accept this JSON format:
{
"mcpServers": {
"open-artifact": {
"url": "http://localhost:3000/mcp"
}
}
}Reconnect if needed. You should see tools such as create_artifact and get_artifact.
Clients that launch a local process
The local installation includes a terminal connector. Sign in once:
~/.local/bin/open-artifact login http://localhost:3000Use your hosted server’s HTTPS address instead if needed. The command opens your browser. Sign in, approve the connection, and paste the one-time code into the terminal. The connector keeps its login in an owner-only file and refreshes it automatically.
Then set the MCP command in your client to the absolute path of ~/.local/bin/open-artifact, with arguments mcp and your server address. For example:
{
"mcpServers": {
"open-artifact": {
"command": "/home/YOUR-USER/.local/bin/open-artifact",
"args": ["mcp", "http://localhost:3000"]
}
}
}On macOS, the path starts with /Users/YOUR-USER/. With a source checkout, use node scripts/mcp-login.mjs SERVER-URL to sign in and node scripts/mcp-stdio.mjs SERVER-URL as the MCP command. Node.js 24+ is required for a source checkout.
Disconnect a client
Open Connected clients in the artifact library and select Disconnect. Access stops immediately. Changing the server’s admin login also signs out all connected clients.
A connected AI has owner access to all artifacts, including their saved data and sharing controls. Only approve connections you started.
Create your first artifact
Use Open Artifact to build a simple shared reading list. Let me add books and mark them as finished. Save changes, make it work on my phone, and give me the link.
Open the link, make a change, and reload to check that it stayed. Then try: “Make the buttons green and add a tab for finished books.”
To invite someone, use the artifact’s Share button or ask your AI to create a share with their name. Send them the link and its separate access code.
Troubleshooting
Check the URL and confirm the server is running. A local server cannot be reached by a cloud client; use a public deployment for that.
For clients without browser authentication, use the terminal connector above. A static ARTIFACT_API_TOKEN remains available as an optional advanced setting: configure a random token of at least 32 characters on the server, then supply Authorization: Bearer YOUR_TOKEN in the client. Keep it private; it grants owner access.