MCP Pointer

MCP Pointer

Point to browser DOM elements for agentic coding tools via MCP.

519
Stars
47
Forks
519
Watchers
3
Issues
MCP Pointer is a tool that combines a Chrome Extension and a local MCP Server to bridge browser DOM element selection with agentic coding tools through the Model Context Protocol. Users can visually select DOM elements in the browser using Option+Click, capturing rich contextual information such as text, CSS, and attributes. The MCP server exposes this data to AI-powered tools like Claude Code, Cursor, and Windsurf via a standardized protocol. This enables seamless, real-time transfer of in-browser context to AI coding assistants.

Key Features

Option+Click selection of browser DOM elements
Detailed element data export including text, classes, attributes, and CSS
Chrome Extension for visual in-browser selection
Node.js MCP server for standardized context sharing
WebSocket-based real-time communication
Experimental React component detection with component names and source files
Seamless integration with agentic coding tools
One-command setup for multiple AI tools
Support for multiple AI assistants (Claude Code, Cursor, Windsurf, etc.)
Ability to build and install extension manually or via Chrome Web Store

Use Cases

Providing structured browser DOM context to coding AI assistants
Enhancing code generation and refactoring suggestions with page state
Assisting agentic code tools in understanding UI structures during web automation
Debugging UI issues by sharing precise element information with AI
Accelerating prototyping by enabling instant element context sharing
Improving web accessibility workflows with AI by exposing DOM data
Leveraging AI to generate selectors or code snippets for specific page elements
Facilitating automated testing setups by capturing real element configurations
Collaborative agent workflows where context needs to flow from browser to AI
Research or demonstrations of MCP capabilities in browser-based environments

README

CI Release npm version Chrome Extension License: MIT

👆 MCP Pointer

Point to browser DOM elements for agentic coding tools via MCP!

MCP Pointer is a local tool combining an MCP Server with a Chrome Extension:

  1. 🖥️ MCP Server (Node.js package) - Bridges between the browser and AI tools via the Model Context Protocol
  2. 🌐 Chrome Extension - Captures DOM element selections in the browser using Option+Click

The extension lets you visually select DOM elements in the browser, and the MCP server makes this textual context available to agentic coding tools like Claude Code, Cursor, and Windsurf through standardized MCP tools.

✨ Features

  • 🎯 Option+Click Selection - Simply hold Option (Alt on Windows) and click any element
  • 📋 Complete Element Data - Text content, CSS classes, HTML attributes, positioning, and styling
  • ⚛️ React Component Detection - Component names and source files via Fiber (experimental)
  • 🔗 WebSocket Connection - Real-time communication between browser and AI tools
  • 🤖 MCP Compatible - Works with Claude Code and other MCP-enabled AI tools

🎬 Usage example (video)

https://github.com/user-attachments/assets/98c4adf6-1f05-4c9b-be41-0416ab784e2c

See MCP Pointer in action: Option+Click any element in your browser, then ask your agentic coding tool about it (in this example, Claude Code). The AI gets complete textual context about the selected DOM element including CSS properties, url, selector, and more.

🚀 Getting Started

1. Install Chrome Extension

🎉 Now available on Chrome Web Store!

Install from Chrome Web Store

Simply click the link above to install from the Chrome Web Store.

Option A: Download from Releases

  1. Go to GitHub Releases
  2. Download mcp-pointer-chrome-extension.zip from the latest release
  3. Extract the zip file to a folder on your computer
  4. Open Chrome → Settings → Extensions → Developer mode (toggle ON)
  5. Click "Load unpacked" and select the extracted folder
  6. The MCP Pointer extension should appear in your extensions list
  7. Reload web pages to activate the extension

Option B: Build from Source

  1. Clone this repository
  2. Follow the build instructions in CONTRIBUTING.md
  3. Open Chrome → Settings → Extensions → Developer mode (toggle ON)
  4. Click "Load unpacked" and select the packages/chrome-extension/dist/ folder
  5. Reload web pages to activate the extension

2. Configure MCP Server

One command setup for your AI tool:

bash
npx -y @mcp-pointer/server config claude  # or cursor, windsurf, and others - see below
bash
# For other AI tools
npx -y @mcp-pointer/server config cursor     # Opens Cursor deeplink for automatic installation
npx -y @mcp-pointer/server config windsurf   # Automatically updates Windsurf config file
npx -y @mcp-pointer/server config manual     # Shows manual configuration for other tools

Optional: You can install globally with npm install -g @mcp-pointer/server to use mcp-pointer instead of npx -y @mcp-pointer/server

After configuration, restart your coding tool to load the MCP connection.

🔄 Already using MCP Pointer? Run the config command again to update to auto-updating configuration:

bash
npx -y @mcp-pointer/server config <your-tool>  # Reconfigures to always use latest version

3. Start Using

  1. Navigate to any webpage
  2. Option+Click any element to select it
  3. Ask your AI to analyze the targeted element!

Your AI tool will automatically start the MCP server when needed using the npx -y @mcp-pointer/server@latest start command.

Available MCP Tool:

  • get-pointed-element - Get textual information about the currently pointed DOM element from the browser extension

🎯 How It Works

  1. Element Selection: Content script captures Option+Click events
  2. Data Extraction: Analyzes element structure, CSS, and framework info
  3. WebSocket Transport: Sends data to MCP server on port 7007
  4. MCP Protocol: Makes data available to AI tools via MCP tools
  5. AI Analysis: Your assistant can now see and analyze the element!

🎨 Element Data Extracted

  • Basic Info: Tag name, ID, classes, text content
  • CSS Properties: Display, position, colors, dimensions
  • Component Info: React component names and source files (experimental)
  • Attributes: All HTML attributes
  • Position: Exact coordinates and dimensions
  • Source Hints: File paths and component origins

🔍 Framework Support

  • ⚛️ React - Component names and source files via Fiber (experimental)
  • 📦 Generic HTML/CSS/JS - Full support for any web content
  • 🔮 Planned - Vue component detection (PRs appreciated)

🌐 Browser Support

  • Chrome - Full support (tested)
  • 🟡 Chromium-based browsers - Should work (Edge, Brave, Arc - load built extension manually)

🐛 Troubleshooting

Extension Not Connecting

  1. Make sure MCP server is running: npx -y @mcp-pointer/server@latest start
  2. Check browser console for WebSocket errors
  3. Verify port 7007 is not blocked by firewall

MCP Tools Not Available

  1. Restart your AI assistant after installing
  2. Check MCP configuration: mcp-pointer config <your-tool>
  3. Verify server is running: npx -y @mcp-pointer/server@latest start

Elements Not Highlighting

  1. Some pages block content scripts (chrome://, etc.)
  2. Try refreshing the page
  3. Check if targeting is enabled (click extension icon)

🚀 Roadmap

1. Dynamic Context Control

  • Full raw context transferred to server
  • LLM-configurable detail levels (visible text only, all text, CSS levels)
  • Progressive refinement options / token-conscious data fetching

2. Visual Content Support (for multimodal LLMs)

  • Base64 encoding for images (img tags)
  • Screenshot capture of selected elements
  • Separate MCP tool for direct visual content retrieval

3. Enhanced Framework Support

  • Vue.js component detection
  • Better React support (React 19 removed _debugSource, affecting source mapping in dev builds)

4. Multi Select

📝 License

MIT License - see LICENSE file for details

🤝 Contributing

We welcome contributions! Please see our CONTRIBUTING.md guide for development setup and guidelines.


Inspired by tools like Click-to-Component for component development workflows.


Made with ❤️ for AI-powered web development

Now your AI can analyze any element you point at with Option+Click! 👆

Star History

Star History Chart

Repository Owner

etsd-tech
etsd-tech

Organization

Repository Details

Language TypeScript
Default Branch main
Size 425 KB
Contributors 3
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
83.77%
CSS
11.54%
JavaScript
3.54%
HTML
1.15%

Topics

agentic-coding browser claude-code cursor dom dom-element mcp mcp-server pointing stdio

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • codemirror-mcp

    codemirror-mcp

    CodeMirror extension for Model Context Protocol resource mentions and prompt commands

    codemirror-mcp provides a CodeMirror extension that implements the Model Context Protocol (MCP) to enable resource mention handling and prompt command integration within code editors. It offers autocomplete, visual decorations, and interaction support for '@resource' mentions, as well as command triggers using the '/prompt' syntax. The extension integrates with model context servers using a defined transport and enhances the editor experience with resource click handling and customizable theming.

    • 78
    • MCP
    • marimo-team/codemirror-mcp
  • WebScraping.AI MCP Server

    WebScraping.AI MCP Server

    MCP server for advanced web scraping and AI-driven data extraction

    WebScraping.AI MCP Server implements the Model Context Protocol to provide web data extraction and question answering functionalities. It integrates with WebScraping.AI to offer robust tools for retrieving, rendering, and parsing web content, including structured data and natural language answers from web pages. It supports JavaScript rendering, proxy management, device emulation, and custom extraction configurations, making it suitable for both individual and team deployments in AI-assisted workflows.

    • 33
    • MCP
    • webscraping-ai/webscraping-ai-mcp-server
  • 21st.dev Magic AI Agent

    21st.dev Magic AI Agent

    Instantly create and enhance UI components through natural language in your IDE.

    21st.dev Magic AI Agent enables developers to generate, preview, and integrate modern UI components using natural language commands directly within popular IDEs. It leverages the Model Context Protocol for seamless interoperability, supporting automated installation and configuration across tools like VSCode, Cursor, Windsurf, and Cline. With a vast library based on 21st.dev assets and advanced features such as TypeScript support and real-time previews, it streamlines the UI development workflow. The solution also supports customization, enhancements, and integration of brand assets through SVGL.

    • 3,919
    • MCP
    • 21st-dev/magic-mcp
  • dbt MCP Server

    dbt MCP Server

    Bridge dbt projects and AI agents with rich project context.

    dbt MCP Server provides an implementation of the Model Context Protocol for dbt projects, enabling seamless integration between dbt and AI agents. It allows agents to access and understand the context of dbt Core, dbt Fusion, and dbt Platform projects. The tool supports connection to external AI products and offers resources for building custom agents. Documentation and examples are provided to facilitate adoption and integration.

    • 420
    • MCP
    • dbt-labs/dbt-mcp
  • Fetcher MCP

    Fetcher MCP

    Intelligent web content fetching and extraction using Playwright.

    Fetcher MCP is a server that fetches and extracts web page content using the Playwright headless browser while supporting the Model Context Protocol. It intelligently processes dynamic web pages with JavaScript, employs the Readability algorithm to extract main content, and supports output in both HTML and Markdown formats. Designed for seamless integration with AI model environments, it offers robust parallel processing, resource optimization, and flexible deployment options including Docker.

    • 906
    • MCP
    • jae-jae/fetcher-mcp
  • Mindpilot MCP

    Mindpilot MCP

    Visualize and understand code structures with on-demand diagrams for AI coding assistants.

    Mindpilot MCP provides AI coding agents with the capability to visualize, analyze, and understand complex codebases through interactive diagrams. It operates as a Model Context Protocol (MCP) server, enabling seamless integration with multiple development environments such as VS Code, Cursor, Windsurf, Zed, and Claude Code. Mindpilot ensures local processing for privacy, supports multi-client connections, and offers robust configuration options for server operation and data management. Users can export diagrams and adjust analytics settings for improved user control.

    • 61
    • MCP
    • abrinsmead/mindpilot-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results