Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BROWSER_MCP_TIMEOUTNo默认操作超时(毫秒)10000
BROWSER_MCP_HEADLESSNo设为 0 显示浏览器窗口,便于观察 AI 操作1
BROWSER_MCP_OUTPUT_DIRNo截图输出目录
BROWSER_MCP_STORAGE_STATENo登录态文件路径,配置后自动加载/保存

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
browser_navigateB

打开指定 URL(自动补全 https://,完成后自动等待网络空闲)

browser_snapshotA

获取页面结构与可交互元素列表(每个元素带 ref 编号),后续操作直接用 ref,无需写选择器

browser_clickB

点击元素。优先用 ref(来自 browser_snapshot,如 'e12');也支持 CSS 选择器 / text=文案 / role=名称

browser_typeB

向输入框输入文字。优先用 ref 定位;可选回车提交

browser_press_keyB

向当前焦点元素发送按键,如 Enter / Tab / ArrowDown

browser_screenshotB

截图当前页面(返回图片并保存到输出目录)

browser_get_textC

获取页面或指定元素的文本内容

browser_evaluateC

在页面上下文执行 JavaScript 并返回结果(读 window 全局变量、DOM 数据等)

browser_scrollC

滚动页面

browser_select_optionC

选择下拉框(select 元素)的选项

browser_waitB

等待:指定毫秒数、或等待某元素/某段文本出现

browser_backB

浏览器后退一步

browser_list_tabsB

列出所有打开的标签页

browser_tabC

新建或切换标签页

browser_save_stateA

把当前登录态(cookie/localStorage)保存到磁盘,重启后免登录。需配置 BROWSER_MCP_STORAGE_STATE

browser_fill_formA

一次性填完整个表单:混合支持文本、勾选/取消勾选、下拉选择,可指定提交按钮。比逐字段调用 browser_type 快数倍

browser_extract_tableA

提取页面 表格数据为 JSON/CSV(自动识别表头),可直接保存为文件

browser_extractB

按"重复容器 + 字段映射"抓取列表数据(商品列表/搜索结果/通知列表等),返回 JSON/CSV

browser_downloadA

点击触发下载并把文件保存到输出目录(如导出按钮、附件链接)

browser_pdfB

把当前页面保存为 PDF(用于报告存档、留证)。注意:仅在无头模式可用

browser_watchB

后台监控页面变化:盯库存/价格/审批状态等。start 登记轮询任务,check 查询变化,stop 停止

browser_closeA

关闭浏览器并释放资源(自动保存登录态)

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 22 tools

Disambiguation4/5

Most tools have clearly distinct targets (navigate vs click vs press_key vs select_option vs download), and the descriptions give explicit routing hints (ref-first, fill_form is the batch version of type). A few pairs still blur: browser_get_text / browser_snapshot / browser_evaluate / browser_extract all return page content, and browser_wait vs browser_watch both involve waiting for change. browser_type vs browser_fill_form is clarified but still a judgment call for the agent.

Naming Consistency5/5

Every tool uses the same browser_ prefix plus a snake_case verb/noun (browser_list_tabs, browser_select_option, browser_save_state). No camelCase, no bare verbs, no version suffixes. The pattern is fully predictable and lets an agent guess names.

Tool Count3/5

22 tools is at the heavy end of the range; the core set (navigate, snapshot, click, type, get_text, screenshot, scroll, tabs) covers 80% of usage, while extract_table, extract, pdf, watch, save_state and fill_form are convenience or niche wrappers. Each is defensible on its own, but the surface is larger than the domain strictly requires.

Completeness4/5

Navigation, interaction, extraction, tabs, downloads, PDF, state persistence and background monitoring are all covered — a fuller lifecycle than most browser servers. Gaps: no hover tool (common for dropdown menus), no dialog/alert accept-dismiss tool, and no drag-and-drop, which will force agents into browser_evaluate workarounds for some flows.

Maintenance

ActivityStale
ResponsivenessNo recent community issues