loading…
Search for a command to run...
loading…
Enables Claude Code to display images inline within supported terminals like Ghostty and Kitty using the Kitty graphics protocol on macOS. It allows users to vi
Enables Claude Code to display images inline within supported terminals like Ghostty and Kitty using the Kitty graphics protocol on macOS. It allows users to view various image formats including PNG, JPEG, GIF, and WebP directly in the terminal interface.
Claude Code から画像をターミナル内にインライン表示する MCP サーバー。
Kitty グラフィクスプロトコルを使用して、Ghostty や Kitty などの対応ターミナル上で画像を直接表示します。
| フォーマット | 対応方法 |
|---|---|
| PNG | そのまま表示 |
| JPEG | sips で PNG に変換して表示 |
| GIF | sips で PNG に変換して表示 |
| WebP | sips で PNG に変換して表示 |
git clone <repository-url>
cd view-image-mcp
npm install
claude mcp add view-image node /path/to/view-image-mcp/index.js
または ~/.claude.json に直接追記:
{
"mcpServers": {
"view-image": {
"command": "node",
"args": ["/path/to/view-image-mcp/index.js"]
}
}
}
Claude Code 上で画像ファイルの表示を依頼すると、view_image ツールが呼ばれてターミナルにインライン表示されます。
> この画像を表示して: /path/to/screenshot.png
view_image| パラメータ | 型 | 説明 |
|---|---|---|
path |
string | 画像ファイルのパス(絶対パスまたは相対パス) |
Claude Code ←(stdio JSON-RPC)→ MCP Server
│
├─ 画像ファイルを読み込み
├─ 必要に応じて PNG に変換 (sips)
├─ Base64 エンコード + チャンク分割
└─ /dev/tty に Kitty グラフィクスプロトコルで書き込み
│
▼
ターミナルにインライン表示
MCP サーバーの stdout は Claude Code との JSON-RPC 通信に使われるため、画像データは /dev/tty に直接書き込むことでターミナルに表示しています。
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"view-image-mcp": {
"command": "npx",
"args": []
}
}
}