element-inspector
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@element-inspectorinspect the header on https://example.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Web Element Inspector MCP Server
A general-purpose MCP server that provides an interactive element inspector for ANY website. Perfect for analyzing web pages, debugging UI issues, examining competitors' designs, or understanding how any website is built. Click on elements and instantly send detailed information about them to Claude.
Features
š Interactive Element Inspection: Click on any element on any website
š Universal Support: Works with local dev servers, production sites, and external websites
š Detailed Element Data: Captures tag name, ID, classes, attributes, styles, position, and text content
š¬ Direct Claude Integration: Send element information directly to Claude via
app.sendMessage()šÆ Real-time Feedback: Visual highlighting and instant status updates
š Inspection History: Keep track of all inspected elements during a session
š Batch Operations: Send individual elements or entire history to Claude
š”ļø Smart Attribute Detection: Highlights important attributes like href, src, aria-label, etc.
Related MCP server: gotham-browser
How It Works
Launch the Inspector: Call the
inspect-web-elementstool with any website URLEnable Inspection: Click the "Enable Element Inspection" button
Click Elements: Click on any element in the loaded page
Send to Claude: Use "Send to Claude" to instantly share element data
Installation
1. Install Dependencies
cd ~/ai-agent/element-inspector-mcp
npm install2. Build the Project
npm run build3. Configure Claude Desktop
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"element-inspector": {
"command": "node",
"args": [
"/data/data/com.termux/files/home/ai-agent/element-inspector-mcp/dist/index.js",
"--stdio"
]
}
}
}Usage
Basic Usage
Start your development server (e.g.,
npm run devon port 3000) or navigate to any websiteIn Claude Desktop, ask: "Launch the element inspector for https://example.com"
The inspector UI will appear in the chat
Click "Enable Element Inspection"
Click on any element in the loaded page
Click "Send to Claude" to share the element information
Example Prompts
"Launch the element inspector for my dev server at http://localhost:3000"
"Inspect the navigation bar on https://github.com"
"Analyze the header structure of https://example.com"
"Click on the main CTA button on https://www.producthunt.com and tell me about its styling"
"Examine the pricing table on https://stripe.com and send the details to me"
Advanced Usage
The inspector captures comprehensive element data:
{
"tagName": "button",
"id": "submit-btn",
"classes": ["btn", "btn-primary"],
"text": "Submit",
"attributes": {
"type": "submit",
"disabled": "false"
},
"styles": {
"display": "inline-block",
"padding": "10px 20px",
"backgroundColor": "rgb(33, 150, 243)"
},
"position": {
"x": 100,
"y": 200,
"width": 150,
"height": 40
}
}Development
Project Structure
element-inspector-mcp/
āāā src/
ā āāā mcp-app.ts # Client-side application
ā āāā index.html # HTML template
ā āāā styles.css # Application styles
āāā server.ts # MCP server with tool registration
āāā index.ts # Entry point
āāā vite.config.ts # Vite configuration
āāā package.jsonBuilding
npm run buildRunning Locally (for testing)
npm run build
node dist/index.js --stdioTechnical Details
Uses MCP Apps SDK for interactive UI
Built with TypeScript and Vite
Single-file bundle for easy distribution
Safe iframe sandboxing
CORS-aware element inspection
Use Cases
Development: Debug UI issues in your local development environment
Competitor Analysis: Examine how competitors structure their websites
Learning: Study the HTML/CSS of well-designed websites
Accessibility Testing: Check ARIA labels and semantic structure
SEO Analysis: Examine meta tags, headings, and semantic HTML
Design Inspiration: Capture styling details from impressive websites
Content Strategy: Analyze how successful sites structure their content
Limitations
CORS Restrictions: Some websites may block iframe embedding (X-Frame-Options)
Same-Origin Policy: Cross-origin access may be limited on some sites
Dynamic Content: Very dynamic content (SPAs) may require re-enabling inspection
Authentication: Logged-in pages may not work in iframes
Complex CSP Sites: Sites with strict Content Security Policies may block interaction
Troubleshooting
"Cannot access iframe content" error
This occurs when websites block iframe embedding. Solutions:
For local development: Add CORS headers to your dev server
For external sites: The site may have X-Frame-Options or CSP restrictions
Workaround: Try using a CORS proxy or browser extension
Alternative: Use browser DevTools with MCP for problematic sites
Elements not highlighting
Ensure inspection mode is enabled (button should be green and pulsing)
Check that the page has fully loaded
For SPAs, try toggling inspection mode off and on
Some sites with complex event handling may interfere
"Site may block iframe embedding" warning
This is normal for external websites. Many sites have security policies that prevent iframe embedding. This doesn't affect the inspector's functionality - it's just a warning that some sites may not load in iframes.
Tips for Best Results
Local Development: Always use http://localhost:3000 or similar for best results
Simple Pages: Static sites work better than complex SPAs
Public URLs: Use public URLs rather than authenticated pages
Stable Content: Choose pages with stable content for reliable inspection
Large Elements: Click on larger elements for more accurate selection
Future Enhancements
CSS selector generation and copying
Screenshot capture integration
Network request monitoring
Console log inspection
Multiple element selection
Element tree visualization
Export inspection data as JSON
Integration with browser DevTools protocol
License
MIT
Contributing
Contributions welcome! Feel free to open issues or pull requests.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAttaches to your existing Chrome browser to allow Claude to see the active tab, interact via accessibility tree, and detect handoff triggers like 2FA and captchas.Last updated10MIT
- Flicense-qualityBmaintenanceEnables Claude Code to control a real browser using AI for web scraping, competitive intelligence, and UX auditing through the MCP protocol.Last updated
- Alicense-qualityBmaintenanceEnables visual annotation on web pages for Claude Code, allowing element selection, comment addition, screenshot capture, and structured UI feedback for code fixes via an MCP server.Last updatedMIT
- Flicense-qualityAmaintenanceEnables visual browser feedback collection directly into Claude Code. Users can point at elements in their browser and send annotated feedback that Claude can act on immediately.Last updated1
Related MCP Connectors
AI-powered browser automation ā navigate, click, fill forms, and extract data from any website.
Turn any live website into brand colors, fonts, design tokens, SVGs, Lottie and paste-ready code.
Live browser debugging for AI assistants ā DOM, console, network via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/FreakTwisted666/element-inspector-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server