Agent Browser MCP Server

$https://github.com/nocall-corp/agent-browser-mcp-server
README.md

Browser automation MCP server hosted on Vercel for AI agents

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

Tools (10)

browser_openOpen a URL and start a new session (supports Basic auth)
browser_snapshotGet an accessibility snapshot of the page
browser_clickClick an element on the page
browser_fillFill a form field with a value
browser_typeType text with human-like input behavior
browser_get_textRetrieve text content from an element
browser_screenshotTake a screenshot of the current page
browser_waitWait for an element to appear on the page
browser_press_keyPress a specific key on the keyboard
browser_closeTerminate the current browser session

Environment Variables

MCP_AUTH_TOKENrequiredMCP authentication token
BROWSERLESS_TOKENrequiredBrowserless.io API token
KV_REST_API_URLrequiredVercel KV URL
KV_REST_API_TOKENrequiredVercel KV Token

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "agent-browser": {
      "url": "https://agent-browser-mcp-server.vercel.app/mcp",
      "headers": {
        "Authorization": "Bearer ${env:AGENT_BROWSER_MCP_AUTH_TOKEN}"
      }
    }
  }
}

Try it

Open https://example.com and take a screenshot of the homepage.
Log into the site at https://protected-site.example.com using my basic auth credentials and tell me what text is in the main header.
Go to the search page, type 'MCP Server' into the search box, and click the submit button.
Wait for the login button to appear on the page and then click it.
Get an accessibility snapshot of the current page to help me understand the structure.

Frequently Asked Questions

What are the key features of Agent Browser MCP Server?

Persistent session management including Cookies, localStorage, and Basic auth.. Human-like text typing and interaction capabilities.. Accessibility snapshot and screenshot capture for visual verification.. Vercel-hosted architecture using Browserless.io for remote execution..

What can I use Agent Browser MCP Server for?

Automating interactions with Basic Auth protected staging environments.. Performing multi-step web workflows that require session persistence.. Capturing visual snapshots of web pages for automated reporting.. Enabling Cursor Agents to navigate and extract data from live websites..

How do I install Agent Browser MCP Server?

Install Agent Browser MCP Server by running: https://github.com/nocall-corp/agent-browser-mcp-server

What MCP clients work with Agent Browser MCP Server?

Agent Browser MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Agent Browser MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free