Quest Browser MCP Server
Controls Oculus Browser via WebSocket CDP protocol, enabling full browser automation with Playwright-like API for navigation, interaction, content extraction, and more.
README
Quest Browser MCP Server
An MCP (Model Context Protocol) server for controlling Oculus Browser via WebSocket CDP protocol. This server provides Playwright-like functionality using direct Chrome DevTools Protocol (CDP) commands, making it compatible with Oculus Browser's CDP 1.3 protocol.
Features
- Reliable WebSocket CDP Connection - Bypasses Playwright's initialization issues
- Full Playwright-like API - All common browser automation features
- TypeScript Implementation - Type-safe and maintainable
- MCP Protocol - Standard Model Context Protocol server
- CDP 1.3 Compatible - Works with Oculus Browser's protocol version
Prerequisites
- Oculus Quest with browser running
- ADB installed and in system PATH
- Device connected via USB or wireless ADB
Note: The MCP server automatically sets up port forwarding on startup. You don't need to run adb forward manually.
Installation
npm install
npm run build
Usage
As MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"quest-browser": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"CDP_ENDPOINT": "http://localhost:9222",
"ADB_PATH": "adb"
}
}
}
}
Direct Usage
# Development mode
npm run dev
# Production mode
npm run build
npm start
Available Tools
ADB Management
adb_check- Check if ADB is available and get versionadb_list_devices- List all ADB devices (connected and disconnected)adb_get_connected_devices- Get only connected ADB devicesadb_forward_port- Set up ADB port forwarding (default: tcp:9222 -> localabstract:chrome_devtools_remote)adb_list_forwardings- List all active ADB port forwardingsadb_remove_forwarding- Remove ADB port forwardingadb_ensure_forwarding- Ensure port forwarding is set up (check first, then set up if needed)
Browser Management
browser_initialize- Initialize browser connection and get available pagesbrowser_connect- Connect to a specific page by indexbrowser_list_pages- List all available pagesbrowser_get_current_page- Get information about the currently connected page
Navigation
browser_navigate- Navigate to a URLbrowser_wait_for_load- Wait for page to finish loadingbrowser_get_url- Get the current page URLbrowser_get_title- Get the page titlebrowser_go_back- Navigate back in browser historybrowser_go_forward- Navigate forward in browser historybrowser_reload- Reload the current pagebrowser_wait_for_navigation- Wait for navigation to completebrowser_wait_for_url- Wait for URL to match pattern
Interaction
browser_click- Click an element by CSS selectorbrowser_type- Type text into an input elementbrowser_wait_for_selector- Wait for an element to appearbrowser_fill- Fill form field with value (more robust than type)browser_select_option- Select option(s) in a dropdownbrowser_check- Check a checkbox or radio buttonbrowser_uncheck- Uncheck a checkboxbrowser_hover- Hover over an elementbrowser_double_click- Double click an elementbrowser_right_click- Right click an elementbrowser_press_key- Press a keyboard keybrowser_drag_and_drop- Drag and drop an element
Content & Evaluation
browser_evaluate- Evaluate JavaScript expression in page contextbrowser_get_content- Get the full HTML content of the pagebrowser_screenshot- Take a screenshot of the current pagebrowser_query_selector- Query a single element by CSS selectorbrowser_query_selector_all- Query multiple elements by CSS selectorbrowser_get_text- Get text content of an elementbrowser_get_attribute- Get attribute value of an elementbrowser_get_inner_html- Get inner HTML of an elementbrowser_get_outer_html- Get outer HTML of an element
Wait Features
browser_wait_for_timeout- Wait for specified time
Network Features
browser_wait_for_response- Wait for network response matching URL patternbrowser_get_network_logs- Get network activity logs
Advanced Features
browser_set_viewport_size- Set viewport sizebrowser_set_geolocation- Set geolocationbrowser_set_permissions- Set browser permissionsbrowser_add_init_script- Add initialization script to run on every page load
Accessibility
browser_get_accessibility_tree- Get accessibility tree snapshot (Playwright MCP specific)browser_snapshot- Get accessibility snapshot (alias for browser_get_accessibility_tree)
Additional Playwright MCP Tools
browser_close- Close the browser connectionbrowser_console_messages- Get console messages from the pagebrowser_file_upload- Upload a file to a file input elementbrowser_fill_form- Fill multiple form fields at oncebrowser_handle_dialog- Handle a JavaScript dialog (alert, confirm, prompt)browser_network_requests- Get list of network requestsbrowser_resize- Resize the browser viewport (alias for browser_set_viewport_size)
Automatic ADB Setup
The MCP server automatically:
- Checks if ADB is available in system PATH
- Detects connected ADB devices
- Sets up port forwarding:
tcp:9222 -> localabstract:chrome_devtools_remote
This happens on server startup, so you don't need to manually run adb forward.
Development
# Watch mode
npm run watch
# Development mode (with tsx)
npm run dev
# Build
npm run build
# Run
npm start
Environment Variables
CDP_ENDPOINT- CDP endpoint URL (default:http://localhost:9222)ADB_PATH- Path to ADB executable (default:adbfrom system PATH)
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.