Browser API for AI Agents
Browser API for AI Agents — MCP, LangChain & Stagehand-Compatible
Give your LLM a real Chrome it can drive. MCP-native, Stagehand-compatible, plug into LangChain, Vercel AI SDK, and Claude Computer Use in minutes.
- Hosted MCP server: mcp.browserforhire.com — works with Claude Desktop, Claude Code, Cline, and any MCP host.
- LangChain @browserforhire/langchain tool — drop into any agent.
- Stagehand-compatibility mode — Browserbase Stagehand code runs unchanged.
- Persistent session tokens carry cookies and storage between agent steps.
claude_desktop_config.jsonJSON
{
"mcpServers": {
"browserforhire": {
"command": "npx",
"args": ["-y", "@browserforhire/mcp"],
"env": { "BFH_API_KEY": "bf_live_..." }
}
}
}What you get
MCP-native
Hosted MCP server + npm package @browserforhire/mcp. Tools: goto, click, fill, scrape, screenshot, run_js. Works with Claude Desktop, Cline, OpenAI Operator.
NL-to-action
Stagehand-compatibility mode lets agents write ‘click the Subscribe button’ and the gateway translates to a real DOM action.
Persistent context
session=<id> carries auth, cookies and storage across agent steps. Long-running agents stay logged in.
Why this is better than the alternatives
| Capability | Most cloud browser APIs | BrowserForHire |
|---|---|---|
| MCP | Often missing or beta | Native, hosted + npm package |
| Stagehand | Browserbase-only | Compatible, drop in connect URL |
| Pricing | Per browser-hour | Per request — fits short agent steps |
| Self-host | Cloud-only | Apache-2.0 Docker image |
FAQ
Which agent frameworks do you support?+
LangChain, LlamaIndex, AutoGen, CrewAI, Vercel AI SDK, OpenAI Operator (compatibility endpoint), Claude Computer Use bridge, Stagehand-compatibility mode, and any MCP host (Claude Desktop, Cline, Continue, Cursor).
How do agents pay only for what they use?+
Per-request credits map cleanly to agent steps. A short tool call = 1 credit. A long page-load = 1 credit per 30s. No hourly buckets to worry about.
Ship Chrome to production today.
Free 1,000 credits, no credit card. Drop-in replacement for Browserless.