
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@browserbasehq/mcp-server-stagehand
Advanced tools
MCP server for AI web browser automation using Stagehand
A Model Context Protocol (MCP) server that provides AI-powered web automation capabilities using Stagehand. This server enables LLMs to interact with web pages, perform actions, extract data, and observe possible actions in a real browser environment.
Run npm install
to install the necessary dependencies, then run npm run build
to get dist/index.js
.
Set up your Claude Desktop configuration to use the server.
{
"mcpServers": {
"stagehand": {
"command": "node",
"args": ["path/to/mcp-server-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>",
}
}
}
}
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
stagehand_observe
instruction
(string, optional): Instruction for observationThe server provides access to one resource:
Console Logs (console://logs
)
Screenshots (screenshot://<n>
)
The codebase is organized into the following modules:
The main entry point for the application. It:
Contains core server functionality:
Implements the tools that can be called by MCP clients:
stagehand_navigate
: Navigate to URLsstagehand_act
: Perform actions on web elementsstagehand_extract
: Extract structured data from web pagesstagehand_observe
: Observe elements on the pagescreenshot
: Take screenshots of the current pageDefines prompt templates for MCP clients:
click_search_button
: Template for clicking search buttonsManages resources in the MCP protocol:
Implements a comprehensive logging system:
Provides utility functions:
jsonSchemaToZod
: Converts JSON Schema to Zod schema for validationsanitizeMessage
: Ensures messages are properly formatted JSONBROWSERBASE_API_KEY
: API key for BrowserBase authenticationBROWSERBASE_PROJECT_ID
: Project ID for BrowserBaseOPENAI_API_KEY
: API key for OpenAI (used by Stagehand)DEBUG
: Enable debug loggingThis server implements the following MCP capabilities:
For more information about the Model Context Protocol, visit:
Licensed under the MIT License.
Copyright 2025 Browserbase, Inc.
FAQs
MCP server for AI web browser automation using Stagehand
We found that @browserbasehq/mcp-server-stagehand demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.