Skip to main content
Glama

Image Viewer MCP

by itrimble

Image Viewer MCP

A Model Context Protocol (MCP) server for displaying images from your local filesystem directly in Claude conversations.

Features

  • Display Images: View actual images (not just OCR) directly in Claude
  • Image Information: Get detailed metadata about image files
  • Directory Listing: Find and list all images in a directory
  • Multiple Formats: Supports JPG, PNG, GIF, BMP, WebP, and SVG files
  • Path Resolution: Supports ~ for home directory and relative paths

Installation

  1. Build the project:
npm install npm run build
  1. Add to your Claude MCP configuration (usually in ~/Library/Application Support/Claude/claude_desktop_config.json):
{ "mcpServers": { "image-viewer": { "command": "node", "args": ["/Users/ian/image-viewer-mcp/dist/index.js"] } } }

Available Tools

display-image

Display an image from the filesystem. Returns the image as base64 data that Claude can render.

  • imagePath (string): Path to the image file (supports ~ for home directory)

list-images

Find and list image files in a directory.

  • searchPath (string): Directory path to search for images
  • recursive (boolean, optional): Whether to search subdirectories recursively

image-info

Get detailed information about an image file without loading the full image data.

  • imagePath (string): Path to the image file

Usage Examples

Display the headshot image: - Tool: display-image - imagePath: ~/Pictures/Headshot_Headphones.jpg List all images in Pictures folder: - Tool: list-images - searchPath: ~/Pictures - recursive: false Get info about an image: - Tool: image-info - imagePath: ~/Pictures/Headshot_Headphones.jpg

Troubleshooting

  • Ensure the image file exists and is readable
  • Check that the file extension is supported
  • Verify the path is correct (use absolute paths for reliability)
  • Large images may take longer to load due to base64 encoding

Supported Image Types

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • GIF (.gif)
  • BMP (.bmp)
  • WebP (.webp)
  • SVG (.svg)
-
security - not tested
F
license - not found
-
quality - not tested

A Model Context Protocol server that enables Claude to display and interact with images from the local filesystem, allowing users to view images directly in conversations and retrieve image metadata.

  1. Features
    1. Installation
      1. Available Tools
        1. display-image
        2. list-images
        3. image-info
      2. Usage Examples
        1. Troubleshooting
          1. Supported Image Types

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.
              Last updated -
              1
              278
              15
              JavaScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A filesystem Model Context Protocol server that provides Claude Desktop with capabilities to read, write, and manipulate files on your system.
              Last updated -
              TypeScript
            • -
              security
              A
              license
              -
              quality
              Model Context Protocol server that enables Claude Desktop (or any MCP client) to fetch web content and process images appropriately.
              Last updated -
              11
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables Claude to generate and upscale images through the Letz AI API, allowing users to create images directly within Claude conversations.
              Last updated -
              2
              1
              JavaScript
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/itrimble/image-viewer-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server