BrowserCat MCP server

Enables LLMs to interact with web pages through cloud-based browser automation for navigation, screenshot capture, element interaction, and JavaScript execution without local browser installation.
Back to servers
Setup instructions
Provider
BrowserCat
Release date
Mar 21, 2025
Language
TypeScript
Package
Stats
740 downloads
3 stars

This MCP server provides browser automation capabilities through BrowserCat's cloud browser service, allowing LLMs to interact with web pages, take screenshots, and execute JavaScript without local browser installation. It serves as a bridge between language models and real browser environments.

Installation

To use the BrowserCat MCP Server, you'll need to obtain a BrowserCat API key first.

Prerequisites

Setting Up

The easiest way to use BrowserCat MCP Server is through NPX. Create a configuration file that references the server:

{
  "mcpServers": {
    "browsercat": {
      "command": "npx",
      "args": ["-y", "@browsercatco/mcp-server"],
      "env": {
        "BROWSERCAT_API_KEY": "your-api-key-here"
      }
    }
  }
}

Replace your-api-key-here with your actual BrowserCat API key.

Usage

The BrowserCat MCP Server provides several tools for browser automation. Here's how to use each one:

Navigation

Navigate to any URL using the browsercat_navigate tool:

// Navigate to a webpage
{
  "tool": "browsercat_navigate",
  "input": {
    "url": "https://example.com"
  }
}

Taking Screenshots

Capture screenshots of entire pages or specific elements:

// Screenshot the entire page
{
  "tool": "browsercat_screenshot",
  "input": {
    "name": "homepage",
    "width": 1280,
    "height": 800
  }
}

// Screenshot a specific element
{
  "tool": "browsercat_screenshot",
  "input": {
    "name": "login-form",
    "selector": "#login-form",
    "width": 600,
    "height": 400
  }
}

You can access your screenshots via the resource URL screenshot://<name>.

Interacting with Elements

Clicking Elements

{
  "tool": "browsercat_click",
  "input": {
    "selector": "#submit-button"
  }
}

Hovering Over Elements

{
  "tool": "browsercat_hover",
  "input": {
    "selector": ".dropdown-menu"
  }
}

Filling Form Fields

{
  "tool": "browsercat_fill",
  "input": {
    "selector": "#username",
    "value": "testuser"
  }
}

Selecting Dropdown Options

{
  "tool": "browsercat_select",
  "input": {
    "selector": "#country",
    "value": "USA"
  }
}

Executing JavaScript

Run arbitrary JavaScript in the browser context:

{
  "tool": "browsercat_evaluate",
  "input": {
    "script": "document.querySelectorAll('.product-item').length"
  }
}

Accessing Browser Console Logs

You can retrieve browser console logs through the resource URL console://logs. This will return all console messages outputted by the browser.

Example Workflow

Here's a complete example of how to automate a login process:

// 1. Navigate to website
{
  "tool": "browsercat_navigate",
  "input": {
    "url": "https://example.com/login"
  }
}

// 2. Take a screenshot of the login page
{
  "tool": "browsercat_screenshot",
  "input": {
    "name": "login-page"
  }
}

// 3. Fill in username
{
  "tool": "browsercat_fill",
  "input": {
    "selector": "#username",
    "value": "[email protected]"
  }
}

// 4. Fill in password
{
  "tool": "browsercat_fill",
  "input": {
    "selector": "#password",
    "value": "password123"
  }
}

// 5. Click the login button
{
  "tool": "browsercat_click",
  "input": {
    "selector": "#login-button"
  }
}

// 6. Take a screenshot after login
{
  "tool": "browsercat_screenshot",
  "input": {
    "name": "after-login"
  }
}

After executing these steps, you can view the screenshots via screenshot://login-page and screenshot://after-login.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "browsercat" '{"command":"npx","args":["-y","@browsercatco/mcp-server"],"env":{"BROWSERCAT_API_KEY":"your-api-key-here"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

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.

Adding an MCP server to Cursor globally

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": {
        "browsercat": {
            "command": "npx",
            "args": [
                "-y",
                "@browsercatco/mcp-server"
            ],
            "env": {
                "BROWSERCAT_API_KEY": "your-api-key-here"
            }
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "browsercat": {
            "command": "npx",
            "args": [
                "-y",
                "@browsercatco/mcp-server"
            ],
            "env": {
                "BROWSERCAT_API_KEY": "your-api-key-here"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later