📇 🏠 🍎 🪟 🐧 - Visual DOM element selector for coding agents: a Chrome extension and server bridge to capture…
👆 MCP Pointer
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
**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:
Other AI Tools & Options
> **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:
>
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 – Returns textual information about the currently pointed DOM element. Optional arguments: