Fantoma

•
7
•

Drive stealth browser automation for AI agents using structured accessibility trees tailored for small local models.

Fantoma is a stealth browser automation framework built specifically for AI agents running on small, local LLMs. By interpreting web pages through the accessibility tree instead of screenshots or raw HTML, it converts complex pages into structured text and clean Markdown, drastically reducing per-step token consumption from thousands to around 500 tokens. The tool features built-in anti-detection via Camoufox, automated form-handling and logins that require no LLM intervention, and integrated security protections against prompt injection and unauthorized network requests. With an included Model Context Protocol (MCP) server, Fantoma allows any compatible client or agent to perform robust web extraction and multi-step interactions locally or via Docker.

Características Principales

01Reads pages via accessibility trees to reduce step costs to ~500 tokens without vision models
02Automates common interactions like form logins, searches, and selections in code without LLM calls
03Built-in anti-detection utilizing Camoufox (stealth Firefox) and optional Patchright (Chromium)
04Strict safety controls including hidden-text stripping, domain allow/block lists, and credential masking
05Ships as an MCP server with tools for reading, extraction, logins, and automated tasks
067 GitHub stars

Casos de Uso

01Automating multi-step web workflows and logins within MCP-enabled agents like Claude Code or Cursor
02Scraping anti-bot protected websites as clean Markdown using local LLMs or simple CLI commands
03Running low-cost, local AI agent browsing without consuming high-token vision API budgets