WORLDBOOK

Worldbooks | WebMCP | Search | Submit WebMCP

booking WebMCP

Browser tool configuration for booking

URL Pattern: ^https?://(www\.)?booking\.com(/.*)?$

Tools (1)

search_hotels()

Search for hotels by destination and dates

Parameters

destination string required - Destination city
checkIn string required - Check-in date (YYYY-MM-DD)
checkOut string required - Check-out date (YYYY-MM-DD)
guests number - Number of guests

JavaScript Handler

(params) => {
  const searchBox = document.querySelector('[data-testid="destination-container"] input');
  if (searchBox) {
    searchBox.value = params.destination;
    searchBox.dispatchEvent(new Event('input', { bubbles: true }));
  }
  return { success: true, message: 'Search criteria filled' };
}

WebMCP clients

Use mcp-chrome, or fetch the same tools from the public API in your own browser automation runtime.

Get Extension →

How to Use WebMCP

WebMCP tools are designed for browser extensions or automation frameworks. The browser extension matches the current URL against the pattern and executes the JavaScript handler when the tool is invoked.

API Endpoint:

GET /api/webmcp/match?url=https://www.booking.com/...

Third-party clients can use the same endpoint as mcp-chrome. Execute the returned JavaScript handler in your own browser page context.