agent-vision-mcp
Provides image analysis capabilities using OpenAI-compatible vision APIs, enabling AI agents to analyze and describe images.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-vision-mcpAnalyze the image at /tmp/screenshot.png and describe what you see."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-vision-mcp (hardened)
A hardened fork of @kitlau/agent-vision-mcp
— an MCP server that gives non-vision LLMs the ability to analyze images via any
OpenAI-compatible vision API (Claude Code, DeepSeek, etc.).
This build fixes intermittent empty / truncated image-analysis results and request hangs that affect long outputs (e.g. high-resolution 3D render screenshots) against self-hosted Qwen VLMs and similar backends.
What was broken upstream
The upstream package:
defaulted output
max_tokensto 1024 and never grew it, so long analyses hitfinish_reason: lengthand were cut off mid-sentence — and intermittently returned emptycontent, surfacing as❌ 视觉 API 返回的内容为空;only read
message.content, ignoringmessage.reasoning_contentused by Qwen3.x thinking-style models;had no retry on empty / 5xx / 429 / transient network errors;
set no client timeout, so slow high-res inference could hang and get killed (
MCP error -32001: user-cancel).
Related MCP server: image_mcp
What this build changes
dist/vision-client.js:
Grows
max_tokenson truncation (finish_reason === "length") and retries, so a low ceiling can never silently produce a partial/empty answer (grow ceiling: 32768).Falls back to
message.reasoning_contentwhencontentis empty (Qwen thinking mode).Retries on empty results, 5xx, 429, and network/timeout errors with exponential backoff (default 3 retries).
Sets an explicit client timeout (default 300000 ms) to prevent hangs.
dist/config.js:
Adds
VISION_MAX_TOKENS(default 16384),VISION_TIMEOUT_MS(default 300000),VISION_MAX_RETRIES(default 3) env vars, exposed on the config object.
Install as an MCP server
Point your MCP client at this repo. Example claude_desktop_config.json /
.mcp.json / global ~/.claude.json entry:
{
"mcpServers": {
"agent-vision": {
"type": "stdio",
"command": "node",
"args": ["path/to/this/repo/dist/index.js"]
}
}
}For a drop-in remote install, clone this repo and npm install, then run node dist/index.js.
Or add it as a dependency with npm install github:aabbccddwasd/agent-vision-mcp.
Environment variables
Variable | Default | Description |
| (required) | API key for the OpenAI-compatible endpoint |
|
| OpenAI-compatible base URL |
|
| The vision model, e.g. |
|
| Output token budget (was 1024 upstream) |
|
| Per-request client timeout |
|
| Retries for empty / 5xx / 429 / network errors |
|
| Optional disk response cache |
|
| Cache directory (when enabled) |
|
| Max image bytes (20 MB) |
License
MIT. Original author: kitlau86.
Available Tools
1 toolanalyze_imageAnalyze ImageARead-onlyIdempotent
Analyze an image with a vision AI model, giving a non-vision main model the ability to "see" image content. Call this when the user sends an image, or when you need to understand an image (describe it, OCR text, identify UI elements, read charts, etc.). The image can be provided as a base64 data URL, an HTTP(S) link, or a local file path.
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | The image to analyze. Accepts a base64 data URL (data:image/...), an HTTP/HTTPS link, or a local file path. Formats: JPEG, PNG, WebP, GIF, BMP. | |
| prompt | Yes | What you want analyzed or extracted from the image, e.g. 'Describe this image in detail' or 'Extract all visible text (OCR)'. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false, covering the safety profile. The description adds that it uses a vision AI model and details supported input formats (base64 data URL, HTTP link, local file path). It doesn't disclose failure modes or rate limits, but given the annotation coverage, this is a meaningful addition.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three succinct sentences: purpose, when to call, and input formats. It is front-loaded with the primary function and every sentence contributes distinct value without redundancy or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read-only analysis tool with two well-documented parameters, the description covers the purpose, usage, and input formats thoroughly. The 'see' metaphor implies a textual output, and the examples clarify what to expect. It omits explicit return format or size limits, but those are not critical for an AI agent to invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with both 'image' and 'prompt' clearly documented including formats, requirements, and examples. The description adds no new parameter-level information beyond what the schema provides, so it does not exceed the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Analyze' with the resource 'image', immediately clarifying the tool's function. It goes further by explaining the purpose ('giving a non-vision main model the ability to see') and listing concrete use cases (describe, OCR, identify UI elements, read charts). There are no siblings, so differentiation is not required.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states 'Call this when the user sends an image, or when you need to understand an image', providing clear trigger conditions. It also enumerates example analysis types, which helps the agent decide when to use the tool. No alternatives exist, but the guidance is strong and actionable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.2.0-hardened- First observed
analyze_image
TDQS
There is only one tool, so there is no possibility of ambiguity or misselection. The tool's purpose is clearly distinct and singular.
With a single tool named 'analyze_image', the naming follows a clear and consistent verb_noun pattern. There are no other tools to introduce inconsistency.
The server has only one tool, which is below the typical 3-15 range, but it is a narrow-purpose server focused on image analysis. The single tool is well-scoped and earns its place, making the count slightly under but reasonable.
The single tool covers a wide range of image analysis needs—description, OCR, UI element detection, chart reading, etc. There are no obvious gaps for the stated purpose of giving a non-vision model the ability to see.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Zero-auth MCP: image optimize, cited storage/format data, and dev utilities LLMs get wrong.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables vision capabilities for any AI model by routing image analysis requests through OpenRouter's vision models. It provides tools to analyze images from URLs, local file paths, or base64 data.210120MIT
- AlicenseNot gradedqualityDmaintenanceEnables text-only LLMs to analyze images by routing them to an OpenAI-compatible vision backend, supporting local files, URLs, and data URLs.26MIT
- FlicenseNot gradedqualityCmaintenanceEnables text-only language models to 'see' and describe images by calling multimodal APIs (OpenAI, Anthropic) for image analysis.-
- AlicenseAqualityBmaintenanceEnables LLMs to analyze images via OpenAI-compatible multimodal models, supporting local files, base64, and URLs with safety validation and model selection.1MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/aabbccddwasd/agent-vision-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server