Logo van Visual Enhancement MCP

Visual Enhancement MCP

Community
goehou

MCP stdio server for image recognition via an existng vision model 一个可以增强claude code/codex/opencode识图能力的MCP

Uitgevergoehou
RepositoryVisual-Enhancement-mcp
TaalTypeScript
Forks
6
Sterren
97
Beschikbare tools
0
Transporttypestdio
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Visual Enhancement MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    97 sterren en 6 forks in de gekoppelde repository.

mcp-vision-server

English | 简体中文

mcp-vision-server is an MCP stdio server that lets MCP clients analyze images and run OCR through an existing OpenAI-compatible vision Chat Completions API.

This document focuses on how to configure and use the server from an MCP client.

What it provides

  • vision_analyze: general image understanding with a custom prompt.
  • vision_ocr: OCR extraction with optional language and output-format hints.
  • Image input through exactly one of:
    • imagePath: a local absolute image path available to the MCP server process.
    • imageUrl: http://, https://, data:, or file:// URL.
    • imageBase64 + imageMediaType: uploaded attachment bytes forwarded by the client.
    • images: an array (up to 8) of the fields above, for multi-image calls such as comparisons.
  • OpenAI-compatible upstream request shape: Chat Completions with text plus one or more image_url parts.
  • Automatic retry with backoff on upstream 429/5xx/network/timeout failures.
  • Size limits on local file, base64, and data-URL images to avoid excessive memory use.
  • Optional in-memory result cache for identical (tool + prompt + images + options) calls.
  • Structured MCP output in addition to plain text content.

Required configuration

The server needs an upstream vision model endpoint. At minimum configure:

SettingRequiredCLI optionEnvironment variableDescriptionExample
API base URLYes--api-base-urlVISION_API_BASE_URLRoot URL of the upstream OpenAI-compatible API. Prefer scheme + host only; keep the request path in api-path.https://api.openai.com
ModelYes--modelVISION_MODELDefault vision-capable model exposed by the upstream API. A tool call can override it with model.gpt-4o-mini
API keyUsually--api-keyVISION_API_KEYBearer token sent as Authorization: Bearer <key>. Omit only when your endpoint does not require authentication.sk-xxxx

The final upstream URL is built from:

text
<api-base-url><api-path>

Example:

text
VISION_API_BASE_URL=https://api.openai.com
VISION_API_PATH=/v1/chat/completions
=> https://api.openai.com/v1/chat/completions

Full configuration reference

Configuration priority:

text
CLI arguments > environment variables > defaults
PurposeCLI optionAliasEnvironment variableDefaultNotes
Upstream API base URL--api-base-url <url>--vision-api-base-urlVISION_API_BASE_URLnoneRequired. Use the API root such as https://api.openai.com.
Upstream API path--api-path <path>--vision-api-pathVISION_API_PATH/v1/chat/completionsChat Completions endpoint path.
Upstream API key--api-key <key>--vision-api-keyVISION_API_KEYnoneAdded as a Bearer token when set.
Default model--model <name>--vision-modelVISION_MODELnoneRequired. Must support image input.
Request timeout--timeout-ms <ms>--vision-timeout-msVISION_TIMEOUT_MS60000Invalid or non-positive environment values fall back to default.
Default output token limit--max-tokens <n>--vision-max-tokensVISION_MAX_TOKENS4096Sent upstream as max_tokens when a tool call omits maxTokens.
Max image size--max-image-bytes <n>--vision-max-image-bytesVISION_MAX_IMAGE_BYTES10485760 (10MB)Applies to imagePath, imageBase64, and file:/data: URLs before the payload is held in memory.
Upstream retry count--max-retries <n>--vision-max-retriesVISION_MAX_RETRIES2Retries on 429/5xx/network/timeout failures, with exponential backoff. 0 disables retries.
Result cache TTL--cache-ttl-ms <ms>--vision-cache-ttl-msVISION_CACHE_TTL_MS300000 (5 min)Caches identical (tool + prompt + images + options) results in memory. 0 or negative disables the cache.
MCP server name--server-name <name>--mcp-server-nameMCP_SERVER_NAMEmcp-vision-serverMetadata shown to the MCP client.
MCP server version--server-version <ver>--mcp-server-versionMCP_SERVER_VERSION0.2.0Metadata shown to the MCP client.

Environment-style configuration example:

bash
VISION_API_BASE_URL=https://api.openai.com
VISION_API_PATH=/v1/chat/completions
VISION_API_KEY=sk-xxxx
VISION_MODEL=gpt-4o-mini
VISION_TIMEOUT_MS=60000
VISION_MAX_TOKENS=4096
VISION_MAX_IMAGE_BYTES=10485760
VISION_MAX_RETRIES=2
VISION_CACHE_TTL_MS=300000
MCP_SERVER_NAME=mcp-vision-server
MCP_SERVER_VERSION=0.2.0

MCP client configuration

Most MCP clients should register this server as a stdio command. Replace the URL, key, and model with your provider values.

JSON config

Use this shape for clients that accept mcpServers JSON, such as Claude Desktop, Cursor, VS Code-compatible MCP configs, and similar clients:

json
{
  "mcpServers": {
    "vision": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-vision-server",
        "--api-base-url", "https://your-api.example.com",
        "--api-path", "/v1/chat/completions",
        "--api-key", "sk-xxxx",
        "--model", "your-vision-model",
        "--timeout-ms", "60000",
        "--max-tokens", "4096"
      ]
    }
  }
}

If your client supports an env block, you can keep secrets out of args:

json
{
  "mcpServers": {
    "vision": {
      "command": "npx",
      "args": ["-y", "mcp-vision-server"],
      "env": {
        "VISION_API_BASE_URL": "https://your-api.example.com",
        "VISION_API_PATH": "/v1/chat/completions",
        "VISION_API_KEY": "sk-xxxx",
        "VISION_MODEL": "your-vision-model",
        "VISION_TIMEOUT_MS": "60000",
        "VISION_MAX_TOKENS": "4096"
      }
    }
  }
}

Codex

powershell
codex mcp add vision -- `
  npx -y mcp-vision-server `
  --api-base-url https://your-api.example.com `
  --api-path /v1/chat/completions `
  --api-key sk-xxxx `
  --model your-vision-model `
  --timeout-ms 60000 `
  --max-tokens 4096

Claude Code

powershell
claude mcp add vision -- `
  npx -y mcp-vision-server `
  --api-base-url https://your-api.example.com `
  --api-path /v1/chat/completions `
  --api-key sk-xxxx `
  --model your-vision-model `
  --timeout-ms 60000 `
  --max-tokens 4096

Upstream API contract

The server sends a POST request to the configured Chat Completions URL:

json
{
  "model": "your-vision-model",
  "max_tokens": 4096,
  "messages": [
    {
      "role": "user",
      "content": [
        { "type": "text", "text": "Describe this image." },
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/png;base64,...",
            "detail": "auto"
          }
        }
      ]
    }
  ]
}

Response parsing supports:

  • choices[0].message.content as a string.
  • choices[0].message.content as an array of text parts.
  • choices[0].message.reasoning or reasoning_content as fallback text for compatible providers.

Image source behavior

Exactly one image source must be supplied per tool call, unless you use images for multiple images.

FieldUse whenHandling
imagePathThe MCP server process can read an absolute local file path.The file is read, MIME type is inferred from extension, and the image is sent upstream as a data: URL.
imageUrlThe image is already addressable as http(s)://, data:, or file://.file:// is read like imagePath; remote URLs are passed upstream as URLs.
imageBase64 + imageMediaTypeThe MCP client can pass uploaded attachment bytes directly.The payload is wrapped as data:<imageMediaType>;base64,<imageBase64>.
imagesThe call needs more than one image (e.g. comparisons, multi-page documents).An array (up to 8 entries) of objects using the same imagePath/imageUrl/imageBase64 rules as above. Mutually exclusive with the top-level single-image fields.

Supported local file extensions for MIME inference: .png, .jpg, .jpeg, .webp, .gif, .bmp.

Drag-and-drop support depends on the host MCP client. If the client does not forward attachment data as imagePath, imageUrl, or imageBase64, the server cannot access that image.

Size limits and resilience

  • Local file, base64, and data:/file: URL images are rejected if they exceed maxImageBytes (default 10MB) before being held in memory or sent upstream.
  • Remote http(s):// URLs are forwarded to the upstream API as-is and are not downloaded or size-checked by this server.
  • Upstream requests are retried automatically on 429, 5xx, and network/timeout failures, with exponential backoff (see --max-retries).
  • Identical calls (same tool, prompt, images, and options) can be served from an in-memory cache instead of calling the upstream API again (see --cache-ttl-ms).

Tools

vision_analyze

Use this tool for general image understanding.

Required:

  • prompt: instruction passed to the vision model.
  • Exactly one of imagePath, imageUrl, imageBase64, or images.

Required with imageBase64 (or with base64 entries inside images):

  • imageMediaType: for example image/png or image/jpeg.

Optional:

  • images: array of up to 8 images (each using the imagePath/imageUrl/imageBase64 rules) for multi-image calls such as comparisons.
  • model: override the configured default model for this call.
  • detail: auto, low, or high; forwarded to providers that support image detail.
  • maxTokens: positive integer up to 32768; overrides the configured default for this call.

Example:

json
{
  "name": "vision_analyze",
  "arguments": {
    "imageUrl": "https://example.com/cat.png",
    "prompt": "Describe the main subject and extract any visible text.",
    "detail": "high",
    "maxTokens": 2048
  }
}

Multi-image example:

json
{
  "name": "vision_analyze",
  "arguments": {
    "images": [
      { "imageUrl": "https://example.com/before.png" },
      { "imageUrl": "https://example.com/after.png" }
    ],
    "prompt": "Compare these two screenshots and describe what changed."
  }
}

vision_ocr

Use this tool for text extraction.

Required:

  • Exactly one of imagePath, imageUrl, imageBase64, or images.

Required with imageBase64 (or with base64 entries inside images):

  • imageMediaType.

Optional:

  • images: array of up to 8 images for multi-page or multi-image OCR calls.
  • languageHint: language hint such as en, zh-CN, or ja.
  • outputFormat: plain, markdown, or json; default is plain.
  • model: override the configured default model for this call.
  • detail: auto, low, or high.
  • maxTokens: positive integer up to 32768.

Example:

json
{
  "name": "vision_ocr",
  "arguments": {
    "imageBase64": "<base64-image>",
    "imageMediaType": "image/png",
    "languageHint": "en",
    "outputFormat": "markdown"
  }
}

Tool output

Both tools return plain text in MCP content and structured data in structuredContent:

json
{
  "text": "recognized or analyzed text",
  "model": "model-used",
  "images": [
    { "sourceLabel": "resolved image source", "mediaType": "image/png" }
  ],
  "cached": false
}

images lists each resolved image in call order (one entry for single-image calls). cached is true when the result was served from the in-memory result cache instead of calling the upstream API.

Provider notes

  • The upstream API must accept OpenAI-compatible Chat Completions image input.
  • Some providers ignore detail or max_tokens; behavior then follows the provider.
  • Large images may increase latency, token usage, and provider-side request size.
  • Up to 8 images are accepted per tool call via images.

Links

Gebruik Visual Enhancement MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Visual Enhancement MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Visual Enhancement MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Visual Enhancement MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "visual-enhancement-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Visual Enhancement MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Visual Enhancement MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Visual Enhancement MCP gebruiken om me hiermee te helpen?
Visual Enhancement MCP
Zeker. Ik heb het gelezen.
Dit vond ik met Visual Enhancement MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server Visual Enhancement MCP gebruikt?

Visual Enhancement MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Visual Enhancement MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Visual Enhancement MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Visual Enhancement MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Visual Enhancement MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Visual Enhancement MCP MCP met TypingMind?

Visual Enhancement MCP werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Visual Enhancement MCP MCP in TypingMind?

Visual Enhancement MCP biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Visual Enhancement MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Visual Enhancement MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇