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

# Browserbase MCP server

> Give MCP clients a browser through Model Context Protocol integration with Stagehand

The Browserbase MCP server gives any MCP client a browser. Built on [Stagehand](https://docs.stagehand.dev/), it lets agents interact with the web 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 the
  hosted [Streamable HTTP](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http)
  endpoint is recommended 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">
        Verified, proxy support, and browser identity capabilities.
      </Card>

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

## Use cases

<Tabs>
  <Tab title="Data extraction & 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](/integrations/mcp/setup).
</Tip>

## Further reading

<CardGroup cols={3}>
  <Card title="Setup guide" icon="rocket" href="/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>
