Skip to main content
Glama
Oliver0804

cloakbrowser-mcp

by Oliver0804

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
cloak_get_textA

用隱形 Chromium 開啟 url 並回傳可見純文字(適合餵給 LLM 分析)。

會執行 JavaScript,能拿到 SPA / 動態渲染後的內容。需要繞過 Cloudflare / reCAPTCHA 時,設定 proxy(住宅代理)+ geoip=True + humanize=True,必要時 headless=False。

Args: url: 目標網址。 selector: 只取此 CSS selector 的 innerText;省略則取整個 。 wait_selector: 導航後等待此元素出現再擷取(給動態內容用)。 wait_ms: 導航後額外固定等待毫秒數。 wait_until: load | domcontentloaded | networkidle | commit。 max_chars: 內容上限,超過會截斷並標記 truncated。 humanize / proxy / geoip / headless / timezone / locale: 反偵測設定。

cloak_screenshotA

開啟 url 並截圖存成 PNG 到 path(回傳實際存檔路徑)。

full_page=True 截整頁;給 selector 則只截該元素。path 請用絕對路徑。 其餘反偵測參數同 cloak_get_text。

cloak_interactA

在單一 session 內依序執行多個瀏覽器動作,最後擷取結果。

actions 是動作清單,第一個通常是 goto。每個動作是一個 dict,type 可為: {"type":"goto","url":"...","wait_until":"domcontentloaded"} {"type":"click","selector":"button#login"} {"type":"fill","selector":"#email","value":"a@b.com"} {"type":"type","selector":"#q","value":"hello","delay":40} {"type":"press","selector":"#q","keys":"Enter"} {"type":"select","selector":"#country","value":"TW"} {"type":"scroll","dy":1500} {"type":"wait_selector","selector":".results","timeout_ms":15000} {"type":"wait_ms","ms":1500}

extract: text | html | none(最終要回傳的內容形式)。 selector: extract=text 時只取此元素文字。 screenshot_path: 給定則動作跑完後再截一張整頁圖。 其餘反偵測參數同 cloak_get_text;表單 / 登入流程建議 humanize=True。

cloak_get_htmlA

開啟 url 並回傳渲染後的 HTML 原始碼(適合做結構化解析 / 抽取連結)。

selector 省略時回傳整頁 page.content();給 selector 則回傳該元素 outerHTML。 其餘反偵測參數同 cloak_get_text。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Oliver0804/cloakbrowser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server