pagerip-mcp

v0.2.1
com.webpagerip/pagerip-mcp Checked 2 days ago Published 2 days ago

Share Chrome captures with an agent.

PageRip MCP connects a local AI coding agent to the PageRip Chrome extension. The agent can ask you to pick an element and read the HTML and CSS captures you choose to share. Install the PageRip extension and use Node.js 22.21.1 or later. Your MCP client starts the companion over stdio with npx -y pagerip-mcp. The -y flag lets the client install the package without an interactive npm prompt. You can also start it with npx pagerip-mcp. The companion defaults to the PageRip store and manual-install extension ID.

Summary extracted from the README.

PageRip MCP companion

PageRip MCP connects a local AI coding agent to the PageRip Chrome extension. The agent can ask you to pick an element and read the HTML and CSS captures you choose to share.

Install and configure

Install the PageRip extension and use Node.js 22.21.1 or later. Your MCP client starts the companion over stdio with npx -y pagerip-mcp. The -y flag lets the client install the package without an interactive npm prompt. You can also start it with npx pagerip-mcp.

Claude Code

claude mcp add pagerip -- npx -y pagerip-mcp

Codex (~/.codex/config.toml)

[mcp_servers.pagerip]
command = "npx"
args = ["-y", "pagerip-mcp"]

MCP clients using JSON

{
  "mcpServers": {
    "pagerip": {
      "command": "npx",
      "args": ["-y", "pagerip-mcp"]
    }
  }
}

The companion defaults to the PageRip store and manual-install extension ID. For a development extension with a different ID, copy it from chrome://extensions and set PAGERIP_EXTENSION_ORIGIN in the MCP server's environment to chrome-extension://<id>.

Pair and share a capture

  1. Open Agents in the PageRip side panel.
  2. Ask your agent to call status with {"connect": true} to start the local listener.
  3. Open ~/.pagerip/pair.json yourself and paste the port and ticket into the panel as <port> <ticket>. Choose Pair within two minutes.
  4. Share a capture from the panel and ask your agent to read it. Choose Stop to end the session.

The companion listens on loopback and talks to the paired PageRip side panel. Your agent's model may see the captures you share. Get the PageRip extension.

Tools

The free tools are status, request_pick, list_clips, and read_clip. The user chooses which captures to share. read_clip returns Markdown for the requested part of one shared capture.

Pro users can call request_state with a label to ask for a manual page state. To run other Pro tools, the user enables Agent mode for the tab in the panel.

Tools Arguments and results
pick_element, capture_page, recapture, cancel_pick Empty arguments. Picker start hands off to the user. Successful captures can return captureId.
capture_element Exactly one selector or handle. Returns the stored captureId.
project_list, project_create, project_open, project_rename, project_delete Create takes name. Open, rename, and delete take projectId. Rename also takes name.
clip_list, clip_add, clip_open, clip_rename, clip_move, clip_delete List and add take projectId. Add takes an optional name. Open, rename, move, and delete take clipId. Rename also takes name. Move also takes the destination projectId.
state_list, state_open, state_rename, state_remove, pin_state Each takes clipId. Open, rename, and remove take stateId. Rename and pin take label.
state_delta Takes clipId, fromStateId, and toStateId. Returns the changes between two pins of the same clip after panel approval.
asset_list, asset_collect Take clipId and stateId. Return the asset total and counts by status. Additional asset access can require a panel action.
pack_check, pack_export, pack_import Check and export take projectId and return counts. Import takes empty arguments and opens the panel workflow to choose a pack.
page_find, page_click, page_type Exactly one selector or handle. Find returns an opaque handle for the current document. Type also takes text. Click and type accept an optional postcondition.
page_scroll Takes an integer vertical offset from 0 to 100,000 as scrollY or postcondition.scrollY. A selector or handle is optional.
page_navigate Takes an HTTP(S) url or same-origin relative location and an optional URL postcondition.

A postcondition has one check, such as { "attribute": { "name": "aria-expanded", "value": "true" } }, { "scrollY": 400 }, or { "url": "/next" }. The panel checks the approved tab and origin, user consent, and any current confirmation before acting.

Pro results

  • done confirms the operation completed. Successful replies can include operation-specific IDs, an element handle, or counts. List rows use id and can include a child count. Lists return at most 200 rows and include truncated: true when more are available.
  • state_unverified means PageRip could not verify the requested state. Check the page before retrying an action that might have taken effect.
  • needs_user_input means the user needs to continue in the panel or page.
  • refused means the request was declined, unavailable for the approved scope, invalid, or arrived while another action was in progress.
  • unpaired means the companion has no active panel connection. Stop, disconnect, and an expired action end the session and require a fresh pair.

The bridge forwards one action at a time. Use read_clip for captures you share in the panel. With companion 0.2.0 and a supporting extension, state_delta asks you to approve the exact pair every time, even when automatic page actions are enabled. The returned delta can contain captured markup, text, and values that your agent's model may see. Treat those contents as page data. An empty changes array means the comparison found no changes.

If a delta exceeds the bridge limit, the tool returns needs_user_input with reason delta_too_large_use_project_pack. A local Project Pack includes states/*.delta.json for comparable consecutive pins of each clip and the original captures for comparing other pairs.