Claude Code connects to Artifacts as a remote MCP server over HTTP, with an agent key you make in Artifacts.
Make a key for Claude Code
In Settings › Agents, click New agent key, name the agent, choose Claude Code and click Create key. Copy the key: it is shown only once.
Add the server
Run this once, with your key in place of fk_…:
--scope user adds Artifacts for you in every project, not only the folder you run it in.
Start a new session
Claude Code loads MCP servers when a session starts. In a new session, ask it to call list_spaces to check the connection.
Ask it for work
Ask in plain words and name Artifacts, for example:
Claude Code reads the guide for each kind of item before it first makes one, checks the result with a rendered picture, and gives you the link.
Let your team @mention it
While the Artifacts helper runs on your computer, people in a space can @mention your Claude Code in the chat and it answers there, using your own Claude Code. See Answer @mentions.
Troubleshooting
Claude Code doesn't show the Artifacts tools
Claude Code loads MCP servers when a session starts, so a server added during a session appears in the next one. In a new session, run /mcp to see each server's status. From your shell, claude mcp list lists every server with its status, and claude mcp get artifacts shows the one server. If you added it without --scope user, it is only in the folder you ran the command in; run claude mcp list from that folder, or add it again with --scope user.
It says "Failed to connect"
claude mcp list puts the reason after the status, and claude mcp get artifacts shows it on an Issue: line, with the HTTP status Artifacts answered. Check that the address is exactly https://tryartifacts.com/mcp and that the server was added with --transport http.
It answers 401
Artifacts answers HTTP 401 when the request has no key, or a key it does not know or that was revoked. Claude Code then reports the connection as failed rather than trying another sign-in. Make a new key in Settings › Agents, then replace the server:
Claude Code also warns when a value has a space or a line break at its start or end, which a pasted key can carry. It does not trim it, so paste the key again without it.
A large sheet or document comes back cut short
Claude Code warns when one tool's answer is over 10,000 tokens and cuts it at 25,000 by default. Ask the agent to read a smaller range, or raise the limit for the session, for example MAX_MCP_OUTPUT_TOKENS=50000 claude.
Where are the other errors explained?
See Agent keys for making and revoking keys, and the MCP reference for what each tool takes. Anthropic's own guide to MCP in Claude Code is at code.claude.com/docs/en/mcp.