GV

goehou/visual-enhancement-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

94 stars 6 forks 품질 85 트렌드 8MIT

goehou/visual-enhancement-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

goehou/visual-enhancement-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

영어 | 简体中文

mcp-vision-server는 MCP stdio 서버로, MCP 클라이언트가 이미지를 분석하고 기존 OpenAI 호환 비전 채팅 완성 API를 통해 OCR을 실행할 수 있게 합니다.

이 문서는 MCP 클라이언트에서 서버를 구성하고 사용하는 방법에 중점을 둡니다.

그것이 제공하는 것

  • vision_analyze: 커스텀 프롬프트를 통한 일반적인 이미지 이해.
  • vision_ocr: 선택적 언어 및 출력 형식 힌트가 포함된 OCR 추출.
  • 이미지 입력은 다음 중 정확히 하나를 통해 이루어집니다:
  • imagePath: MCP 서버 프로세스가 사용할 수 있는 로컬 절대 이미지 경로.
  • imageUrl: http://, https://, data: 또는 file:// URL.
  • imageBase64 + imageMediaType: 클라이언트가 전달한 업로드된 첨부 바이트.
  • images: 위 필드들의 배열(최대 8개까지)으로, 비교와 같은 다중 이미지 호출을 위한 것입니다.
  • OpenAI 호환 상류 요청 형태: 텍스트와 하나 이상의 image_url 부분이 포함된 채팅 완료.
  • 업스트림 429/[5xx/네트워크/타임아웃 실패 시 백오프 자동 재시도.
  • 과도한 메모리 사용을 방지하기 위해 로컬 파일, base64, 데이터 URL 이미지에 크기 제한을 두었습니다.
  • 동일(도구 + 프롬프트 + 이미지 + 옵션) 호출을 위한 선택적 메모리 내 결과 캐시

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

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:

Setting Required CLI option Environment variable Description Example
API base URL Yes --api-base-url VISION_API_BASE_URL Root URL of the upstream OpenAI-compatible API. Prefer scheme + host only; keep the request path in api-path. https://api.openai.com
Model Yes --model VISION_MODEL Default vision-capable model exposed by the upstream API. A tool call can override it with model. gpt-4o-mini
API key Usually --api-key VISION_API_KEY Bearer token sent as Authorization: Bearer . Omit only when your endpoint does not require authentication. sk-xxxx

The final upstream URL is built from:


Example:

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:

CLI arguments > environment variables > defaults
Purpose CLI option Alias Environment variable Default Notes
Upstream API base URL --api-base-url --vision-api-base-url VISION_API_BASE_URL none Required. Use the API root such as https://api.openai.com.
Upstream API path --api-path --vision-api-path VISION_API_PATH /v1/chat/completions Chat Completions endpoint path.
Upstream API key --api-key --vision-api-key VISION_API_KEY none Added as a Bearer token when set.
GitHub에서 전체 README 보기

설치

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
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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" ] } } }