agent-browser
🌐 Agent Browser API
AIエージェントのための、汎用的で完全に動作するヘッドレスブラウザ。 あらゆるエージェント — Zapier Agents、Custom GPTs、Claude、Cursor、LangChain、CrewAI、n8n、Make、または独自のコード — に本物のChromiumブラウザを提供します:JavaScriptレンダリング、ウェブ検索、クリック、タイピング、フォーム入力、ドロップダウン、スクリーンショット、テーブル&データ抽出、PDF生成。
🇮🇳 ヒンディー語TL;DR: Yeh ek real browser hai jo koi bhi AI agent use kar sakta hai — 3 tarike: simple REST API, OpenAPI import (Custom GPT), ya native MCP (Claude/Cursor/ChatGPT). Deploy karo, API key set karo, ho gaya. ✅ 26/26 tests passing.
🔌 あらゆるエージェントと連携 — 3つの接続方法
モード | 対象 | 方法 |
REST API | Zapier Agents、n8n、Make、LangChain、CrewAI、任意のコード |
|
OpenAPI | OpenAI Custom GPTs(Actions)、APIツール |
|
MCP 🆕 | Claude Desktop/Code、Cursor、Windsurf、ChatGPT、VS Code、n8n MCP | MCPクライアントを |
プラットフォーム別の完全なコピーペーストガイド:INTEGRATIONS.md ・ Zapier固有の詳細:ZAPIER_SETUP.md
Related MCP server: WebControl
✨ 機能
機能 | エンドポイント | 説明 |
📖 ブラウズ |
| 任意のページ(JS含む)をレンダリング → クリーンなMarkdown + タイトル + リンク + メタデータ。LLM対応。 |
🔍 検索 |
| 自動フォールバック付きのBrave/Bing/DDGによるウェブ検索。検索APIキーは不要。 |
📸 スクリーンショット |
| ページ、全ページ、または単一要素のPNG。カスタムビューポート。バイナリまたはbase64。 |
🧲 抽出 |
| CSSセレクタによる構造化データ → JSON。 |
📊 テーブル |
| ページ上のすべてのデータテーブル → JSON(ヘッダー+行)。レイアウト用・非表示テーブルはスキップ。 |
🖱️ 要素 |
| すぐに使えるCSSセレクタ付きの表示中のリンク/ボタン/入力欄 — エージェントは何がクリック可能かを見ることができます。 |
| 任意のページをPDFにレンダリング(縦/横)。 | |
🧭 セッション |
| ステートフルなマルチステップフロー: |
🤝 MCP |
| 上記すべてをネイティブMCPツールとして提供(スクリーンショットは実際の画像として返されます)。 |
さらに:APIキー認証、CORS、レート制限、SSRFガード、セッション自動期限切れ+LRUエビクション、ステルス基本機能、SPA待機処理、LLMコンテキスト安全性のための出力切り詰め、役立つエラーhint、/llms.txt、完全なOpenAPI仕様。
🚀 クイックスタート
無料でデプロイ(Render)— 推奨
このリポジトリをGitHubにフォーク/プッシュします。
render.comにアクセス → New → Blueprint → このリポジトリを選択(
render.yamlが自動検出されます)。サービスのEnvironmentタブから生成された
API_KEYをコピーします。https://your-service.onrender.comで稼働 🎉
Railway、Fly.io、または任意のDockerホストでも動作します。
Docker
docker build -t agent-browser .
docker run -p 8080:8080 -e API_KEY=your-secret-key agent-browserローカルで実行
npm install # installs deps + Chromium
API_KEY=your-secret-key npm start
# → agent-browser v2.0.0 listening on :8080🧪 試してみる
BASE=http://localhost:8080; KEY=your-secret-key
# Read a JS-heavy page as markdown
curl -X POST $BASE/v1/browse -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://news.ycombinator.com"}'
# Search the web
curl -X POST $BASE/v1/search -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"query":"best CRM for startups","limit":5}'
# Extract every table on a page as JSON
curl -X POST $BASE/v1/tables -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://www.scrapethissite.com/pages/forms/"}'
# Multi-step: search Wikipedia interactively
SID=$(curl -s -X POST $BASE/v1/sessions -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://en.wikipedia.org"}' | jq -r .sessionId)
curl -X POST $BASE/v1/sessions/$SID/fill -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"fields":{"input[name=search]":"Artificial intelligence"}}'
curl -X POST $BASE/v1/sessions/$SID/press -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"key":"Enter"}'
curl $BASE/v1/sessions/$SID/content -H "X-API-Key: $KEY"
curl -X DELETE $BASE/v1/sessions/$SID -H "X-API-Key: $KEY"完全なスモークテストスイートを実行:npm test — すべてのエンドポイントと実際のMCPクライアントの往復をカバーする26のチェック。
⚙️ 設定(環境変数)
変数 | デフォルト | 説明 |
| (空 = 認証オフ、開発のみ!) | すべての非公開エンドポイントに必要なキー。 |
|
| HTTPポート。 |
|
| 最大同時ステートフルセッション数(LRUエビクション)。 |
|
| アイドルセッションの期限切れ(10分)。 |
|
| ナビゲーションタイムアウト。 |
|
| APIキーまたはIPごとのリクエスト/分( |
|
| 許可されるCORSオリジン。 |
|
| プライベート/内部アドレスのブラウズを許可(SSRFガードオフ)。 |
🔒 セキュリティに関する注意事項
本番環境では必ず
API_KEYを設定してください(Renderブループリントが自動生成します)。http/httpsURLのみ許可。localhost/プライベート/メタデータアドレスはデフォルトでブロックされます。HTTPSの背後で実行してください(Render/RailwayはTLSを無料で提供します)。
evaluateはサンドボックス化されたページ内で任意のJSを実行します — APIキーは秘密に保ってください。公開(キーなし)エンドポイントは読み取り専用の情報提供です:
/、/health、/openapi.yaml、/llms.txt、/v1/tools。
📁 プロジェクト構造
src/server.js # Express API: auth, CORS, rate limit, routes
src/actions.js # Shared high-level actions (used by REST + MCP)
src/browser.js # Chromium lifecycle, sessions, TTL/LRU, SSRF guard
src/extract.js # HTML → markdown, CSS extraction, tables, elements
src/search.js # Multi-engine web search with fallback
src/mcp.js # MCP server (Streamable HTTP, 22 tools)
src/tools-manifest.js # GET /v1/tools (OpenAI function format)
openapi.yaml # Full API specification
test/run-tests.sh # 26-check smoke-test suite (incl. MCP round-trip)
Dockerfile # Production image (Playwright base, version-pinned)
render.yaml # One-click Render deployライセンス
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to control the Google Chrome browser through a Node.js WebSocket bridge and a dedicated browser extension. It provides tools for capturing screenshots, executing JavaScript, managing tabs, and extracting page content via the MCP protocol.2
- FlicenseNot gradedqualityCmaintenanceHeadless browser automation for LLM agents via REST API or MCP tools. Enables navigating pages, reading structured content, clicking elements, filling forms, and executing JavaScript.
- AlicenseNot gradedqualityDmaintenanceProvides a real browser that bypasses bot detection (Cloudflare, Turnstile) for AI agents, enabling navigation, clicking, typing, screenshots, and data collection through MCP tools.71MIT
- AlicenseNot gradedqualityBmaintenanceHosted Chrome as an MCP skill. Enables any MCP-compatible agent to drive a real Chromium browser for tasks like navigation, clicking, typing, and taking screenshots.20MIT
Related MCP Connectors
Stealth web browser for agents: search, fetch, click and type through persistent sessions over MCP.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Screenshot, diff, audit and sitemap-capture any web page — 5 MCP tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gopendrasharma89-tech/agent-browser'
If you have feedback or need assistance with the MCP directory API, please join our Discord server