Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OCR_API_KEYNoAPI key for the dedicated OCR endpoint.
OCR_ENABLEDNoSet to 'true' to enable a dedicated OCR model.
OCR_BASE_URLNoBase URL for the dedicated OCR endpoint.
OCR_MODEL_IDNoModel ID for the dedicated OCR model.
VISION_API_KEYYesAPI key for the OpenAI-compatible vision endpoint.
VISION_BASE_URLYesBase URL of the OpenAI-compatible vision endpoint, e.g., https://your-provider.example/v1.
VISION_MODEL_IDYesModel ID for the vision model, e.g., glm-4v-flash.
VISION_URL_MODENoControls remote-image handling: 'auto' (default), 'passthrough', or 'download'.
UV_DEFAULT_INDEXNoPyPI index URL for package resolution (default: https://pypi.org/simple).
VISION_ALLOWED_PATHSNoComma-separated list of allowed directories for local file access (e.g., /data,/tmp,/home/user/Pictures).

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
vision_analyzeA

Analyze an image using a vision-language model. Returns a unified JSON envelope wrapping summary, observations, uncertainties, and suggested follow-ups (see README 'Response format' for the full schema).

Supports URL, local file path, data URL, and Base64 input.

Task types guide the model:

  • general: General analysis (default)

  • qa: Answer a specific question about the image

  • ui: Analyze UI/layout/interactions/accessibility

  • chart: Analyze charts/graphs/data

  • document: OCR and document structure

  • object: Identify and locate objects

  • screenshot: Analyze application screenshots

  • code_screenshot: Read code from screenshots

vision_inspectA

Inspect image metadata (dimensions, format, size, mode) without calling VLM. Use this before detailed analysis to understand the image dimensions and plan crop coordinates.

vision_crop_analyzeA

Crop a region of an image and analyze it with VLM. This is the most powerful tool for inspecting small text, UI elements, chart data, or error messages.

Coordinates are NORMALIZED (0.0 to 1.0), where (0,0) is top-left and (1,1) is bottom-right.

Workflow: Use vision_inspect first to get dimensions, then vision_analyze for overview, then vision_crop_analyze to zoom into specific regions of interest.

vision_extract_textA

Extract visible text from an image using OCR. Returns structured text organized by reading order.

Use this for: screenshots with text, scanned documents, receipts, tables, forms, Chinese/English OCR, and any text-heavy images.

Uses a configured dedicated OCR model when enabled. If the dedicated OCR model is unavailable, automatically falls back to the VLM provider.

vision_compareA

Compare two or more images and identify differences. Use for:

  • UI regression testing (before/after screenshots)

  • Design vs implementation comparison

  • Bug screenshot comparison

  • Version diff of documents

Returns structured differences with confidence levels.

vision_capabilitiesA

Return current vision-mcp server capabilities, supported models, and limits. Call this to discover what the server can do before using other tools.

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/666666999999666/vision_mcp'

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