browsewiz
Official# BrowseWiz MCP
`@browsewiz/mcp` connects [Claude Code](https://www.anthropic.com/claude-code) to the [BrowseWiz](https://browsewiz.com) browser extension. Claude Code starts it as a local MCP server named `browsewiz`, the BrowseWiz extension connects to it, and Claude Code gets BrowseWiz's tools:
- **Google Sheets**: list, create and delete spreadsheets; add, rename and delete worksheets; read, find, append, insert, update, upsert and delete rows; set column types and format cells (the BrowseWiz Spreadsheet tools).
- **Google Calendar**: create, search, update and delete events in the BrowseWiz calendar.
- **Browser**: open, navigate and list tabs in the BrowseWiz Tabs group, hand a task to the BrowseWiz browser agent (`browsewiz_browse`), or run a whole BrowseWiz chat on a tab (`browsewiz_chat`).
- **`browsewiz_status`**: whether the extension is connected, its version, whether you are signed in, and which toolsets are switched on.
Claude Code gets a toolset only while its switch is on in BrowseWiz, and the list follows the switches as you change them.
This package does nothing on its own: it needs the BrowseWiz extension for Chrome or Edge, running in your browser. The full guide is at **[browsewiz.com/docs/chat-plugins-and-tools/claude-code](https://browsewiz.com/docs/chat-plugins-and-tools/claude-code)**.
## Set it up
You need [Node.js](https://nodejs.org/) 20 or later.
1. Install the [BrowseWiz extension](https://browsewiz.com).
2. In BrowseWiz, open **Options → Tools → Claude Code** and turn on **Connect Claude Code**. BrowseWiz creates a connection token and shows the setup command.
3. Copy the command and run it in a terminal:
```sh
claude mcp add browsewiz -e BROWSEWIZ_TOKEN=<your token> -- npx -y @browsewiz/mcp
```
4. Restart Claude Code. Within about 30 seconds the Claude Code section in BrowseWiz shows **Connected**. Ask Claude Code "is BrowseWiz connected?" to check from its side.
Before Claude Code can use the Sheets or Calendar tools, give BrowseWiz access to Google in Options → Tools. Before it can use the browser tools, click **Grant tab access** in the Claude Code section if it is shown.
`browsewiz_browse` and `browsewiz_chat` use BrowseWiz's models and your BrowseWiz credits, so you need to be signed in to BrowseWiz in the side panel. The tab tools (`browsewiz_open_tab`, `browsewiz_navigate`, `browsewiz_list_tabs`) use no model and no credits.
### Configuration
| Variable | Required | Description |
| --- | --- | --- |
| `BROWSEWIZ_TOKEN` | yes | The connection token shown in BrowseWiz Options → Tools → Claude Code. |
| `BROWSEWIZ_BRIDGE_PORT` | no | The port to listen on, 1 to 65535. Defaults to 47391, the port the extension connects to; only tests change it. |
## How it works
The bridge speaks MCP over stdio with Claude Code. It listens for a WebSocket on `127.0.0.1` only, on port 47391. The BrowseWiz extension connects there, and the bridge accepts it only if:
- the request's `Origin` is a `chrome-extension://` origin, so web pages can't connect, and
- its first message carries the token from `BROWSEWIZ_TOKEN`, compared in constant time.
The bridge then passes Claude Code's tool calls to the extension, which runs the same tool functions BrowseWiz chat runs, and returns their results. The connection doesn't go through BrowseWiz's servers; only `browsewiz_browse` and `browsewiz_chat` runs do, as the browser agent and chat do in the side panel.
Only one Claude Code session can hold the port at a time. Another session's bridge still answers MCP, and `browsewiz_status` reports that the port is in use.
## Keep your token safe
Claude Code keeps the token in its MCP settings in plain text. Anyone with the token and access to your computer could connect to your extension in Claude Code's place, so don't share the setup command. **Reset token** in Options → Tools → Claude Code makes a new token; the old one stops working at once.
If you allow every `mcp__browsewiz__*` tool in Claude Code, it can delete rows, worksheets, spreadsheets and events, and run browser tasks, without asking you. Data the tools read goes to Claude Code and its AI provider.
## Development
```sh
npm ci
npm test # type-checks, builds dist/index.js and runs the tests
```
The tests start the built bridge and a fake extension on free ports; they need no BrowseWiz account.
This repository mirrors the bridge's source from the BrowseWiz monorepo, where it is developed, and is updated with each release.
## License
[MIT](LICENSE)
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its purpose (reporting extension connection, version, sign-in state, and enabled feature toggles) is clearly stated.
The single name `browsewiz_status` is snake_case, readable, and server-prefixed, which is sensible. With only one tool there is no established verb_noun pattern to verify against, so it falls just short of a 5.
A one-tool surface is far too thin for a server whose description implies a browser extension with agent, spreadsheet, and calendar capabilities. The lone status probe cannot accomplish any actual browsing work.
The tool only reports connectivity and feature flags; none of the advertised capabilities (browser agent, spreadsheet, calendar) are exposed as callable operations. An agent can diagnose the extension but cannot do anything with it.