---
title: Connect VS Code to HTMLAnnotate · HTMLAnnotate Docs
url: https://htmlannotate.com/docs/mcp/vs-code
description: Add the HTMLAnnotate MCP server to VS Code for Copilot Chat in agent mode, with one command or an mcp.json file.
---

# Connect VS Code

Add HTMLAnnotate to VS Code so Copilot Chat, in agent mode, can share pages and fix comments.

## 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

```
code --add-mcp '{"name":"htmlannotate","type":"http","url":"https://mcp.htmlannotate.com"}'
```

2.

Or add it to `.vscode/mcp.json` in your project:

.vscode/mcp.jsonCopy

```
{
"servers": {
"htmlannotate": { "type": "http", "url": "https://mcp.htmlannotate.com" }
}
}
```

3.

Start the server from the MCP view, then ask Copilot Chat in agent mode to share a page.

## Connect and sign in#

1.

Run this in your terminal:

TerminalCopy

```
code --add-mcp '{"name":"htmlannotate","type":"http","url":"https://mcp.htmlannotate.com/account"}'
```

2.

Start the server from the MCP view. VS Code asks you to sign in: allow it.

3.

Sign in on htmlannotate.com and press **Allow**.

## 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/vs-code.md)  · Something unclear? [Tell us](https://htmlannotate.com/help#contact)
