Skip to main content

frontprompt

frontprompt

Annotate any web page, and drive it from an AI agent.

frontprompt is a Python tool that opens a real (headful) Chromium browser and injects an in-page overlay — a shadow-DOM HUD — onto whatever page you point it at. You click to pick elements, drag to capture regions, and draw typed relations between them. The same process runs an MCP server, so an AI agent can navigate the browser, query the page, create picks, and read your annotations as structured state.

The headline property: your annotations survive cross-origin navigation. State is authoritative in the Python process, not in the page, so navigating from one site to another never loses your picks. See ARCHITECTURE.md for how that works.

Status

Alpha. The interactive inspector is feature-complete and the MCP server exposes a working tool set (pick, navigate, screenshot, page-read, state-read). Some capabilities are intentionally deferred — see ARCHITECTURE.md § Scope.

Install

claude plugin marketplace add SurrealMindAI/frontprompt
claude plugin install frontprompt@frontprompt

The frontprompt MCP server is wired automatically: it launches via uvx from PyPI and the Chromium browser self-installs on first use — zero manual setup.

After a CLI install, restart Claude Code or run /reload-plugins to activate the server. Each plugin version pins an exact PyPI release, so updating is just:

claude plugin update frontprompt@frontprompt

As a standalone CLI / MCP tool

frontprompt ships as a self-contained wheel — the Svelte overlay is embedded in the package, so the installed tool needs no Bun or Node at runtime, and Chromium auto-installs on first run.

uv tool install frontprompt
frontprompt bootstrap          # optional — eagerly pre-installs the Chromium driver

Usage

# open a page with the inspector overlay
frontprompt show https://example.com

# run as an MCP stdio server for an AI agent
frontprompt mcp

Point your MCP client at frontprompt mcp. Each invocation owns its own private browser session and spawns Chromium lazily on the first tool call, so startup is instant. The server is ephemeral — one process per client session, it dies when the client disconnects.

Dependencies & risk

frontprompt pins scrapling==0.4.8 exactly. scrapling is a BSD-3 page extraction library that is, at the time of writing, effectively single-maintainer (a bus-factor-1 project). To contain that risk it is used behind a thin internal isolation boundary, pinned to one verified version, and never auto-upgraded — so it can be swapped out without touching the rest of the codebase if it ever needs to be.

Documentation

  • ARCHITECTURE.md — system design: cross-origin survival, the expose_function bridge, single-writer state, the MCP daemon, schema histories.
  • DEVELOPMENT.md — dev environment, build pipeline, tests.
  • CONTRIBUTING.md — how to contribute.

License

BSD-3-Clause — see LICENSE.

Metadata

Release files for frontprompt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for frontprompt 0.1.0
File Interpreter ABI Platform
frontprompt-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / frontprompt-0.1.0-py3-none-any.whl

Download URL frontprompt-0.1.0-py3-none-any.whl
Size 822.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5d0284b1687ccc2a69b466d2c4213d5cfa506e8da0a858122a8e2314cb3632b
BLAKE2b-256 checksum
How to use checksums
a00959a9e1262350ba8869223fc740db1161a8de09ebccd655d70a4e3004c384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page