
本地MCP桥接,用于图像理解和网页阅读,兼容OpenAI模型
概览
本地MCP服务器为Claude Desktop、Claude Code及其他MCP客户端提供两个实用的桥接工具: - 从最近的 Claude 上传、剪贴板、本地路径、URL 或 base64 输入中读取图像,然后发送到兼容 OpenAI 的视觉模型;- 本地读取网页链接,提取可读文本,然后将结果发送到兼容 OpenAI 的模型。 它不包含模型或任何模型积分。你自带兼容 OpenAI 的 API 端点和 API 密钥。 - 您的 Claude 客户端可以接受图片,但其背后的第三方模型无法可靠地接收图像内容。- 您的模型提供商支持 Vision,但 MCP 客户端需要本地工具来收集图像输入。- 您需要一个更安全的本地网页阅读器,默认启用私有网络屏蔽。 最近的 Claude 上传路径是客户端实现细节,而非稳定的公共 API。如果你的环境中自动检测不起作用,请手动设置CLAUDE_UPLOAD_DIRS。
概述(AI 翻译)
本地MCP服务器为Claude Desktop、Claude Code及其他MCP客户端提供两个实用的桥接工具:
- 从最近的 Claude 上传、剪贴板、本地路径、URL 或 base64 输入中读取图像,然后发送到兼容 OpenAI 的视觉模型;
- 本地读取网页链接,提取可读文本,然后将结果发送到兼容 OpenAI 的模型。
它不包含模型或任何模型积分。你自带兼容 OpenAI 的 API 端点和 API 密钥。
使用场景
- 您的 Claude 客户端可以接受图片,但其背后的第三方模型无法可靠地接收图像内容。
- 你的模型提供者支持视觉,但你的MCP客户端需要本地工具来收集图像输入。
- 你需要一个更安全的本地网页阅读器,默认启用私有网络屏蔽。
能力
| 能力 | macOS | Windows | Linux |
|---|---|---|---|
| MCP服务器 | 支持中 | 支持中 | 支持中 |
| 兼容OpenAI的聊天完成 | 支持 | 支持 | 支持 |
| 网页阅读 | 支持的 | 支持的 | 支持的 |
| 最近Claude上传图片 | 支持中 | 尽力而为 | 尽力而为 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mcp-vision-web-bridge
Local MCP server that gives Claude Desktop, Claude Code, and other MCP clients two practical bridge tools:
- read an image from a recent Claude upload, clipboard, local path, URL, or base64 input, then send it to an OpenAI-compatible vision model;
- read web links locally, extract readable text, then send the result to an OpenAI-compatible model.
It does not include a model or any model credits. You bring your own OpenAI-compatible API endpoint and API key.
Use Cases
- Your Claude client can accept images, but the third-party model behind it does not reliably receive image content.
- Your model provider supports vision, but your MCP client needs a local tool to collect image inputs.
- You want a safer local web reader with private-network blocking enabled by default.
Capabilities
| Capability | macOS | Windows | Linux |
|---|---|---|---|
| MCP server | Supported | Supported | Supported |
| OpenAI-compatible chat completions | Supported | Supported | Supported |
| Web page reading | Supported | Supported | Supported |
| Recent Claude upload image | Supported | Best effort | Best effort |
| Clipboard image | Supported | Supported via PowerShell / Windows Forms | Supported via wl-paste or xclip |
Recent Claude upload paths are client implementation details, not a stable public API. If auto-detection does not work in your environment, set CLAUDE_UPLOAD_DIRS manually.
Security Defaults
The default configuration is intentionally conservative:
.envis ignored and should never be committed.- API keys are only read from environment variables.
- Explicit local image paths are disabled unless
ALLOW_LOCAL_IMAGE_PATHS=true. - Clipboard image reading is disabled unless
ALLOW_CLIPBOARD_IMAGES=true. - Private-network web and image URLs are disabled unless
ALLOW_PRIVATE_NETWORK_URLS=true. - Jina Reader fallback is disabled unless
USE_JINA_READER=true. - The server does not log prompts, image data, API keys, or fetched page bodies.
Requirements
- Node.js 20 or newer
- npm
This is a Node.js project. It does not require Python or a virtual environment.
Install
npm install
cp .env.example .env
Edit .env:
MODEL_BASE_URL=https://api.example.com/v1
MODEL_API_KEY=replace-with-your-own-key
MODEL_NAME=replace-with-your-vision-model
ALLOW_LOCAL_IMAGE_PATHS=false
ALLOW_CLIPBOARD_IMAGES=false
ALLOW_PRIVATE_NETWORK_URLS=false
USE_JINA_READER=false
MAX_IMAGE_BYTES=10485760
MODEL_BASE_URL must be an OpenAI-compatible /v1 endpoint.
SiliconFlow Example
MODEL_BASE_URL=https://api.siliconflow.cn/v1
MODEL_API_KEY=replace-with-your-own-key
MODEL_NAME=Qwen/Qwen3-VL-8B-Instruct
Use a model that supports vision input.
Claude Desktop Config
Use absolute paths for your local checkout:
{
"mcpServers": {
"vision-web-bridge": {
"command": "node",
"args": [
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"vision-web-bridge": {
"command": "node",
"args": [
"--env-file-if-exists=/absolute/path/to/mcp-vision-web-bridge/.env",
"/absolute/path/to/mcp-vision-web-bridge/src/server.mjs"
]
}
}
}