Element MCP
Overview
Element MCP is a Chrome extension that allows users to select and store DOM elements on a webpage.
To use Element MCP, clone the repository, run bun start to start the server, and load the unpacked extension in Chrome. After enabling the extension, select elements on a webpage to store them.
- Select and store DOM elements on a webpage - View stored elements in a table
- Web developers can store and manage specific elements for testing.
- Designers can keep track of UI components for reference.
- Educators can demonstrate web development concepts by storing elements.
Add to your AI client
Use these steps to connect Element MCP in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"element-mcp-stonega": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"element-mcp-stonega": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"element-mcp-stonega": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"element-mcp-stonega": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"element-mcp-stonega": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"element-mcp-stonega": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-element-mcp-stonega"
]
}
}
}FAQ
Is Element MCP free to use?
Yes! Element MCP is free to use for everyone.
What browsers does Element MCP support?
Element MCP is designed specifically for Google Chrome.