Back to Browse

Frameparse MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

4-layer webpage frames + MCP observe/act for agents. Fewer tokens than raw HTML. CDP refs.

About

4-layer webpage frames + MCP observe/act for agents. Fewer tokens than raw HTML. CDP refs.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

network_websocket

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "frameparse": {
      "command": "npx",
      "args": [
        "-y",
        "frameparse@0.2.0"
      ]
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

FrameParse

M8ven Score

Homepage: https://github.com/RajKavadia/frameparse · Privacy: PRIVACY.md · Install: llms-install.md

Progressive, zero-LLM webpage observations for AI agents — Structure → Text → Interactables → Actions.

Most browser agents still dump megabytes of HTML into context. FrameParse parses a page once (milliseconds, no model calls), returns a compact landmark map first, then lets agents pull only the layers they need via MCP, HTTP, CLI, or the TypeScript library.

git clone https://github.com/RajKavadia/frameparse.git && cd frameparse
npm install && npm run build && npm test
node dist/src/cli.js tests/fixtures/ecommerce.html --layer 1 --stats
npm run visualizer   # http://127.0.0.1:4173 — 3D stack + MCP at /mcp
GoalStart here
Cursor / Claude MCPmcp.json.example → node dist/src/cli.js mcp
Smallest first readframe_open → Frame 1 only (~90–250 tok on fixtures)
Find a fact on the pageframe_query or region-scoped frame_read
Plan a click/fill flowframe_plan → workflows w# + steps (use your browser runner)
After a mutationframe_diff — delta, not full re-parse
Multi-step in one callframe_chain or POST /api/chain

Benchmarks (reproducible): run npm run benchmark — see docs/BENCHMARKS.md. On a synthetic 251 KB SPA fixture: Frame 1 196 tok vs 64,257 tok raw (~328× on the structure layer); MCP “open + query” 447 tok vs 64,257 raw in the harness.

Frame 1 structure (e-commerce fixture)

Demo: visualizer + layered frames

What it is (and is not)

FrameParse is an observation and planning layer: deterministic HTML/DOM → cross-linked frames + MCP session cache + zero-AI planAction.

Optional CDP actuation: MCP tools frame_browser, frame_act, and frame_scroll connect to Chrome DevTools Protocol (Playwright/Puppeteer-backed driver) to click, fill, and scroll by Frame refs, then frame_diff by default. For parse-only workflows, use static HTML, URL fetch, or the MCP resource frameparse://browser-extractor.js snapshot with frame_open.

Four frames

  1. Frame 1 — Structure (s#) — Landmarks, heading outline, repeated-card folding, region counts.
  2. Frame 2 — Text (t#) — Readable blocks anchored to @s#; strips script/style/hidden noise.
  3. Frame 3 — Interactables (i#) — Controls with names, states, options, selectors.
  4. Frame 4 — Actions (w#, a#) — Workflows, effect tiers (read | navigate | mutate | destructive), planner, diff.

Architecture

flowchart TB
  subgraph inputs [Inputs]
    URL[URL fetch]
    HTML[HTML string]
    SNAP[Live DOM snapshot]
  end
  subgraph core [Zero-AI parser]
    P[HTML/DOM adapter]
    F1[Frame 1 Structure]
    F2[Frame 2 Text]
    F3[Frame 3 Interactables]
    F4[Frame 4 Actions]
  end
  subgraph agent [Agent interfaces]
    MCP[MCP stdio and HTTP /mcp]
    CHAIN[frame_chain and /api/chain]
    CLI[CLI and library]
    VIZ[3D visualizer]
  end
  URL --> P
  HTML --> P
  SNAP --> P
  P --> F1 --> F2 --> F3 --> F4
  F1 --> MCP
  F4 --> MCP
  MCP --> CHAIN
  F1 --> VIZ

CLI

node dist/src/cli.js tests/fixtures/ecommerce.html --layer 2 --region s4
node dist/src/cli.js tests/fixtures/ecommerce.html --plan "add to cart"
node dist/src/cli.js tests/fixtures/dashboard.html --diff tests/fixtures/dashboard-after.html
node dist/src/cli.js chain --preset orient_and_plan --fixture ecommerce --goal "add to cart"
npm run visualizer

3D visualizer

Open http://127.0.0.1:4173 after npm run visualizer: orbit stacked layers, peel upper frames, X-ray lineage from any card, try the built-in zero-AI planner on sample pages.

Library

import { FrameSession, parsePageFrames, executeToolChain } from "frameparse";

const session = new FrameSession(html, { url: "https://example.com" });
const frame1 = session.getStructure();
const matches = session.plan("add to cart", { allowDestructive: false });

Cursor plugin

Install from plugins/frameparse (see plugins/frameparse/.cursor-plugin/plugin.json) for bundled MCP config, rules, and skills.

MCP server (11 tools)

ToolPurpose
frame_openParse once; return Frame 1 + sessionId
frame_queryCross-layer keyword search
frame_readBudgeted layer read (maxTokens, pagination)
frame_planGoal → ranked actions/workflows
frame_inspectLineage for any s#/t#/i#/w#/a#
frame_diffPost-action delta; optional outcome cache
frame_sessionsList/close sessions + telemetry
frame_chainMulti-step chain or presets
frame_browserCDP connect/launch/navigate/open snapshot
frame_actExecute action by ref or goal
frame_scrollScroll by ref or delta

Chains: MCP frame_chain, HTTP POST /api/chain, CLI chain. Presets: orient_and_plan, query_then_inspect, plan_and_inspect, action_and_observe. Variables: $sessionId, $prev.ref, $steps.<alias>.actionId.

{
  "mcpServers": {
    "frameparse": {
      "command": "node",
      "args": ["/absolute/path/to/frameparse/dist/src/cli.js", "mcp"]
    }
  }
}

Streamable HTTP: POST http://127.0.0.1:4173/mcp while the visualizer is running.

Optional environment variables (CDP actuation)

Set in your MCP host config when using frame_browser / frame_act / frame_scroll (all optional):

VariablePurpose
FRAMEPARSE_CDP_URLChrome remote debugging HTTP base (default http://127.0.0.1:9222)
FRAMEPARSE_CDP_PORTPort used when FrameParse launches its own Chrome (default 9333)
CHROME_PATHChrome/Chromium binary when auto-launching

Agent skill: skills/frameparse/SKILL.md.

FAQ

Does FrameParse click buttons? No — it returns selectors and steps; you execute them elsewhere.

Are token counts exact for GPT/Claude? No — estimateTokens is a fast heuristic; use benchmarks for relative savings.

Can it log into sites via MCP URL fetch? Not with cookies/auth; use a live DOM snapshot from a browser you control.

Is there an npm package? npm install frameparse then npx frameparse mcp (see llms-install.md).

Limitations

Heuristic action inference (confirm destructive with users). Server-side frame_open URL fetch should run in trusted environments (SSRF). Early OSS — contributions welcome; see CONTRIBUTING.md.

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!