MCP Pointer MCP Server

$npx -y @mcp-pointer/server config claude
README.md

Point to browser DOM elements for agentic coding tools via MCP

👆 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
  • 💡 Dynamic Context Control - Request visible-only text, suppress text entirely, or dial CSS detail from none → full computed styles per MCP call
  • ⚛️ 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!

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

Alternative: Manual Installation

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:

npx -y @mcp-pointer/server config claude  # or cursor, windsurf, and others - see below
Other AI Tools & Options
# 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:

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 el

Tools (1)

get_selected_elementRetrieves the currently selected DOM element's data including HTML, CSS, and React metadata.

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "mcp-pointer": {
      "command": "npx",
      "args": ["-y", "@mcp-pointer/server"]
    }
  }
}

Try it

Analyze the DOM element I just selected with Option+Click and tell me its CSS classes.
What is the React component name for the element I pointed to in the browser?
Get the full computed styles for the currently selected web element.
Look at the element I selected and help me write a CSS selector to target it in my code.

Frequently Asked Questions

What are the key features of MCP Pointer?

Option+Click Selection for visual DOM element targeting. Complete Element Data capture including CSS, HTML attributes, and positioning. React Component Detection for identifying component names and source files via Fiber. Dynamic Context Control to adjust CSS detail levels and text visibility. Real-time WebSocket connection between browser and AI tools.

What can I use MCP Pointer for?

Frontend developers needing to quickly provide UI context to AI coding agents. Debugging React component hierarchies by selecting elements directly in the browser. Extracting specific CSS styles from a live webpage to replicate them in a local project. Automating the identification of complex DOM selectors for testing or scraping.

How do I install MCP Pointer?

Install MCP Pointer by running: npx -y @mcp-pointer/server config claude

What MCP clients work with MCP Pointer?

MCP Pointer works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use MCP Pointer with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free