Integrate Stagehand with MCP Server
A Model Context Protocol (MCP) server provides AI-powered web automation capabilities using Stagehand into Claude Desktop.
Clone or download the Stagehand MCP server repository.
In the project directory, install dependencies:
Set up your Claude Desktop configuration to use the server.
Restart your Claude Desktop app and you should see the tools available clicking the 🔨 icon.
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.
stagehand_navigate
url
(string): The URL to navigate tostagehand_act
action
(string): The action to perform (e.g., “click the login button”)variables
(object, optional): Variables used in the action templatestagehand_extract
instruction
(string): Instruction for extraction (e.g., “extract the price of the item”)schema
(object): JSON schema for the extracted datastagehand_observe
instruction
(string, optional): Instruction for observationThe server provides access to two types of resources:
Console Logs (console://logs
)
Screenshots (screenshot://<name>
)
For more in-depth coverage, usage patterns, or troubleshooting:
• Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction
• Join our Slack community: https://stagehand.dev/slack