🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

ui-vision-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-vision-mcp

MCP Server for multi-model vision analysis

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
8
60%
Maintainers
1
Weekly downloads
 
Created
Source

UI Vision MCP Server

MCP Server for multi-model vision analysis. Enables Claude Code to analyze images using external vision AI models (GLM, Gemini, GPT-4o, etc.).

Installation

npm install
npm run build

Configuration

Create config file at ~/.config/ui-vision-mcp/config.json:

{
  "models": [
    {
      "name": "glm",
      "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
      "apiKey": "${GLM_API_KEY}",
      "model": "glm-4.6v-flash"
    },
    {
      "name": "gemini",
      "baseUrl": "https://generativelanguage.googleapis.com/v1beta/openai",
      "apiKey": "${GEMINI_API_KEY}",
      "model": "gemini-2.5-flash"
    }
  ]
}

Environment variables in ${VAR_NAME} format are automatically expanded.

Custom Config Path

Set VISION_CONFIG environment variable to use a different config file path.

Claude Code Setup

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "ui-vision": {
      "command": "npx",
      "args": ["ui-vision-mcp"],
      "env": {
        "VISION_CONFIG": "/path/to/custom/config.json",
        "GLM_API_KEY": "your-api-key"
      }
    }
  }
}

Tool: analyze_image

Analyzes images using configured vision models in parallel.

Parameters:

NameTypeDescription
imagesstring[]Image paths (local files, URLs, or base64 data)
promptstringAnalysis instruction

Example:

{
  "images": ["./design.png", "./screenshot.png"],
  "prompt": "Compare these two images. The first is the design, the second is the implementation. List differences in layout, spacing, and colors."
}

Response:

{
  "results": [
    { "model": "glm-4.6v-flash", "result": "Analysis from GLM..." },
    { "model": "gemini-2.5-flash", "result": "Analysis from Gemini..." }
  ]
}

Supported Providers

ProviderBase URLModel Examples
GLMhttps://open.bigmodel.cn/api/paas/v4glm-4.6v-flash
Geminihttps://generativelanguage.googleapis.com/v1beta/openaigemini-2.5-flash
OpenAIhttps://api.openai.com/v1gpt-4o
OpenRouterhttps://openrouter.ai/api/v1Various

Any OpenAI-compatible API endpoint can be used.

FAQs

Package last updated on 05 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts