How to Use MCP Server to Control Chrome Browser (with Browserbase MCP Server)

Discover how to use the Browserbase MCP Server to control Chrome with AI. This guide covers setup and usage for web automation, data extraction, and more.

Ashley Goolam

Ashley Goolam

24 July 2025

How to Use MCP Server to Control Chrome Browser (with Browserbase MCP Server)

Ever wished your AI could surf the web just like you do? Well, buckle up because today we’re diving into the world of the Browserbase MCP Server—a game-changing tool that lets AI models like Claude, GPT, and Gemini control web browsers. Imagine your AI navigating websites, clicking buttons, filling forms, and even taking screenshots, all on its own. Sounds futuristic? It’s happening now, and it’s easier than you think to set up, especially with the Browserbase MCP Server.

In this guide, I’ll walk you through what the Browserbase MCP Server is, why it’s a must-have for AI-driven workflows, and how to get it up and running to control a Chrome browser. Whether you’re a developer, a data scientist, or just an AI-curious soul, this step-by-step tutorial will make you feel like a pro. Let’s get started!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

What Is the Browserbase MCP Server?

The Browserbase MCP Server is an open-source tool that uses the Model Context Protocol (MCP) to connect large language models (LLMs) with web browsers. Think of it as a bridge that allows AI to interact with websites in real time. With this server, your AI can:

It’s like giving your AI its own pair of hands to browse the web. And the best part? It works with popular AI models like OpenAI’s GPT, Anthropic’s Claude, and Google’s Gemini.

browserbase mcp server

Why Use the Browserbase MCP Server?

Before we jump into the how-to, let’s talk about why the Browserbase MCP Server is a game-changer:

Whether you’re building an AI-powered app, automating workflows, or just experimenting, the Browserbase MCP Server saves time and opens up new possibilities.

How to Install and Set Up the Browserbase MCP Server

There are three ways to get started: using a hosted remote server, running with npm or running it locally. I’ll cover all three so you can choose what works best for you.

Prerequisites

Before you dive into using the Browserbase MCP Server to control a Chrome browser with AI, ensure you have the following:

browserbase official website

For Local Setup (Optional)

If you plan to run the server locally, you’ll also need:

Option 1: Using the BrowserBase MCP Server's Hosted Remote Server (Easiest)

If you want to skip the setup hassle, the hosted option is your friend. Here’s how:

Visit Smithery: Head to smithery.ai to get your API keys and a remote MCP URL.

smithery ai

Configure Your AI Client: Add the provided URL to your AI client’s MCP settings. For example, in Claude Desktop, you’d add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "browserbase": {
      "url": "https://your-smithery-url.com"
    }
  }
}

Or, if you’re using the mcp-remote CLI:

{
  "mcpServers": {
    "browserbase": {
      "command": "npx",
      "args": ["mcp-remote", "https://your-smithery-url.com"]
    }
  }
}

Restart Your Client: Close and reopen your AI client to apply the changes.

That’s it! Your AI can now control a Chrome browser through the Browserbase MCP Server.

This is the recommended approach because of its compatibility with most mcp clients. Head over to your MCP Config JSON file and paste the Browserbase Server configuration:

{
  "mcpServers": {
    "browserbase": {
      "command": "npx",
      "args": ["@browserbasehq/mcp"],
      "env": {
        "BROWSERBASE_API_KEY": "",
        "BROWSERBASE_PROJECT_ID": "",
        "GEMINI_API_KEY": ""
      }
    }
  }
}

Option 3: Install and Run BrowserBase MCP Server Locally (For Full Control)

Want to tinker under the hood? Running the server locally gives you more flexibility. Here’s how:

Clone the Repository:

git clone https://github.com/browserbase/mcp-server-browserbase.git
cd mcp-server-browserbase

Install Dependencies:

pnpm install && pnpm build

Start the Server:

{
  "mcpServers": {
    "browserbase": {
      "command": "node",
      "args": ["path/to/mcp-server-browserbase/cli.js"],
      "env": {
        "BROWSERBASE_API_KEY": "your_api_key",
        "BROWSERBASE_PROJECT_ID": "your_project_id",
        "GEMINI_API_KEY": "your_gemini_key"
      }
    }
  }
}
node cli.js --port 3000

Add API Keys: Replace the placeholders in the config with your actual Browserbase and model API keys.

Restart Your Client: Just like before, restart your AI client to enable the server.

Customizing the Server

The Browserbase MCP Server offers flags to tweak its behavior. Here are a few handy ones:

You can add these flags to the args array in your MCP config. For example:

"args": ["path/to/cli.js", "--proxies", "--browserWidth=1920"]

How to Use the Browserbase MCP Server to Control Chrome

Now that your server is set up, let’s put it to work! Here’s how to use the Browserbase MCP Server to control a Chrome browser.

Step 1: Connect Your AI Client

Make sure your AI client (like Claude Desktop or Cursor) is connected to the Browserbase MCP Server using one of the three methods above.

Step 2: Give Commands

In your AI client, you can now issue natural language commands to control the browser. Here are some examples:

Navigate to a URL:

"Go to https://example.com"

Click a button:

"Click the 'Sign Up' button"

Fill a form:

"Fill the email field with 'user@example.com' and submit"

Take a screenshot:

"Take a screenshot of the homepage"

Extract data:

"Extract all product titles from this page"

The AI will translate these prompts into browser actions using the Browserbase MCP Server.

Step 3: View Results

Depending on the command, the AI will return results like:

For example, if you ask for a screenshot, the AI might respond with:

"Screenshot captured and saved as 'homepage.png'"

Testing the Browserbase MCP Server

Let’s test it with a real-world example. Suppose you want to automate a search on a website.

  1. Open Your AI Client: For this example, let’s use Claude Desktop.
  2. Issue a Command:
"Go to https://google.com, search for 'Browserbase MCP Server', and click the first result"

3. Observe the Browser: If you’re running locally with HTTP transport, you might see the browser open and perform the actions.

4. Check the Response: Claude should confirm the actions and perhaps extract the page title or content.

This simple test shows how the Browserbase MCP Server lets AI control Chrome to perform web tasks.

Install claude

Troubleshooting Tips

Conclusion

And there you have it! You’ve learned how to use the Browserbase MCP Server to control a Chrome browser with AI. Whether you chose the hosted route for simplicity, npm or the local setup for control, you’re now equipped to automate web tasks like a pro. The Browserbase MCP Server is a powerful tool that brings AI and web automation together, opening up endless possibilities for innovation.

Ready to explore more? Try automating your daily web tasks or integrating it into your next AI project.

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

Explore more

Qwen3-235B-A22B-Thinking-2507: A Quick Look at Alibaba's Thinking Model

Qwen3-235B-A22B-Thinking-2507: A Quick Look at Alibaba's Thinking Model

Today is another great day for the open-source AI community, in particular, thrives on these moments, eagerly deconstructing, testing, and building upon the new state-of-the-art. In July 2025, Alibaba's Qwen team triggered one such event with the launch of its Qwen3 series, a powerful new family of models poised to redefine performance benchmarks. At the heart of this release lies a fascinating and highly specialized variant: Qwen3-235B-A22B-Thinking-2507. This model is not just another increme

25 July 2025

How to Enable Claude Code & Gemini CLI Yolo Mode

How to Enable Claude Code & Gemini CLI Yolo Mode

Learn to enable Yolo Mode in Claude Code & Gemini CLI for fast AI coding. This guide covers safe Docker setup, API key config, and testing with a Next.js app, keeping your projects secure.

25 July 2025

How to Turn Your API into an MCP Server

How to Turn Your API into an MCP Server

Transform your API into an MCP server using Stainless and OpenAPI specs. This guide covers setup, customization, and testing to enable AI-driven interactions with your API, making it accessible to Claude, Cursor, and more.

25 July 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs