DeepSeek Vision MCP Server
Enables MCP clients to analyze images through DeepSeek's vision model using three input methods: local image files, external image URLs, and uploaded file IDs.
README
DeepSeek Vision MCP Server
A DeepSeek vision MCP server built with FastMCP, implementing the three image-input interfaces from the official vision guide for MCP clients such as opencode.
- Model:
deepseek-v4-flash-vision-exp - API: OpenAI-compatible format,
base_url = https://api.deepseek.com
中文文档请参见 README.zh.md。
Interfaces
| Tool | Method | Description |
|---|---|---|
analyze_local_image(image_path, prompt, detail) |
1. Base64 inline | Reads a local image, encodes it as a data URL embedded in the request; max 32 MiB per image |
analyze_image_url(image_url, prompt, detail) |
2. External URL | Passes a public http(s) link downloaded by the server; URL ≤ 8192 chars |
analyze_file_id(file_id, prompt) |
3. Files API | References an uploaded file's file_id; up to 64 MiB per image, reusable across requests |
upload_image(image_path) |
Files API helper | Uploads a local image (purpose=user_data), returns a file-api-... file_id |
detail options: low (resized to 512×512, faster and cheaper), high, original, auto.
Installation
mkdir %HOMEPATH%\mcp\DeepSeek
python -m venv %HOMEPATH%\mcp\DeepSeek\.venv
%HOMEPATH%\mcp\DeepSeek\.venv\Scripts\pip install -r %HOMEPATH%\mcp\DeepSeek\requirements.txt
Dependencies are pinned in requirements.txt: fastmcp==3.4.7, openai==3.3.1.
Configuration
Add the following to the mcp section of %HOMEPATH%\.config\opencode\opencode.jsonc:
"deepseek-vision": {
"type": "local",
"command": ["C:\\Users\\%USERNAME%\\mcp\\DeepSeek\\.venv\\Scripts\\python",
"C:\\Users\\%USERNAME%\\mcp\\DeepSeek\\server.py"],
"enabled": true,
"environment": {
"DEEPSEEK_API_KEY": "<your DeepSeek API key>"
}
}
Get your API key from the DeepSeek Platform.
Usage Examples
Once configured, you can simply ask in conversation:
- "Use analyze_local_image to describe what's in D:\pics\screenshot.png"
- "Use analyze_image_url to look at https://example.com/photo.jpg and describe the scene"
- "First upload big_photo.png with upload_image, then use analyze_file_id to read the text in it"
Limits Cheat Sheet
| Limit | Value |
|---|---|
| Supported formats | JPEG, PNG, GIF, WebP |
| Request body size (inline) | 48 MiB |
| Single image (base64 / external URL) | 32 MiB |
| Single image (Files API) | 64 MiB |
| External URL length | 8192 characters |
| Max images per request | 600 |
Notes:
- Images may only appear in
usermessages; images insystem/assistantmessages return 400. - Only the vision model accepts images; other models return "This model does not support image".
- Every image is resized before entering the model; a single image consumes at most ~384 tokens.
Verification
%HOMEPATH%\mcp\DeepSeek\.venv\Scripts\python %HOMEPATH%\mcp\DeepSeek\server.py
No errors means the server starts fine in stdio mode (actual calls require DEEPSEEK_API_KEY configured).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。