# Connect with MCP

Connect your agent to artifact.cafe without installing the CLI.



MCP lets your agent publish artifacts, read feedback, and use other artifact.cafe tools without a shell. Connect to `https://artifact.cafe/mcp` with Streamable HTTP. You need an artifact.cafe account.

Use the [CLI](/docs/cli) to publish a local folder with images or other binary files, or to wait for new comments. Use MCP to publish text files from a chat or to work with artifacts from your agent.

## ChatGPT

Use ChatGPT on the web. Your ChatGPT plan and workspace permissions control whether you can add a custom MCP server and use write tools. Some plans let you use only read tools from a custom MCP server.

1. Open **Plugins** in ChatGPT.
2. Select &#x2A;*+**, then select **Add custom MCP server**.
3. Name the server `artifact.cafe` and enter `https://artifact.cafe/mcp` under **Connection**.
4. Choose OAuth for authentication.
5. Review and accept the risk warning.
6. Select **Create as a plugin**.
7. When ChatGPT asks you to connect, sign in to artifact.cafe.
8. Review the [permissions and workspaces](/docs/mcp-permissions) on the consent page before you approve access.
9. Install the plugin if ChatGPT offers that option.
10. In a new chat, type `@` and select the plugin.

If ChatGPT shows **Apps** instead of **Plugins**, follow the legacy setup in [OpenAI's connection guide](https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt). If you cannot add a server, ask your ChatGPT workspace admin to check your permissions.

## Claude

On an individual Pro or Max plan, add the connector from Claude on the web:

1. In Claude on the web, open **Customize > Connectors**.
2. Select **+ Add > Add custom connector**.
3. Name it `artifact.cafe` and enter `https://artifact.cafe/mcp`.
4. Select **Continue** and review the authentication settings.
5. Select **Continue**, then choose **Sign in now** under **Authentication**.
6. Under **OAuth client**, choose Claude's published identity.
7. Select **Add** and sign in to artifact.cafe when prompted.
8. Review the [permissions and workspaces](/docs/mcp-permissions) before you approve access.
9. In your chat, open **+ > Connectors** and enable `artifact.cafe`.

On a Team or Enterprise plan, ask your organization owner to add the connector. Then select **Connect** next to it in **Customize > Connectors**. See [Claude's connector guide](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) for organization setup.

## Use an API key

1. Sign in to artifact.cafe.
2. Open **Settings > API keys** in the dashboard.
3. Create an account API key that starts with `ack_`.
4. Set `ARTIFACT_CAFE_API_KEY` in the environment that starts Claude Code, Codex, or Cursor.

Keep the key in the environment. Do not paste it into a chat or store it in a repository. An API key has [no workspace limit](/docs/mcp-permissions#select-workspaces).

### Claude Code

Add `artifact-cafe` to `mcpServers` in `.mcp.json` in your project. If the file does not exist, create it with this content:

```json
{
  "mcpServers": {
    "artifact-cafe": {
      "type": "http",
      "url": "https://artifact.cafe/mcp",
      "headers": {
        "Authorization": "Bearer ${ARTIFACT_CAFE_API_KEY}"
      }
    }
  }
}
```

Start Claude Code in that project. Open `/mcp` to check the connection.

### Codex

Register the server from your terminal:

```sh
codex mcp add artifact-cafe --url https://artifact.cafe/mcp --bearer-token-env-var ARTIFACT_CAFE_API_KEY
```

Start Codex from the environment where you set the key.

### Cursor

Use an account API key for Cursor. Add `artifact-cafe` to `mcpServers` in `~/.cursor/mcp.json`. If the file does not exist, create it with this content:

```json
{
  "mcpServers": {
    "artifact-cafe": {
      "url": "https://artifact.cafe/mcp",
      "headers": {
        "Authorization": "Bearer ${env:ARTIFACT_CAFE_API_KEY}"
      }
    }
  }
}
```

Start Cursor from the environment where you set the key.

## Try a prompt

Start with a read to check the connection. Paste one prompt into your agent:

> Use artifact.cafe to list the workspaces and folders you can access.

> List the open comment threads on artifacts I manage. Give me the artifact title and version for each thread.

> Get the artifact.cafe design guide. Publish a sample report with a heading and one paragraph in my Personal workspace. Give me the review link and tell me what the check found.

> Propose setting a password on the sample report. Give me the approval link so I can enter the password there.

See the [MCP tool reference](/docs/mcp-tools) for arguments, results, and limits.

## Disconnect

* **OAuth:** In artifact.cafe, open **Settings > Security > MCP** and select **Disconnect** next to the app. This stops new calls but does not cancel a call in progress.
* **API key:** In artifact.cafe, open **Settings > API keys** and revoke the key. Remove the server from your agent settings if you no longer need it. Revoking a key stops each client that uses it.

## Troubleshoot

| What you see                                                                                | What to do                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ChatGPT says **No tools available for this app**.                                           | If the app already appears in **Settings > Security > MCP**, disconnect it there. Connect the app and finish the artifact.cafe consent step. Select the plugin in your chat before you retry.                                       |
| In Claude, sign-in to artifact.cafe does not start, or Claude reports a registration error. | Edit the connector. Under **OAuth client**, select Claude's published identity. The server does not accept automatic registration.                                                                                                  |
| The tool says `unauthorized`.                                                               | For OAuth, disconnect the app in **Settings > Security > MCP** if it appears there. Then connect it again. For an API key, check for `ack_` at the start of the key. Check that your agent starts with `ARTIFACT_CAFE_API_KEY` set. |
| The tool says `forbidden`.                                                                  | Check your [MCP permissions](/docs/mcp-permissions#choose-permissions). For a write, check that you manage the artifact.                                                                                                            |
| The tool says `workspace_not_selected`, or a workspace is missing.                          | Check the app's [workspace selection](/docs/mcp-permissions#select-workspaces). To add a workspace, disconnect the app in **Settings > Security > MCP**. Then connect it again.                                                     |
| Your agent cannot find an artifact.                                                         | Open it in the browser with the same account.                                                                                                                                                                                       |
| A publish times out before you get a link.                                                  | Ask your agent to retry with the same arguments. See [publish retries](/docs/mcp-tools#publish_artifact).                                                                                                                           |
| The tool says `rate_limited`.                                                               | Wait for the number of seconds in `retryAfter` before you retry.                                                                                                                                                                    |
