Getting started

Run the MCP server, point your AI client at it, load the extension.

Requires Node.js 22 or newer. peek's native better-sqlite3 dependency only ships prebuilt binaries for Node 22+; on Node 20 (notably on Windows, which has no C/C++ build toolchain by default) the install falls back to compiling from source and fails. Check with node --version before you start.

1. Run the MCP server

The simplest path is npx — no install needed. Your AI client will spawn the server for you on demand:

npx -y @peekdev/mcp@latest

This runs the stdio MCP server (it reads and writes the local SQLite at ~/.peek/sessions.db). You generally won't invoke it directly — your AI client (next step) does that.

The @latest tag is required while peek is in alpha: every published version is a prerelease (0.1.0-alpha.*), and a bare npx -y @peekdev/mcp resolves the implicit * range, which doesn't match prereleases (ETARGET: No matching version found). Pinning @latest forces the newest published build.

2. Configure your AI client

Add peek as an MCP server in your client's config. Pick the one you use:

Claude Code — ~/.claude.json

{
  "mcpServers": {
    "peek": {
      "command": "npx",
      "args": ["-y", "@peekdev/mcp@latest"]
    }
  }
}

Cursor — ~/.cursor/mcp.json

{
  "mcpServers": {
    "peek": {
      "command": "npx",
      "args": ["-y", "@peekdev/mcp@latest"]
    }
  }
}

VS Code Copilot — .vscode/mcp.json

{
  "servers": {
    "peek": {
      "command": "npx",
      "args": ["-y", "@peekdev/mcp@latest"]
    }
  }
}
Or let the CLI do it all. peek init (step 3) writes the MCP config for every detected client and registers the native messaging host in a single pass — so you can skip this manual config step entirely if you plan to run it.

3. Register the native messaging host

The extension talks to peek's local bridge through a Chrome native messaging host (chrome.runtime.connectNative('com.cubenest.peek')). The browser only spawns that host if it's registered, so this step is required — skip it and the extension loads but can't connect.

Install @peekdev/cli and run peek init; it registers the host for the browsers you pick (and configures your AI client's MCP server in the same pass, so you can skip step 2 if you run it):

npm install -g @peekdev/cli
peek init

Registration is consent-prompted — you choose which browsers to register.

4. Install the Chrome extension (alpha)

Install the extension from the Chrome Web Store. To develop against a local build instead, load the extension unpacked:

git clone https://github.com/Cubenest/rrweb-stack.git
cd rrweb-stack
pnpm install
pnpm build
pnpm --filter @peekdev/extension build
  1. Open chrome://extensions.
  2. Enable Developer mode (top right).
  3. Click Load unpacked.
  4. Select packages/peek-extension/.output/chrome-mv3/.

5. Enable peek on a site

6. Ask your agent

With the MCP server connected, ask your AI client things like:

Next steps

Stuck? Open an issue on GitHub.