Stagehand
MCP server by browserbase Verified · npm:@browserbasehq
Stagehand is Browserbase's SDK for building browser agents in TypeScript, Python and Go. It also offers a hosted MCP server with navigate, act, observe and extract tools. It is built for developers who automate websites.
Install Stagehand
Built from the published package, never by AI.
claude mcp add stagehand -- npx -y @browserbasehq/stagehandRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"stagehand": {
"args": [
"-y",
"@browserbasehq/stagehand"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"stagehand": {
"args": [
"-y",
"@browserbasehq/stagehand"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"stagehand": {
"args": [
"-y",
"@browserbasehq/stagehand"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add stagehand -- npx -y @browserbasehq/stagehand{
"mcpServers": {
"stagehand": {
"args": [
"-y",
"@browserbasehq/stagehand"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add stagehand npx -y @browserbasehq/stagehandGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the stagehand block.
About
Stagehand is an SDK from Browserbase for building browser agents. It lets code drive a browser with Playwright-style methods such as goto, click and locator. It also adds natural language calls: act performs an action, observe finds elements and returns selectors, and extract returns data checked against a schema. The SDK is available in TypeScript, Python and Go.
Sessions can keep cookies between runs, so a script can start already signed in. Local runs use Chrome on your machine. Browserbase offers a cloud option with a Model Gateway, caching and session recordings, plus a hosted MCP server that exposes navigate, act, observe and extract to MCP clients. The source also describes a browse CLI and skill for coding agents. It suits developers who automate websites in code or want AI assistants to use a browser.
Written from the project's README and checked against it.
Tools it gives your assistant
navigateHosted Browserbase MCP tool that moves the browser to a page.actPerforms a browser action described in natural language, such as clicking a button.observeFinds elements on the page and returns real selectors for them.extractPulls data from the page into a schema-validated structure.browserbase.searchRuns web search and returns token-efficient results without a browser.browserbase.fetchGets the content of a URL as markdown without a browser.
What you need
- Chrome installed for local runs
- Browserbase API key for the hosted MCP server and cloud browsers
- Model API key, such as OpenAI, for SDK model calls
Try asking
- Open the billing page on my app and list every invoice in the table
- Navigate to example.com and tell me the page title
- Find the sign in button on this site and click it
Good to know
- Local runs need Chrome installed.
- The hosted MCP server requires a Browserbase API key.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Stagehand
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
Stagehand: common questions
Does Stagehand have an MCP server?
Yes. The hosted Browserbase MCP server exposes navigate, act, observe and extract to MCP clients. It requires a Browserbase API key.
Do I need a Browserbase account to use it locally?
The source says local use of the browse CLI needs no LLM key or Browserbase account. Local SDK runs need Chrome installed.
Which languages is the Stagehand SDK available in?
The source lists TypeScript, Python and Go as the three supported SDK languages.
How do I install Stagehand?
In Claude Code run claude mcp add stagehand -- npx -y @browserbasehq/stagehand. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Stagehand the official server?
Stagehand is published by npm:@browserbasehq from its verified domain in the official MCP Registry.
Is Stagehand free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Stagehand safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Stagehand?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does Stagehand work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
