Banner
Stagehand logoStagehand

This server enables LLMs to interact with web pages, perform actions, extract data, and observe possible actions in a real browser environment.

Updated 5 days ago
Official
Go to documentation
npx @mintlify/mcp add stagehand --client claude

Get Started

  1. Run npm install to install the necessary dependencies, then run npm run build to get dist/index.js.

  2. Set up your Claude Desktop configuration to use the server.

{
  "mcpServers": {
    "stagehand": {
      "command": "node",
      "args": ["path/to/mcp-server-browserbase/stagehand/dist/index.js"],
      "env": {
        "BROWSERBASE_API_KEY": "<YOUR_BROWSERBASE_API_KEY>",
        "BROWSERBASE_PROJECT_ID": "<YOUR_BROWSERBASE_PROJECT_ID>",
        "OPENAI_API_KEY": "<YOUR_OPENAI_API_KEY>",
      }
    }
  }
}
  1. Restart your Claude Desktop app and you should see the tools available clicking the 🔨 icon.

  2. Start using the tools! Below is a demo video of Claude doing a Google search for OpenAI using stagehand MCP server and Browserbase for a remote headless browser.

Available tools

stagehand_navigate

Navigate to any URL in the browser

stagehand_act

Perform an action on the web page

stagehand_extract

Extract data from the web page

stagehand_observe

Observe actions that can be performed on the web page