TC

ticktockbent/charlotte

Browser automation

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

184 stars 23 forks Качество 92 Тренд 20MIT

ticktockbent/charlotte — это кандидат на сервер MCP, импортированный из https://github.com/ticktockbent/charlotte.

Обзор

ticktockbent/charlotte — это кандидат на сервер MCP, импортированный из https://github.com/ticktockbent/charlotte.

Обзор (машинный перевод)

Паутина, читаема.

Ваш агент ИИ сжигает ~50 000 символов дерева доступности только ради того, чтобы посмотреть на главную страницу Hacker News. Шарлотта делает это в 364.

Charlotte — это сервер MCP, который предоставляет агентам ИИ структурированный, эффективный доступ к вебу. Вместо того чтобы выкладывать полный список доступности при каждом звонке, Шарлотта возвращает только то, что агенту нужен: краткая сводка страницы при поступлении, целевые запросы по конкретным элементам, и полные детали только при явном запросе. На страницах с большим содержанием эта ориентация до ~140 раз меньше, чем полный снимок дерева доступности от Playwright MCP; на небольших страницах оба примерно одинакового размера.

Почему именно Шарлотта?

Большинство MCP-серверов браузера сбрасывают всё дерево доступности при каждом звонке — плоский текст, который может превысить миллион символов на страницах с большим количеством контента. Агенты платят за всё это, независимо от того, нужно им это или нет.

Шарлотта разбивает каждую страницу на типизированное, структурированное представление — ориентиры, заголовки, интерактивные элементы, формы, резюме содержания — и позволяет агентам управлять, сколько они получают, используя три уровня детализации.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Charlotte

The Web, Readable.

Your AI agent burns ~50,000 characters of accessibility tree just to look at the Hacker News front page. Charlotte does it in 364.

Charlotte is an MCP server that gives AI agents structured, token-efficient access to the web. Instead of dumping the full accessibility tree on every call, Charlotte returns only what the agent needs: a compact page summary on arrival, targeted queries for specific elements, and full detail only when explicitly requested. On content-heavy pages that orientation is up to ~140x smaller than a full accessibility-tree snapshot from Playwright MCP; on trivially small pages the two are roughly the same size.

Why Charlotte?

Most browser MCP servers dump the entire accessibility tree on every call — a flat text blob that can exceed a million characters on content-heavy pages. Agents pay for all of it whether they need it or not.

Charlotte decomposes each page into a typed, structured representation — landmarks, headings, interactive elements, forms, content summaries — and lets agents control how much they receive with three detail levels. When an agent navigates to a new page, it gets a compact orientation (364 characters for Hacker News) instead of the full element dump (~50,000 characters). When it needs specifics, it asks for them.

Benchmarks

Measured on Charlotte v0.8.0 against Playwright MCP v0.0.79, by characters returned per tool call on real websites (npx tsx benchmarks/run-benchmarks.ts --suite comparison), 2026-08-08. This section is a summary — the canonical benchmarks page (including per-task cost and release drift) is charlotte.mintlify.site/benchmarks; methodology, instruments, and raw results: benchmarks/.

Orientation cost (what an agent pays to “see” a page on arrival):

A Charlotte navigate returns a usable orientation by default — landmarks, headings, and interactive element counts grouped by page region. To get the equivalent with Playwright MCP, an agent calls browser_snapshot, which returns the full accessibility tree. (Playwright’s browser_navigate alone returns only a short confirmation, not the page content, so it isn’t a like-for-like comparison.)

Site Charlotte navigate Playwright browser_snapshot Smaller by
example.com 415 465 1.1x
httpbin form 619 1,847 3.0x
GitHub repo 3,778 38,983 10x
Wikipedia (AI article) 22,134 1,137,928 51x
Hacker News 364 50,706 139x
Открыть полный README на GitHub

Установка

npx @ticktockbent/charlotte
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "charlotte": { "type": "stdio", "command": "npx", "args": ["@ticktockbent/charlotte"], "env": {} } } }