Browserbase MCP
Browserbase MCP gives AI models actual browser control through cloud infrastructure. Built on Stagehand, it lets you navigate websites, extract data, and interact with web pages using natural language commands.
The integration provides real browser sessions that AI can control, enabling tasks that go beyond simple web search APIs.
Available Tools
Section titled âAvailable ToolsâMulti-Session Tools
Section titled âMulti-Session Toolsâmulti_browserbase_stagehand_session_create
: Create parallel browser sessionsmulti_browserbase_stagehand_session_list
: Track active sessionsmulti_browserbase_stagehand_session_close
: Clean up sessionsmulti_browserbase_stagehand_navigate_session
: Navigate in specific session
Core Browser Actions
Section titled âCore Browser Actionsâbrowserbase_stagehand_navigate
: Navigate to URLsbrowserbase_stagehand_act
: Perform actions (âclick the login buttonâ)browserbase_stagehand_extract
: Extract text contentbrowserbase_stagehand_observe
: Find page elementsbrowserbase_screenshot
: Capture screenshots
Session Management
Section titled âSession Managementâbrowserbase_session_create
: Create or reuse sessionsbrowserbase_session_close
: Close active sessions
Prerequisites
Section titled âPrerequisitesâ- Jan with MCP enabled
- Browserbase account (includes 60 minutes free usage)
- Model with strong tool calling support
- Node.js installed
Enable MCP
Section titled âEnable MCPâ- Go to Settings > MCP Servers
- Toggle Allow All MCP Tool Permission ON
Get Browserbase Credentials
Section titled âGet Browserbase Credentialsâ-
Sign up at browserbase.com
- Email verification required
- Phone number authentication
- Thorough security process
-
Access your dashboard and copy:
- API Key
- Project ID
Configure MCP Server
Section titled âConfigure MCP ServerâClick +
in MCP Servers section:
NPM Package Configuration:
- Server Name:
browserbase
- Command:
npx
- Arguments:
@browserbasehq/mcp-server-browserbase
- Environment Variables:
- Key:
BROWSERBASE_API_KEY
, Value:your-api-key
- Key:
BROWSERBASE_PROJECT_ID
, Value:your-project-id
- Key:
Verify Setup
Section titled âVerify SetupâCheck the tools bubble in chat to confirm Browserbase tools are available:
Real Usage Example
Section titled âReal Usage ExampleâLive Information Query
Section titled âLive Information QueryâWhich sports matches are happening right now in Australia (irrespective of the sport)?
This simple query demonstrates browser automation in action:
- Tool Activation
- Model creates browser session
- Navigates to sports websites
- Extracts current match data
- Results Delivery
- Real-time match information
- Multiple sports covered
- Current scores and timings
The AI successfully found:
- AFL matches with live scores
- NRL games in progress
- Upcoming Rugby Union fixtures
Common Issues
Section titled âCommon IssuesâTool Call Failures
Section titled âTool Call FailuresâSometimes tool calls fail due to parsing issues:
Solutions:
- Try rephrasing your prompt
- Disable unnecessary tools
- Use simpler, more direct requests
- Switch to Claude 3.5+ Sonnet if using another model
Model Limitations
Section titled âModel LimitationsâMost models struggle with multiple tools. If experiencing issues:
- Start with single-purpose requests
- Build complexity gradually
- Consider which tools are actually needed
- Expect some trial and error initially
Usage Limits
Section titled âUsage LimitsâFree Tier:
- 60 minutes of browser time included
- Sessions auto-terminate after 5 minutes inactivity
- Can adjust timeout in Browserbase dashboard
- Usage visible in dashboard analytics
Session Management:
- Each browser session counts against time
- Close sessions when done to conserve minutes
- Multi-session operations consume time faster
Practical Use Cases
Section titled âPractical Use CasesâReal-Time Data Collection
Section titled âReal-Time Data CollectionâCheck current prices for MacBook Pro M4 at major Australian retailers and create a comparison table.
Form Testing
Section titled âForm TestingâNavigate to myservice.gov.au and walk through the Medicare claim process, documenting each required field.
Content Monitoring
Section titled âContent MonitoringâVisit ABC News Australia and extract the top 5 breaking news headlines with their timestamps.
Multi-Site Analysis
Section titled âMulti-Site AnalysisâCompare flight prices from Sydney to Tokyo next week across Qantas, Jetstar, and Virgin Australia.
Automated Verification
Section titled âAutomated VerificationâCheck if our company is listed correctly on Google Maps, Yelp, and Yellow Pages, noting any discrepancies.
Advanced Techniques
Section titled âAdvanced TechniquesâSession Reuse
Section titled âSession ReuseâCreate a browser session, log into LinkedIn, then search for "AI engineers in Melbourne" and extract the first 10 profiles.
Parallel Operations
Section titled âParallel OperationsâCreate three browser sessions: monitor stock prices on ASX, check crypto on CoinSpot, and track forex on XE simultaneously.
Sequential Workflows
Section titled âSequential WorkflowsâGo to seek.com.au, search for "data scientist" jobs in Sydney, apply filters for $150k+, then extract job titles and companies.
Optimization Tips
Section titled âOptimization TipsâPrompt Engineering:
- Be specific about what to extract
- Name exact websites when possible
- Break complex tasks into steps
- Specify output format clearly
Tool Selection:
- Use multi-session only when needed
- Close sessions promptly
- Choose observe before act when possible
- Screenshot sparingly to save time
Error Recovery:
- Have fallback prompts ready
- Start simple, add complexity
- Watch for timeout warnings
- Monitor usage in dashboard
Troubleshooting
Section titled âTroubleshootingâConnection Issues:
- Verify API key and Project ID
- Check Browserbase service status
- Ensure NPX can download packages
- Restart Jan after configuration
Browser Failures:
- Some sites block automation
- Try different navigation paths
- Check if site requires login
- Verify target site is accessible
Performance Problems:
- Reduce concurrent sessions
- Simplify extraction requests
- Check remaining time quota
- Consider upgrading plan
Model Struggles:
- Too many tools overwhelm most models
- Claude 3.5+ Sonnet most reliable
- Reduce available tools if needed
- Use focused, clear instructions
Browserbase vs Browser Use
Section titled âBrowserbase vs Browser UseâFeature | Browserbase | Browser Use |
---|---|---|
Infrastructure | Cloud browsers | Local browser |
Setup Complexity | API key only | Python environment |
Performance | Consistent | System dependent |
Cost | Usage-based | Free (local resources) |
Reliability | High | Variable |
Privacy | Cloud-based | Fully local |
Next Steps
Section titled âNext StepsâBrowserbase MCP provides genuine browser automation capabilities, not just web search. This enables complex workflows like form filling, multi-site monitoring, and data extraction that would be impossible with traditional APIs.
The cloud infrastructure handles browser complexity while Jan maintains conversational privacy. Just remember: with great browser power comes occasional parsing errors.