Skip to main content
Glama

website-mcp — Website to Deterministic MCP Tool

Explore a site once. Replay it forever, free.
Claude Code writes and tests a script for a site task, saves it as an MCP tool, and from then on it runs with no model in the loop.

License: MIT TypeScript MCP npm

You type /website-mcp:mint <task> on <site>. Claude explores the site, writes a script, proves it against test cases, gets it reviewed, and saves it as a tool. After that the tool is a plain file: it runs instantly, costs nothing, and gives the same answer shape every time.

The map

I want to…

Tool kind

What it is

Read a public site unattended

Browser tool (src/browser/)

Runs in a fresh Playwright browser, blocked from any origin outside the tool's allow-list

Read or fill a signed-in site

Page tool (extension/)

Runs inside a tab of your own Chrome, after you allow the site and approve the tool version

Change something on a site

Write tools (authoring/writes.md)

Rehearsal by default; page tools never press the final Save, you do

Swap the minter

Model seam (docs/model-seam.md)

The interfaces a local model or API would implement

Related MCP server: agentic-browser-mcp

Quick start

Needs Node 22+ and Claude Code. Chrome is the supported browser for page tools.

npm install && npm run build
claude plugin marketplace add .
claude plugin install website-mcp@website-mcp
  1. Mint a tool — in Claude Code run /website-mcp:mint <what to read> on <site url>; pick "browser" for public sites.

  2. Run it anywhere — node dist/cli.js run <name> --input '{"q":"..."}' from the checkout (or npm link once, then plain website-mcp run …), or call it as an MCP tool. Below, website-mcp means either form.

The local marketplace above loads the checkout in place. A marketplace added from a GitHub URL has no dist/: set WEBSITE_MCP_ALLOW_NPX=1 (runs the published npm package) or WEBSITE_MCP_ROOT (path to a built checkout). Details in plugin/README.md.

Browser tools work now. Page tools need one more setup, below. That's it for the basics; everything below is detail.


Demo

A real run of a published browser tool, books_by_category, minted against the public scraping sandbox books.toscrape.com. No model is involved in either command.

$ website-mcp test books_by_category
case                  result  ms     error
first_page            PASS    3531
two_pages             PASS    4819
later_page            PASS    3601
single_page_category  PASS    3019
past_the_end          PASS    2294
unknown_category      PASS    2025
blank_category        PASS    2
too_many_pages        PASS    2

8/8 passed (100%); bar: >=3 cases and >=70% -> OK

$ website-mcp run books_by_category --input '{"category":"Travel","maxPages":1}'
{
  "category": "Travel",
  "pages": 1,
  "stopped": "max_pages",
  "rows": [
    { "title": "It's Only the Himalayas", "price": "£45.17", "availability": "In stock" },
    { "title": "Full Moon over Noah’s Ark: An Odyssey to Mount Ararat and Beyond", "price": "£49.43", "availability": "In stock" },
    …11 rows in all
  ]
}

Page tools setup (your own Chrome)

Page tools run in your real, signed-in tab, so they need the extension and a native-messaging bridge.

  1. Load the extension — open chrome://extensions, turn on Developer mode, choose "Load unpacked" and pick the extension/ folder.

  2. Allow User Scripts — on the extension's details page, turn on Allow User Scripts. Without it the extension cannot run tool code.

  3. Install the bridge — node dist/cli.js bridge install --browser chrome (or website-mcp bridge install … after npm link), then restart Chrome.

  4. Check — website-mcp bridge status should report the host installed and the extension connected.

  5. Grant and approve — in the extension popup, click Allow this site for each site, and Approve for each tool version. Changing a tool's code asks again.


Draft, test, publish

Minting goes through a draft folder, never straight into tools/:

  1. save_tool writes the draft tool.json and tool.mjs.

  2. save_cases writes at least 3 cases, including an empty and an invalid_input one.

  3. test_tool runs them through the normal runtime, no model.

  4. publish_tool re-checks a staged copy and publishes only if the bar is met: at least 70% of cases pass, valid schemas, no secret-shaped literals, no URL outside the allow-list, and a declared effect.

The previous version moves to .history/<n>/. Commands: serve, list, run, test [--draft], review, publish, bridge install|status|uninstall.


Safety

A page tool is model-written code running in your signed-in tab, so read docs/safety.md. In short: the static scan is not a sandbox; what protects you is the per-site grant, the per-version approval bound to the executed code, the explore window, and, for writes, you pressing the final button. The page also covers site terms and what is and is not a boundary.

Heads up: a tool you mint acts as you. Check a site's terms before pointing a tool at it.


Status

Phases 1 to 8 are built and published as website-mcp on npm (see CHANGELOG.md). Not yet: a Chrome Web Store listing, a local-model minter, auto-repair.

License

MIT, see LICENSE.

Acknowledgements

  • Pomerado — the mint, test, then replay-without-a-model loop and the test bar for publishing (MIT; ideas, see docs/prior-art.md)

  • WebMCP — the idea of tools that run inside your own signed-in browser tab (ideas only, no code)

  • Playwright and the MCP TypeScript SDK — the browser engine and the protocol layer

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables MCP clients to automate a real Chrome browser via Playwright, supporting session sharing and tools for navigation, clicking, typing, and more.
      11
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables browser automation through MCP with native Playwright operations, deterministic assertions, and natural-language grounded actions, structured extraction, and bounded agent workflows over live page elements.
      13
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents and MCP hosts to drive a persistent headless Chromium browser through Playwright, navigating pages, mapping visible fields and actions, clicking, typing, scrolling, and capturing screenshots via stdio tool calls. It also powers a local AI Test Studio dashboard that generates and runs structured end-to-end test plans with assertions, per-step timing, and screenshot evidence.
      4
      1
      MIT