> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stagehand.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Browserbase MCP Server

> AI-powered browser automation through Model Context Protocol integration with Stagehand

export const V3Banner = () => null;

<V3Banner />

## Overview

The Browserbase MCP Server brings powerful browser automation capabilities to MCP clients through the Model Context Protocol (MCP). Built on top of [Stagehand](https://docs.stagehand.dev/), this integration provides AI-powered web automation using natural language commands.

<Info>
  The hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
  endpoint is served on Browserbase infrastructure.
  You can also run the MCP server locally with STDIO, but we recommend the
  hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
  endpoint for most users.
</Info>

## Key Features

<CardGroup cols={2}>
  <Card title="Natural Language Automation" icon="wand-magic-sparkles">
    Control browsers using plain English commands like "click the login button" or "fill out the contact form"
  </Card>

  <Card title="Web Interaction" icon="browser">
    Navigate, click, and fill forms with ease
  </Card>

  <Card title="Data Extraction" icon="download">
    Extract structured data from any website automatically
  </Card>

  <Card title="Session Lifecycle" icon="route">
    Create, reuse, and close browser sessions with explicit MCP tools
  </Card>
</CardGroup>

## Core Benefits

<Tabs>
  <Tab title="Ease of Use">
    <CardGroup cols={2}>
      <Card title="Intuitive Commands" icon="wand-magic-sparkles">
        No need to learn complex selectors or automation syntax. Simply describe what you want to do in natural language.
      </Card>

      <Card title="Quick Setup" icon="rocket">
        Get started in minutes with either hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) or local STDIO.
      </Card>

      <Card title="Smart Automation" icon="brain">
        Stagehand's AI understands web page context and can adapt to different layouts and designs.
      </Card>
    </CardGroup>
  </Tab>

  <Tab title="Powerful Capabilities">
    <CardGroup cols={2}>
      <Card title="Full Browser Control" icon="browser">
        Navigate, click, type, scroll, and interact with any web element.
      </Card>

      <Card title="Data Intelligence" icon="chart-line">
        Extract structured information from complex web pages automatically.
      </Card>

      <Card title="Session Persistence" icon="cookie-bite">
        Maintain authentication states and cookies across multiple interactions.
      </Card>
    </CardGroup>
  </Tab>

  <Tab title="Enterprise Ready">
    <CardGroup cols={2}>
      <Card title="Reliable Infrastructure" icon="server">
        Hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) runs on Browserbase infrastructure for consistent performance.
      </Card>

      <Card title="Scalable Architecture" icon="arrows-up-to-line">
        Handle multiple concurrent sessions and high-volume automation tasks.
      </Card>

      <Card title="Security Features" icon="shield-check">
        Stealth mode, proxy support, and advanced anti-detection capabilities.
      </Card>

      <Card title="Comprehensive Logging" icon="file-lines">
        Detailed session recordings and debugging information.
      </Card>
    </CardGroup>
  </Tab>
</Tabs>

## Use Cases

<Tabs>
  <Tab title="Web Scraping & Data Collection">
    <CardGroup cols={2}>
      <Card title="E-commerce Monitoring" icon="store">
        Track product prices, availability, and competitor information
      </Card>

      <Card title="Market Research" icon="chart-bar">
        Gather data from multiple sources for analysis and reporting
      </Card>

      <Card title="Content Aggregation" icon="newspaper">
        Collect articles, posts, and media from various websites
      </Card>

      <Card title="Lead Generation" icon="users">
        Extract contact information and business data from directories
      </Card>
    </CardGroup>
  </Tab>

  <Tab title="Testing">
    <CardGroup cols={2}>
      <Card title="Automated Testing" icon="flask">
        Create comprehensive test suites for web applications
      </Card>

      <Card title="Cross-Browser Validation" icon="browsers">
        Test functionality across different browser environments
      </Card>

      <Card title="User Journey Testing" icon="route">
        Simulate real user interactions and workflows
      </Card>

      <Card title="Performance Monitoring" icon="gauge">
        Track page load times and user experience metrics
      </Card>
    </CardGroup>
  </Tab>

  <Tab title="Workflow Automation">
    <CardGroup cols={2}>
      <Card title="Form Automation" icon="file-contract">
        Automatically fill and submit complex web forms
      </Card>

      <Card title="Report Generation" icon="chart-line">
        Extract data and generate automated reports
      </Card>

      <Card title="Social Media Management" icon="share-nodes">
        Schedule posts and monitor engagement across platforms
      </Card>

      <Card title="Administrative Tasks" icon="clipboard-check">
        Automate repetitive web-based business processes
      </Card>
    </CardGroup>
  </Tab>
</Tabs>

## Getting Started

<Steps>
  <Step title="Install the MCP Server">
    Choose hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http) (recommended) or local STDIO based on your needs.
  </Step>

  <Step title="Configure Authentication">
    Set up your Browserbase API credentials in MCP configuration. Get API keys
    from the [Browserbase Dashboard](https://www.browserbase.com/overview).
  </Step>

  <Step title="Start Automating">
    Begin using natural language commands to control browsers through your MCP client.
  </Step>
</Steps>

<Tip>
  Ready to get started? Check out the [Setup Guide](/v3/integrations/mcp/setup).
</Tip>

## Further Reading

<CardGroup cols={3}>
  <Card title="Setup Guide" icon="rocket" href="/v3/integrations/mcp/setup">
    Get started with installation and configuration
  </Card>

  <Card title="MCP Docs" icon="book" href="https://modelcontextprotocol.io/introduction">
    Learn more about the MCP protocol
  </Card>

  <Card title="Browserbase Docs" icon="globe" href="https://docs.browserbase.com">
    Explore Browserbase features and capabilities
  </Card>
</CardGroup>
