DeepSeek Vision MCP Server
DeepSeek Vision MCP Server
FastMCP で構築された DeepSeek ビジョン MCP サーバーです。opencode などの MCP クライアント向けに、公式 vision guide の3つの画像入力インターフェースを実装しています。
モデル:
deepseek-v4-flash-vision-expAPI: OpenAI 互換形式、
base_url = https://api.deepseek.com
中文ドキュメントは README.zh.md を参照してください。
インターフェース
ツール | メソッド | 説明 |
| 1. Base64 インライン | ローカル画像を読み込み、リクエスト内に埋め込む data URL としてエンコードします。画像1枚あたり最大 32 MiB |
| 2. 外部 URL | サーバーがダウンロードする公開 http(s) リンクを渡します。URL は 8192 文字以下 |
| 3. Files API | アップロード済みファイルの file_id を参照します。画像1枚あたり最大 64 MiB、リクエスト間で再利用可能 |
| Files API ヘルパー | ローカル画像(purpose=user_data)をアップロードし、 |
detail オプション: low(512×512 にリサイズされ、高速かつ低コスト)、high、original、auto。
Related MCP server: Look At Pic MCP
インストール
mkdir %HOMEPATH%\mcp\DeepSeek
python -m venv %HOMEPATH%\mcp\DeepSeek\.venv
%HOMEPATH%\mcp\DeepSeek\.venv\Scripts\pip install -r %HOMEPATH%\mcp\DeepSeek\requirements.txt依存パッケージは requirements.txt に固定されています: fastmcp==3.4.7、openai==3.3.1。
設定
%HOMEPATH%\.config\opencode\opencode.jsonc の mcp セクションに以下を追加してください:
GXP2
API キーは DeepSeek Platform から取得してください。
使用例
設定後は、会話で次のように質問するだけです:
"analyze_local_image を使って D:\pics\screenshot.png に何が映っているか説明してください"
"analyze_image_url を使って https://example.com/photo.jpg を確認し、そのシーンを説明してください"
"まず upload_image で big_photo.png をアップロードし、それから analyze_file_id で画像内のテキストを読み取ってください"
制限チートシート
制限 | 値 |
対応形式 | JPEG, PNG, GIF, WebP |
リクエストボディサイズ(インライン) | 48 MiB |
単一画像(base64 / 外部 URL) | 32 MiB |
単一画像(Files API) | 64 MiB |
外部 URL の長さ | 8192 文字 |
1リクエストあたりの最大画像数 | 600 |
注記:
画像は
userメッセージにのみ含めることができます。system/assistantメッセージ内に画像があると 400 が返ります。画像を受け付けられるのはビジョンモデルのみです。それ以外のモデルは「This model does not support image」を返します。
すべての画像はモデルに入る前にリサイズされます。画像1枚が消費するトークンは最大約384です。
検証
GXP3
エラーがなければ、サーバーは stdio モードで正常に起動します(実際の呼び出しには DEEPSEEK_API_KEY の設定が必要です)。
This server cannot be deployed
Maintenance
Related MCP Connectors
Search over 1.85 million captioned images using text, a reference image, or both. Upload a JPEG, PNG, or WebP image as base64, or provide a public HTTPS image URL. Find similar images from a Lightdrift asset ID and retrieve hosted file URLs, source licenses, and attribution. Connect with OAuth or an API key. Searches cost $0.005 ($5 per 1,000); image details are free. Setup: https://docs.lightdrift.ai/guides/images-mcp
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Image infrastructure for agents. Upload, transform, and deliver images through MCP, CLI, or API.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables image understanding using Doubao vision models via MCP, supporting local file paths and URLs with customizable prompts.145 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables image analysis using GLM-4V multimodal model, supporting local files and base64 images with optional custom prompts.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible agents to analyze images via NVIDIA NIM vision models, supporting file paths, URLs, or base64 input to return actionable textual descriptions.79 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables to analyze images using GLM-4V vision model via the MCP protocol, supporting local file paths and Data URLs.170 npmMIT