Skip to main content
Glama
JesonMrLiu

claude-image-recognition-mcp

by JesonMrLiu

claude-image-recognition-mcp

OpenAI-compatible vision recognition MCP server. Lets any MCP client (Claude Code with a non-multimodal model, etc.) "see" images by routing them to any OpenAI-compatible vision model (GLM-4V, Qwen-VL, GPT-4o, vLLM, …).

Install

npm i claude-image-recognition-mcp
# or use directly via npx
npx claude-image-recognition-mcp

Related MCP server: z_ai_vision_mcp_server_clone

Configure

Set environment variables (all prefixed IMAGE_RECOGNITION_):

Var

Required

Default

Description

IMAGE_RECOGNITION_API_KEY

API key

IMAGE_RECOGNITION_BASE_URL

OpenAI-compatible root, e.g. https://open.bigmodel.cn/api/paas/v4

IMAGE_RECOGNITION_MODEL

Vision model id, e.g. glm-4v-plus

IMAGE_RECOGNITION_DETAIL

high

low/high/auto

IMAGE_RECOGNITION_MAX_TOKENS

2048

64–8192

IMAGE_RECOGNITION_TIMEOUT_MS

60000

per-request timeout

IMAGE_RECOGNITION_DOWNLOAD_URL

0

1 = download URL images to base64

IMAGE_RECOGNITION_MAX_FILE_MB

15

local file size cap

Wire into an MCP client

{
  "mcpServers": {
    "image-recognition": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "claude-image-recognition-mcp"],
      "env": {
        "IMAGE_RECOGNITION_API_KEY": "<key>",
        "IMAGE_RECOGNITION_BASE_URL": "https://open.bigmodel.cn/api/paas/v4",
        "IMAGE_RECOGNITION_MODEL": "glm-4v-plus"
      }
    }
  }
}

Tool: recognize_image

Param

Type

Description

image

string (required)

local path / http(s) URL / literal clipboard

prompt

string

question or instruction (default: describe the image)

model

string?

override configured model id

detail

low|high|auto?

OpenAI vision detail

max_tokens

number?

64–8192

Clipboard

  • Windows: Win+Shift+S, then pass image: "clipboard"

  • macOS: needs brew install pngpaste

  • Linux: needs wl-paste (Wayland) or xclip (X11)

License

MIT

Available Tools

1 tool
recognize_imageA

Recognize / analyze an image via an OpenAI-compatible vision model. Supports a local file path, an http(s) URL, or the literal 'clipboard'. Returns the model's textual answer to your prompt.

ParametersJSON Schema
NameRequiredDescriptionDefault
imageYesLocal file path | http(s) URL | the literal 'clipboard'
modelNoOverride the configured vision model id
detailNoOpenAI vision detail level (default: high)
promptNoQuestion or instruction about the imageDescribe this image in detail.
max_tokensNoMax tokens for the response

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the transparency burden. It discloses that the tool uses an OpenAI-compatible vision model and returns a textual answer, implying an external network call. However, it does not mention error behavior, side effects, or privacy implications of sending images to a remote model, which would be relevant for a tool like this.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action, and every sentence conveys necessary information without any fluff. It is a model of concise, effective tool definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 5 parameters and no output schema, but the description explains the core purpose, accepted image sources, and return type. It does not describe the other parameters in detail, but the schema does, and for a moderately complex tool this is adequate and slightly above average.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description primarily restates the image parameter's allowed formats (local path, URL, clipboard), which adds minimal value over the schema. It does not elaborate on the other parameters beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Recognize / analyze' plus resource 'an image', and clearly states the supported input formats and return type. It unambiguously identifies the tool as an image analysis tool, even though no sibling tools exist to distinguish from.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use vs alternatives, but since no sibling tools are provided, the context is clear. The description implies its use for analyzing images via a vision model and lists accepted input sources, giving sufficient guidance for when to choose this tool.

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.

  1. 1 tool updatev0.1.0
    • First observedrecognize_image

TDQS

A4.1/5.0

Scored across 1 tool

Disambiguation5/5

With only a single tool, there is no possibility of confusion between tools; the tool's name and description clearly define its purpose.

Naming Consistency5/5

The tool name follows a clear verb_noun convention (recognize_image), and since there is only one tool, naming consistency is trivially maintained.

Tool Count3/5

The server exposes a single tool, which is on the edge of being too few for a typical MCP server. While the tool is substantive and not trivial, the surface area feels thin compared to servers that offer multiple related operations.

Completeness4/5

The tool covers the core operation of image recognition/analysis with flexible input sources (path, URL, clipboard). Minor gaps might include additional controls or metadata, but the primary workflow is well-covered.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers