The MCP Chrome Integration enables AI models to control Chrome browsers for web automation through a protocol that connects models to browser capabilities. It provides a server implementation that allows AI assistants to perform tasks like form filling, data extraction, and page navigation.
For automatic installation of the Chrome Browser Automation Server via Smithery:
npx -y @smithery/cli install @dlwjdtn535/mcp-chrome-integration --client claude
Choose the setup method that matches your environment:
Windows Configuration:
{
"mcpServers": {
"mcp-chrome-integration": {
"command": "uv",
"args": [
"run",
"--directory",
"%LOCALAPPDATA%\\Programs\\mcp-chrome-integration\\src",
"mcp-server"
],
"env": {
"WEBSOCKET_PORT": "8012"
}
}
}
}
macOS Configuration:
{
"mcpServers": {
"mcp-chrome-integration": {
"command": "uv",
"args": [
"run",
"--directory",
"/usr/local/bin/mcp-chrome-integration/src",
"mcp-server"
],
"env": {
"WEBSOCKET_PORT": "8012"
}
}
}
}
Linux Configuration:
{
"mcpServers": {
"mcp-chrome-integration": {
"command": "uv",
"args": [
"run",
"--directory",
"/usr/local/bin/mcp-chrome-integration/src",
"mcp-server"
],
"env": {
"WEBSOCKET_PORT": "8012"
}
}
}
}
Prepare the Extension:
cd mcp-client
Install in Chrome Browser:
chrome://extensions/
mcp-client
directoryConfigure the Extension:
ws://localhost:8012
)Using with New Tabs:
Start the MCP server:
# Navigate to server directory
cd mcp-server
# Install dependencies
pip install -r requirements.txt
# Start server
python src/server.py
# Navigate to a website
tool_navigate_to(url="https://example.com", tab_id="your_tab_id")
# Click on an element
tool_click_element(selector="#submit-button", tab_id="your_tab_id")
# Type text into an input field
tool_type_text(selector="#search", text="query", tab_id="your_tab_id")
# Check the current page state
tool_state(tab_id="your_tab_id")
# Execute JavaScript on the page
tool_execute_script(script="console.log('Hello')", tab_id="your_tab_id")
# Extract data from a table
tool_extract_table(selector=".data-table", tab_id="your_tab_id")
# Get information about an element
tool_get_element_info(selector=".my-element", tab_id="your_tab_id")
# List all available tabs
tool_tab_list()
chrome://
URLshttp://
or https://
protocolstab_id
is required for all operationstool_tab_list()
to check available tabsTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-chrome-integration" '{"command":"uv","args":["run","--directory","%LOCALAPPDATA%\\Programs\\mcp-chrome-integration\\src","mcp-server"],"env":{"WEBSOCKET_PORT":"8012"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-chrome-integration": {
"command": "uv",
"args": [
"run",
"--directory",
"%LOCALAPPDATA%\\Programs\\mcp-chrome-integration\\src",
"mcp-server"
],
"env": {
"WEBSOCKET_PORT": "8012"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-chrome-integration": {
"command": "uv",
"args": [
"run",
"--directory",
"%LOCALAPPDATA%\\Programs\\mcp-chrome-integration\\src",
"mcp-server"
],
"env": {
"WEBSOCKET_PORT": "8012"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect