Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WEBP_QUALITYNo存储帧的 WebP 压缩质量(1-100)75
ANTHROPIC_MODELYes调用的模型名(必填)
VISION_PROVIDERNo目前只实现了 anthropicanthropic
CAPTURE_MAX_EDGENo发给视觉 API 前的长边像素上限1564
MAX_FRAME_BUFFERNo滑动窗口大小20
ANTHROPIC_API_KEYYesAPI 密钥(必填)。如果设置了 ANTHROPIC_AUTH_TOKEN 且未设置此变量,将自动使用 ANTHROPIC_AUTH_TOKEN。
ANTHROPIC_BASE_URLNo留空走官方 API;填了就走该 URL 下的 /v1/messages
PHASH_DEDUPE_LOOKBACKNo与最近多少帧做 phash 比较3
PHASH_DEDUPE_THRESHOLDNo汉明距阈值,低于此值视为重复帧丢弃6
DEFAULT_POLLING_INTERVALNo轮询模式下相邻两次采集的间隔(秒)3.0

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
start_captureA

Begin a screen-capture session. mode='fullscreen' works on every platform; mode='window' is Windows-only and requires target to be either a window-title substring or a hex hwnd (e.g. 'Notepad' or '0x1a2b3c').

stop_captureA

End the current capture session.

capture_nowA

Take a single screenshot on demand. Returns frame metadata (id, size, phash, timestamp) — NOT the image bytes. Use analyze_screen to actually read the content.

set_pollingB

Enable or disable a low-frequency background polling loop that keeps the frame buffer fresh. Default interval is 3 seconds.

list_windowsA

List visible top-level windows. On non-Windows platforms returns [].

analyze_screenA

Send recent frames to the configured vision provider along with the user's question, and return the model's answer. lookback_frames controls how many of the most recent frames to include (default 3).

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/shawlzs/screen-mcp'

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