Image Viewer

io.github.OguntolaIbrahim由 GitHub 账号 OguntolaIbrahim 发布v1.0.1更新于 Oct 24, 2026

InChat Image Viewer MCP - View images inline in AI chat by just providing the file path

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

一个本地 MCP 服务器,让 AI 助手根据纯文本文件路径读取图片,并在对话中直接显示。

可以做什么
通过 view_image 工具(文中唯一提到的工具)按纯文本路径读取图片并内联返回,让助手直接看到图像。支持 PNG、JPEG、GIF、BMP、WebP 等常见格式。随图片返回文件名、字节大小等基本信息。可在 VS Code Copilot Chat、Claude Desktop 等客户端中使用,免去手动拖拽图片。
适用场景
适用于所用聊天客户端无法从文件路径读取图片(例如 VS Code Copilot Chat)的场景,希望助手分析截图、测试失败图片或前后对比图,而不必每次手动拖入文件。
运行要求
以本地进程方式通过 stdio 运行,使用 npx 从 npm 包 inchat-image-viewer-mcp 启动,需 Node.js 及获取该包的网络访问。未声明认证、环境变量或请求头。仅限桌面客户端,不能作为网页执行。
安装前请注意
助手会读取所给路径对应的任意图片文件,请只指向愿意交给模型的图片;图片内容会随对话发送给 AI 服务提供方。未声明凭据或写入操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Image Viewer,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

InChat Image Viewer MCP

The Problem: GitHub Copilot Chat can't see images from file paths—only drag-and-drop works, breaking your workflow.

The Solution: Give AI the file path in plain text, and it sees the image instantly using this MCP.

Why This Exists

What DOESN'T Work in VS Code Copilot Chat

❌ Plain file paths → AI can't see them

Show me C:\screenshots\bug.png

Result: AI sees text, not the image

❌ #file: references → Unreliable for images

#file:screenshot.png

Result: Empty <attachments> - AI sees nothing

✅ Drag-and-drop → Works, but manual and disruptive Result: AI sees image as base64 attachment, but you have to manually drag every single image

What This MCP Solves

✅ Plain file paths with MCP → AI sees images instantly

#image-viewer Show me C:\screenshots\bug.png

Result: AI calls view_image tool and displays the image inline—no manual steps


How It Works: Before vs After

WITHOUT InChat Image Viewer MCP

You: "Analyze C:\test-results\failure-screenshot.png"

AI receives:

xml
<attachments></attachments>  <!-- Empty! -->

Just sees the text path—no image data.

What you have to do: Stop, drag the file into chat, drop it, then ask again.


WITH InChat Image Viewer MCP

You: "#image-viewer Analyze C:\test-results\failure-screenshot.png"

AI receives:

json
{  "content": [    {      "type": "text",      "text": "Image: failure-screenshot.png (124,433 bytes)"    },    {      "type": "image",      "data": "iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAIAAABnsVYU...",      "mimeType": "image/png"    }  ]}

AI sees the full image inline automatically.

What you do: Nothing extra—just type naturally with #image-viewer.


Features

  • 📸 Path-to-image: Type the path, AI sees the image
  • 🖼️ Multi-format: PNG, JPEG, GIF, BMP, WebP
  • ⚡ Zero-config: npx inchat-image-viewer-mcp just works
  • 🔌 Works with: VS Code Copilot Chat, Claude Desktop

Quick Start

1. Install (Optional)

bash
npm install -g inchat-image-viewer-mcp# or use npx (no install needed)

2. Add to Your AI Tool

VS Code Copilot Chat – mcp.json:

json
{  "servers": {    "image-viewer": {      "command": "npx",      "args": ["inchat-image-viewer-mcp"]    }  }}

Claude Desktop – Config file (%APPDATA%\Claude\claude_desktop_config.json on Windows):

json
{  "mcpServers": {    "image-viewer": {      "command": "npx",      "args": ["inchat-image-viewer-mcp"]    }  }}

3. Restart

Reload VS Code or restart Claude Desktop to load the MCP server.


Usage Examples

#image-viewer What's in C:\Users\me\screenshot.png?
#image-viewer Compare before.jpg and after.jpg in the results folder
#image-viewer Debug this error screenshot: D:\projects\test-failures\2026-01-20.png

The AI automatically uses the view_image tool—no manual attachment needed.


Supported Formats

PNG · JPEG · GIF · BMP · WebP


License

MIT

Made with 🤖 by Ibrahim Oguntola


来源:README.md,提交 9d9b1a2

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。