Skip to main content
Glama

🌐 Web MCP

The ultimate web-access MCP server. Combines extended Playwright browser automation with stealth capabilities, free web search, and dual-mode HTML-to-Markdown conversion.

Features

  • Browser automation with three engines: vanilla Playwright, Camoufox (Firefox stealth), and CloakBrowser (Chromium stealth)

  • Free web search via DDGS (multi-backend: Bing, Brave, DuckDuckGo, Google, Yahoo, Wikipedia)

  • HTML-to-Markdown in two modes: as-is structural conversion (markdownify) and article extraction (Trafilatura)

Related MCP server: Playwright MCP Server

Requirements

  • Python 3.12+

  • uv

Setup

uv sync
uv run playwright install

Usage

Run MCP server over stdio

uv run python -m web_mcp

Run MCP server over HTTP

  1. Start Web MCP in HTTP mode:

uv run python -m web_mcp --http

By default, MCP server will run at:

http://127.0.0.1:9000/mcp
  • --host — bind address; default 127.0.0.1, or set WEB_MCP_HOST.

  • --port — bind port; default 9000, or set WEB_MCP_PORT.

  • --path — MCP URL path; default /mcp, or set WEB_MCP_PATH.

Add to MCP configuration (stdio-based)

{
  "mcpServers": {
    "web-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/web-mcp", "python", "-m", "web_mcp"]
    }
  }
}

Tools

Browser Tools

Tool

Description

browser_configure

Set engine (playwright/camoufox/cloakbrowser), stealth options, proxy, viewport

browser_navigate

Navigate to URL

browser_navigate_back

Go back in history

browser_snapshot

Get accessibility tree with numbered element refs

browser_take_screenshot

Capture page or element screenshot

browser_click

Click an element by ref

browser_type

Type text into an element

browser_fill_form

Fill multiple form fields at once

browser_select_option

Select dropdown option(s)

browser_hover

Hover over an element

browser_drag

Drag and drop between elements

browser_press_key

Press a keyboard key

browser_evaluate

Execute JavaScript on the page

browser_wait_for

Wait for time, text, or selector

browser_tabs

List, create, close, or switch tabs

browser_resize

Resize viewport

browser_file_upload

Upload file(s) to a file input

browser_handle_dialog

Handle alert/confirm/prompt dialogs

browser_console_messages

Get console output

browser_network_requests

Get network request log

browser_get_html

Get page HTML source

browser_get_as_markdown

Current page HTML as Markdown (same conversion as fetch_as_markdown)

browser_close

Close the browser

Search Tools

Tool

Description

web_search

Text search with configurable backend

news_search

News search

image_search

Image search

Content Tools

Tool

Description

html_to_markdown

Convert HTML to Markdown as-is (full structure)

extract_article

Extract article from HTML via Trafilatura

fetch_raw_page_as_html

HTTP-fetch a URL, return raw HTML

fetch_as_markdown

HTTP-fetch + convert to Markdown

fetch_article

HTTP-fetch + extract article

Available Tools

31 tools
browser_clickB

Click a page element identified by its ref number from browser_snapshot.

Modifiers can include 'Alt', 'Control', 'Meta', 'Shift'.

Inputs: ref (required), button, modifiers, double_click. Returns: result

browser_closeA

Close the browser and free resources. The browser can be re-launched by navigating again.

Inputs: no named parameters. Returns: result

browser_configureA

Configure the browser engine and stealth options. Call before navigating.

Engines:

  • playwright: vanilla Playwright (chromium/firefox/webkit). Set user_agent manually.

  • camoufox: Firefox stealth with auto-generated fingerprints. Use geoip=True with a proxy.

  • cloakbrowser: Chromium stealth (passes Cloudflare). Use humanize=True for human-like input.

The browser launches automatically on the first navigation. Re-calling this closes the current browser and applies the new config.

Inputs: geoip, engine, locale, headless, +8 more. Returns: result

browser_console_messagesB

Get console messages from the browser. Each level includes more severe levels.

Inputs: level. Returns: result

browser_dragC

Drag an element and drop it onto another element.

Inputs: end_ref (required), start_ref (required). Returns: result

browser_evaluateB

Execute JavaScript on the page and return the result.

If ref is provided, the expression receives the element as its first argument (use element => element.textContent style arrow functions).

Inputs: expression (required), ref. Returns: result

browser_file_uploadC

Upload file(s) to a file input element. Paths must be absolute.

Inputs: ref (required), paths (required). Returns: result

browser_fill_formA

Fill multiple form fields at once.

fields_json: a JSON array of objects, each with:

  • ref (int): element ref from browser_snapshot

  • value (str): value to set

  • type (str, optional): "textbox" | "checkbox" | "radio" | "combobox" | "slider" (defaults to "textbox")

Example: [{"ref": 3, "value": "Alice"}, {"ref": 5, "value": "true", "type": "checkbox"}]

Inputs: fields_json (required). Returns: result

browser_get_as_markdownA

Convert the current page HTML to Markdown (as-is, no content filtering).

Same conversion as fetch_as_markdown: full structural Markdown with script/style stripped.

Inputs: no named parameters. Returns: result

browser_get_htmlA

Get the full HTML source of the current page.

[!] DO NOT use this tool unless you absolutely need the raw HTML. In most cases, using browser_get_as_markdown is the right way to go. The output of this tool may be extremely long, use it only when truly required.

Inputs: no named parameters. Returns: result

browser_handle_dialogB

Set up a handler for the next browser dialog (alert/confirm/prompt).

Call this BEFORE the action that triggers the dialog.

Inputs: accept (required), prompt_text. Returns: result

browser_hoverC

Hover over a page element identified by its ref number.

Inputs: ref (required). Returns: result

browser_navigateB

Navigate the browser to a URL. Launches the browser if not already running.

Inputs: url (required). Returns: result

browser_navigate_backA

Go back to the previous page in browser history.

Inputs: no named parameters. Returns: result

browser_network_requestsB

Get the network request log since the page was loaded.

Inputs: no named parameters. Returns: result

browser_press_keyB

Press a keyboard key (e.g. 'Enter', 'Tab', 'Escape', 'ArrowDown', 'a').

Inputs: key (required). Returns: result

browser_resizeC

Resize the browser viewport.

Inputs: width (required), height (required). Returns: result

browser_select_optionC

Select one or more options in a dropdown by their values.

Inputs: ref (required), values (required). Returns: result

browser_snapshotA

Get an accessibility snapshot of the current page.

Returns a text tree of page elements. Interactive elements are labeled with [ref] numbers that can be used in other browser tools (click, type, etc.). Always call this before interacting with elements.

Inputs: no named parameters. Returns: result

browser_tabsA

Manage browser tabs.

Actions:

  • list: show all open tabs

  • new: open a new tab (optionally navigate to url)

  • close: close tab at index (default: active tab)

  • select: switch to tab at index

Inputs: action (required), url, index. Returns: result

browser_take_screenshotC

Take a screenshot of the page or a specific element.

Returns a base64-encoded PNG image.

Inputs: ref, full_page. Returns: result

browser_typeA

Type text into a page element (appends to existing text).

Set submit=True to press Enter after typing. Set slowly=True for human-like speed.

Inputs: ref (required), text (required), slowly, submit. Returns: result

browser_wait_forB

Wait for a condition: a number of seconds, specific text to appear, or a CSS selector.

Inputs: text, selector, time_seconds. Returns: result

extract_articleB

Extract article content from HTML and convert to Markdown.

Strips navigation, ads, sidebars, and other clutter. Returns clean Markdown plus metadata (title, author, date) when available.

Inputs: html (required), include_links, include_images, include_tables, +1 more. Returns: result

fetch_articleB

Fetch a URL and extract the article to Markdown. Use this tool when accessing news articles, blog-posts or similar content. In other cases it may return empty or partial results.

Combines fetch_page + extract_article in one call. Returns clean Markdown with metadata.

Inputs: url (required), headers, include_links, include_images. Returns: result

fetch_as_markdownB

Fetch a URL and convert the full HTML to Markdown (as-is, no content filtering).

Combines fetch_page + html_to_markdown in one call.

Inputs: url (required), headers. Returns: result

fetch_raw_page_as_htmlA

Fetch a URL via HTTP and return the raw HTML. [!] DO NOT use this tool unless you absolutely need the raw HTML. In most cases, using fetch_as_markdown is the right way to go. The output of this tool may be extremely long, use it only when truly required.

This is a lightweight fetch (no JavaScript rendering). For JS-heavy pages, use browser_navigate + browser_get_html instead.

Inputs: url (required), headers. Returns: result

html_to_markdownA

Convert an HTML string to Markdown as-is (preserves the full page structure).

This performs a faithful structural conversion — no content is stripped. Use extract_article instead if you want to pull just the article body.

Inputs: html (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 31 tools

    Disambiguation3/5

    The browser_* interaction tools are cleanly separated, but the content-retrieval layer has seven overlapping tools (browser_get_html, browser_get_as_markdown, html_to_markdown, extract_article, fetch_raw_page_as_html, fetch_as_markdown, fetch_article) whose boundaries differ only by source (live DOM vs HTTP) and fidelity (as-is vs article extraction). Descriptions do explain the distinctions and convenience combos, and the '[!] DO NOT use' warnings steer agents away from the raw-HTML variants, but an agent must still reason carefully to pick correctly.

    Naming Consistency4/5

    All names are snake_case with coherent verb-first or subject-first phrasing, and the browser_* family is strongly grouped. Minor deviations exist in the fetch family, where the pattern shifts between fetch_as_markdown, fetch_article, and fetch_raw_page_as_html, and some html_/extract_ tools lack a shared prefix.

    Tool Count2/5

    At 31 tools this is over the comfortable range, and several are redundant convenience combinations (fetch_as_markdown = fetch + html_to_markdown; fetch_article = fetch + extract_article) rather than independent capabilities. The count could be meaningfully reduced without losing surface area.

    Completeness4/5

    Coverage of the browser-automation lifecycle is strong: navigate/back, snapshot, click/type/hover/drag, forms, keys, tabs, dialogs, uploads, viewport, console, network, screenshots, and teardown. Small gaps remain, such as no forward history navigation, no cookie/storage or download handling.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides web search and page fetch capabilities using a browser-based approach, enabling LLMs to search DuckDuckGo, Google, or Yandex and retrieve rendered HTML from URLs.
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables browser automation using Playwright, allowing LLMs to interact with web pages, take screenshots, generate test code, scrape web pages, and execute JavaScript in a real browser environment.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides browser automation using Playwright, enabling LLMs to interact with web pages, take screenshots, scrape, and execute JavaScript.
      MIT