Agent Browser MCP Server
A browser automation MCP server hosted on Vercel that enables AI agents to perform web interactions like clicking, typing, and capturing screenshots via Browserless.io. It supports persistent session management and Basic authentication for seamless navigation across protected sites.
README
Agent Browser MCP Server
Vercel上でホストされたブラウザ自動化MCPサーバーです。Cursor AgentsやローカルCursorからブラウザ操作を実行できます。
機能
browser_open- URLを開いて新しいセッションを開始(Basic認証対応)browser_snapshot- ページのアクセシビリティスナップショットを取得browser_click- 要素をクリックbrowser_fill- フォームフィールドに値を入力browser_type- テキストをタイプ(人間らしい入力)browser_get_text- 要素からテキストを取得browser_screenshot- スクリーンショットを撮影browser_wait- 要素が表示されるまで待機browser_press_key- キーを押すbrowser_close- セッションを終了
セットアップ
1. 環境変数
Vercelダッシュボードで以下の環境変数を設定:
| 変数名 | 説明 | 必須 |
|---|---|---|
MCP_AUTH_TOKEN |
MCP認証トークン | Yes |
BROWSERLESS_TOKEN |
Browserless.io APIトークン | Yes |
KV_REST_API_URL |
Vercel KV URL | Yes |
KV_REST_API_TOKEN |
Vercel KV Token | Yes |
2. Browserless.io
Browserless.ioでアカウントを作成し、APIトークンを取得してください。
3. Vercel KV
Vercelダッシュボードでプロジェクトに「KV」ストレージを追加してください。
使用例
Basic認証が必要なサイトを開く
Basic認証で保護されたサイトにアクセスする場合は、basic_authパラメータを指定します:
```json { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "browser_open", "arguments": { "url": "https://protected-site.example.com", "basic_auth": { "username": "your-username", "password": "your-password" } } } } ```
認証情報はセッションに保存されるため、同じセッションIDを使う後続の操作でも認証が維持されます。
Cursor Agents での使用方法
リポジトリの .cursor/mcp.json に以下を追加:
```json { "mcpServers": { "agent-browser": { "url": "https://agent-browser-mcp-server.vercel.app/mcp", "headers": { "Authorization": "Bearer ${env:AGENT_BROWSER_MCP_AUTH_TOKEN}" } } } } ```
そして、Cursor Dashboard の Cloud Agents → Secrets で AGENT_BROWSER_MCP_AUTH_TOKEN を登録してください。
セッション管理
セッションには以下が含まれます:
- Cookie
- localStorage
- 現在のURL
- Basic認証情報
セッションは15分間有効です。
ライセンス
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.