Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

mcpware/ui-annotator-mcp MCP server](https://glama.ai/mcp/servers/mcpware/ui-annotator-mcp/badges/score.svg)](https://glama.ai/mcp/servers/mcpware/ui-annotator-mcp) πŸ“‡ 🏠 - Annotates any web page with hover labels for AI assistants β€” reverse proxy...

README.md

UI Annotator MCP

![npm version](https://www.npmjs.com/package/@mcpware/ui-annotator) ![npm downloads](https://www.npmjs.com/package/@mcpware/ui-annotator) ![license](LICENSE) ![GitHub stars](https://github.com/mcpware/ui-annotator-mcp) ![GitHub forks](https://github.com/mcpware/ui-annotator-mcp/fork)

English | 廣東話

Bridge the gap between what you see and what AI can reference β€” in any browser, zero extensions.

The only tool that puts visible labels on every web element. Hover any element, see its name. Tell your AI assistant "make the sidebar wider" β€” it knows exactly which element you mean. No screenshots, no CSS selectors, no miscommunication.

!Demo

Why It Matters

Dramatically improves AI-driven UI design and iteration. The pain: telling AI "move that button next to the search bar" never works because the AI can't see your page. UI Annotator fixes this β€” hover over any element and its component name appears as a label. Now you say "move SearchButton below NavBar" and Claude edits the right component instantly. No browser extensions, works with any framework. The workflow becomes: open page β†’ hover to identify elements β†’ describe changes using real component names β†’ Claude edits β†’ refresh and repeat. Turns a frustrating back-and-forth into a fluid design loop.

The Problem

When reviewing a web UI with an AI coding assistant, the hardest part isn't the code change β€” it's describing which element you want changed.

"That thing on the left... the second row... no, the one with the icon..."

You don't know what it's called. The AI doesn't know what you're pointing at. You waste time on miscommunication instead of shipping.

The Solution

Open your page through the annotator proxy. Hover any element β€” instantly see its name, CSS selector, and dimensions. Now you both speak the same language.

# Start the MCP server
npx @mcpware/ui-annotator

# Open in ANY browser
http://localhost:7077/localhost:3847

That's it. No browser extensions. No code changes. No setup. Works in Chrome, Firefox, Safari, Edge β€” any browser.

How It Works

Your app (localhost:3847)
        β”‚
        β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  UI Annotator Proxy  β”‚ ← Reverse proxy on port 7077
β”‚  (MCP Server)        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚
        β–Ό
Proxied page with hover annotations injected
        β”‚
        β”œβ”€β”€β–Ί User sees: hover overlay + tooltip with element names
        └──► AI sees: structured element data via MCP tools

The proxy fetches your page, injects a lightweight annotation script, and serves it back. The script scans the DOM, identifies named elements, and reports them to the MCP server. Your AI assistant queries the server to understand what's on the page.

Features

Hover Annotations

Hover any element to see:

  • Element name (pink) β€” the human-readable identifier
  • CSS selector (monospace) β€” the technical reference
  • Content preview β€” what text the element contains
  • Dimensions β€” width Γ— height in pixels

Inspect Mode

Click the Inspect button in the toolbar (or let your AI toggle it). In inspect mode:

  • Click any element β†’ copies its name to clipboard
  • All page interactions are paused (clicks don't trigger buttons/links)
  • Click Inspect again to return to normal mode

Collapsible Toolbar

The toolbar sits at the top center of the page showing:

  • Inspect toggle button
  • Element count
  • Helpful subtitle explaining what to do
  • Collapse button (β–²) to minimize when not needed

MCP Tools for AI

| Tool | What it does | |---|---| | annotate(url) | Returns proxy URL for user to open in any browser | | get_elements() | Returns all detected UI elements with names, selectors, positions | | highlight_element(name) | Flash-highlights a specific element so user can confirm | | rescan_elements() | Force DOM rescan after page changes | | inspect_mode(enabled) | Toggle inspect mode remotely |

Why Not Just Use DevTools?

| | Browser DevTools | UI Annotator | |---|---|---| | Target user | Frontend developers who know the DOM | Anyone β€” QA, PM, designer, junior dev | | Learning curve | Need to understand DOM tree, CSS selectors, box model | Hover and read β€” zero learning | | Communication | "The div.flex.gap-4 inside the second child of..." | "The sidebar" | | Language | CSS/HTML technical terms | Human-readable names | | Setup | Teach people to open DevTools + navigate the DOM | Open a URL | | AI integration | None β€” AI can't see what you're inspecting | MCP β€” AI sees the same element names you do |

DevTools is for debugging. UI Annotator is for communication β€” giving humans and AI a shared vocabulary for UI elements.

Why Not Use Existing Tools?

None of these do what UI Annotator does β€” live visual labels on every element via reverse proxy:

| Tool | Approach | Why we're different | |---|---|---| | browser-use (82K⭐) | AI automation framework | Automates browsers, doesn't label elements for humans. Different use case entirely. | | Chrome DevTools MCP (31K⭐) | DOM snapshot + element UIDs | AI can inspect, but humans don't see visual annotations. No shared vocabulary. | | Playwright MCP (29K⭐) | Accessibility tree snapshot | Returns structured text, no visual overlay. Truncates important context. | | OmniParser | Screenshot + CV detection | Screenshot-based, not live DOM. ~40% accuracy on hard benchmarks. | | MCP Pointer (526 users) | Chrome extension + MCP | Requires Chrome extension. Human clicks to select β€” no hover overlay. | | Agentation | npm embedded in your app | Requires code changes. React 18+ dependency. Not zero-config. | | Vibe Annotations | Chrome extension | Extension-based, developer-only annotation workflow. |

Feature Comparison

| Feature | UI Annotator | MCP Pointer | Agentation | Cursor | Chrome DevTools MCP | |---|---|---|---|---|---| | Visual hover annotation | Yes | No | Partial | Yes (IDE only) | No | | Shows element names | Yes | Yes | Yes | No (high-level) | Programmatic | | Shows dimensions | Yes | Yes | Yes (Detailed) | Yes | Programmatic | | MCP server | Yes | Yes | Yes | No | Yes | | Zero browser extensions | Yes | No | Yes | N/A | No | | Zero code changes | Yes | Yes | No | N/A | Yes | | Any browser | Yes | Chrome only | Desktop only | Cursor only | Chrome only | | Zero dependencies | Yes | Chrome ext | React 18+ | Cursor | Chrome | | Click to copy element name | Yes | No | No | No | No |

Architecture

Zero external dependencies

  • Reverse proxy: Node.js built-in http module
  • MCP server: @modelcontextprotocol/sdk (stdio transport)
  • Communication: HTTP POST (browser β†’ server) + GET polling (server β†’ browser)
  • No WebSocket, no Express, no browser extension

How the proxy works

  1. User requests localhost:7077/localhost:3847
  2. Proxy fetches http://localhost:3847
  3. For HTML responses:
  • Injects fetch() / XMLHttpRequest interceptor (rewrites API paths through proxy)
  • Rewrites href="/..." and src="/..." attributes to route through proxy
  • Injects annotation script before </body>
  1. For non-HTML (CSS, JS, images): passes through directly
  2. Strips Content-Security-Policy headers to allow injected script

How annotation works

  1. Script scans DOM for elements with id, class, semantic roles, or interactive roles
  2. On hover: positions overlay border (follows border-radius) + positions tooltip (always within viewport)
  3. Reports all detected elements to server via POST /__annotator/elements
  4. Polls GET /__annotator/commands every second for server instructions (highlight, rescan, inspect toggle)
  5. MutationObserver auto-rescans when DOM changes

Quick Start

With Claude Code

# Add as MCP server
claude mcp add ui-annotator -- npx @mcpware/ui-annotator

# Then in conversation:
# "Annotate my app at localhost:3847"
# β†’ AI returns proxy URL, you open it, hover elements, discuss changes by name

Manual

npx @mcpware/ui-annotator
# Proxy starts on http://localhost:7077
# Open http://localhost:7077/localhost:YOUR_PORT

Environment Variables

| Variable | Default | Description | |---|---|---| | UI_ANNOTATOR_PORT | 7077 | Port for the proxy server |

More from @mcpware

| Project | What it does | Install | |---------|---|---| | Instagram MCP | 23 Instagram Graph API tools β€” posts, comments, DMs, stories, analytics | npx @mcpware/instagram-mcp | | Claude Code Organizer | Visual dashboard for Claude Code memories, skills, MCP servers, hooks | npx @mcpware/claude-code-organizer | | Pagecast | Record browser sessions as GIF or video via MCP | npx @mcpware/pagecast | | LogoLoom | AI logo design β†’ SVG β†’ full brand kit export | npx @mcpware/logoloom |

License

MIT

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.