---
title: Connect Claude Code to HTMLAnnotate · HTMLAnnotate Docs
url: https://htmlannotate.com/docs/mcp/claude-code
description: Add the HTMLAnnotate MCP server to Claude Code with one terminal command, then share pages and fix client comments from your terminal.
---

# Connect Claude Code

One command adds HTMLAnnotate to Claude Code for every project on your computer. Claude Code can then share the page it's building and fix the comments in your code.

## Before you start#

Pick the address you want (see [Two connectors](https://htmlannotate.com/docs/mcp/connectors) ). If you're not sure, use the signed-in one: pages land in your account and the AI can find them by name later.

| Connector | Address |
|---|---|
| Without an account | `https://mcp.htmlannotate.com` |
| Signed in | `https://mcp.htmlannotate.com/account` |

## Connect without an account#

1.

Run this in your terminal:

TerminalCopy

```
claude mcp add --transport http --scope user htmlannotate https://mcp.htmlannotate.com
```

2.

Start Claude Code. HTMLAnnotate is ready, with nothing to sign in to.

## Connect and sign in#

1.

Run this in your terminal:

TerminalCopy

```
claude mcp add --transport http --scope user htmlannotate https://mcp.htmlannotate.com/account
```

2.

Start Claude Code and run `/mcp`.

3.

Pick **htmlannotate** and choose **Authenticate**. Sign in in the browser and press **Allow**.

Drop `--scope user` to add it to the current project only. In Claude Code, a live website's fixes go into your source code: ask it to read the comments with `get_comments`, change the files, and resolve each comment once it's done.

## Check it works#

Start a new chat and ask:

Try askingShare a simple test page on HTMLAnnotate.

The AI should call `share_html` and give you a review link. Open it and leave a test comment, then ask *What did they say?* to see the comment come back.

Menus in AI apps change from time to time. If a step looks different, look for words like connectors, MCP or custom server. Still stuck? See [Troubleshooting](https://htmlannotate.com/docs/mcp/troubleshooting).

Written by the HTMLAnnotate team · Updated 23 November 2026 · [View as Markdown](https://htmlannotate.com/docs/mcp/claude-code.md)  · Something unclear? [Tell us](https://htmlannotate.com/help#contact)
