Cline Browser Use Server

by ztobs

17 stars
2 downloads
Not rated
GitHub

About

Enables browser automation using Python scripts, offering operations like taking webpage screenshots, retrieving HTML content, and executing JavaScript.

Details

Author
ztobs
Repository
ztobs/cline-browser-use-mcp
GitHub stars
17
Downloads
2
Categories
Developer Tools, Search

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Cline Browser Use Server
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js
    Environment
    • MODEL your_preferred_model
    • BASE_URL your_custom_url
    • USE_VISION false
    • GLHF_API_KEY your_api_key
    • GROQ_API_KEY your_api_key
    • GEMINI_API_KEY your_api_key
    • GITHUB_API_KEY your_api_key
    • OLLAMA_API_KEY your_api_key
    • OPENAI_API_KEY your_api_key
    • DEEPSEEK_API_KEY your_api_key
    • OPENROUTER_API_KEY your_api_key

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

export MODEL=your_preferred_model # Override the default model
export BASE_URL=your_custom_url # Override the default API endpoint
export USE_VISION=false # Enable/disable vision capabilities (default: false)


The server will automatically use the first available API key it finds. You can optionally customize the model and base URL for any provider using the environment variables.

To install Browser Use Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @ztobs/cline-browser-use-mcp --client claude

1. Clone this repository to /home/YOUR_HOME/Documents/Cline/ directory
2. Install dependencies:
bash
npm install

3. Build the server:
bash
npm run build

Add the following configuration to your Cline MCP settings:

json
"browser-use": {
"command": "node",
"args": [
"/home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js"
],
"env": {
// Required: Set at least one API key
"GLHF_API_KEY": "your_api_key",
"GROQ_API_KEY": "your_api_key",
"OPENAI_API_KEY": "your_api_key",
"OPENROUTER_API_KEY": "your_api_key",
"GITHUB_API_KEY": "your_api_key",
"DEEPSEEK_API_KEY": "your_api_key",
"GEMINI_API_KEY": "your_api_key",
"OLLAMA_API_KEY": "your_api_key",
// Optional: Configuration overrides
"MODEL": "your_preferred_model",
"BASE_URL": "your_custom_url",
"USE_VISION": "false"
},
"disabled": false,
"autoApprove": []
}
```

screenshot

Capture a screenshot of a webpage. Parameters: url (string, required), full_page (boolean, optional, default: false), steps (string, optional)

get_html

Retrieve the HTML content of a webpage. Parameters: url (string, required), steps (string, optional)

execute_js

Execute JavaScript on a webpage. Parameters: url (string, required), script (string, required), steps (string, optional)

get_console_logs

Get console logs from a webpage. Parameters: url (string, required), steps (string, optional)

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "cline browser use server": {
            "env": {
                "MODEL": "your_preferred_model",
                "BASE_URL": "your_custom_url",
                "USE_VISION": "false",
                "GLHF_API_KEY": "your_api_key",
                "GROQ_API_KEY": "your_api_key",
                "GEMINI_API_KEY": "your_api_key",
                "GITHUB_API_KEY": "your_api_key",
                "OLLAMA_API_KEY": "your_api_key",
                "OPENAI_API_KEY": "your_api_key",
                "DEEPSEEK_API_KEY": "your_api_key",
                "OPENROUTER_API_KEY": "your_api_key"
            },
            "args": [
                "/home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "MODEL": "your_preferred_model",
        "BASE_URL": "your_custom_url",
        "USE_VISION": "false",
        "GLHF_API_KEY": "your_api_key",
        "GROQ_API_KEY": "your_api_key",
        "GEMINI_API_KEY": "your_api_key",
        "GITHUB_API_KEY": "your_api_key",
        "OLLAMA_API_KEY": "your_api_key",
        "OPENAI_API_KEY": "your_api_key",
        "DEEPSEEK_API_KEY": "your_api_key",
        "OPENROUTER_API_KEY": "your_api_key"
    },
    "args": [
        "/home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "MODEL": "your_preferred_model",
        "BASE_URL": "your_custom_url",
        "USE_VISION": "false",
        "GLHF_API_KEY": "your_api_key",
        "GROQ_API_KEY": "your_api_key",
        "GEMINI_API_KEY": "your_api_key",
        "GITHUB_API_KEY": "your_api_key",
        "OLLAMA_API_KEY": "your_api_key",
        "OPENAI_API_KEY": "your_api_key",
        "DEEPSEEK_API_KEY": "your_api_key",
        "OPENROUTER_API_KEY": "your_api_key"
    },
    "args": [
        "/home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "MODEL": "your_preferred_model",
        "BASE_URL": "your_custom_url",
        "USE_VISION": "false",
        "GLHF_API_KEY": "your_api_key",
        "GROQ_API_KEY": "your_api_key",
        "GEMINI_API_KEY": "your_api_key",
        "GITHUB_API_KEY": "your_api_key",
        "OLLAMA_API_KEY": "your_api_key",
        "OPENAI_API_KEY": "your_api_key",
        "DEEPSEEK_API_KEY": "your_api_key",
        "OPENROUTER_API_KEY": "your_api_key"
    },
    "args": [
        "/c",
        "node",
        "/home/YOUR_HOME/Documents/Cline/MCP/browser-use-server/build/index.js"
    ],
    "command": "cmd"
}

Browser Use Server

smithery badge

A Model Context Protocol server for browser automation using Python scripts. For use with Cline

<a href="https://glama.ai/mcp/servers/0aqrsbhx3z">Browser Use Server MCP server</a>

Features

Browser Operations

- screenshot: Capture a screenshot of a webpage (full page or viewport) - get_html: Retrieve the HTML content of a webpage - execute_js: Execute JavaScript on a webpage - get_console_logs: Get console logs from a webpage

All operations support custom interaction steps (e.g., clicking elements, scrolling) after page load.

Prerequisites

1. (Optional but recommended) Install Xvfb for headless browser automation:
```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.