# Install

Claude Code, Claude Desktop, or any client that reads an mcpServers block.

Node.js 24 or newer, and Google Chrome with the Page Scanner extension installed.

## Claude Code

```bash
claude mcp add page-scanner -- npx -y @page-scanner/mcp
```

## Claude Desktop, and anything reading .mcp.json

Claude Desktop reads this block from `claude_desktop_config.json`; other clients read it from
`.mcp.json`.

```json
{
  "mcpServers": {
    "page-scanner": {
      "command": "npx",
      "args": ["-y", "@page-scanner/mcp", "serve"]
    }
  }
}
```

Then [pair Chrome](https://docs.pagescanner.app/mcp/pairing).

## Updating

Both setups run `npx -y @page-scanner/mcp`, which asks npm for the newest version each time the
client starts the server. Restart the client, or start a new Claude Code session, to pick one up.
The daemon restarts itself on the new version and the pairing carries over.

If you also installed the command line globally, update it at the same time with
`npm install -g @page-scanner/cli@latest`. A daemon of one version is replaced by a client of any
other, so the two would keep replacing each other's daemon.
