image-reader-mcp
1
The Image Reader MCP Server is a FastMCP-based server that allows users to list and read image files in a directory. It supports various image formats and provides content as base64 for easy display.
Image Reader MCP Server
A simple MCP server built with FastMCP providing tools to:
- List image files in a specified directory.
- Read a specific image file and return its content.
Tools
list_images
- Description: List image files in a specified directory.
- Parameters:
directoryPath
(string): The absolute path to the directory to scan for images. - Returns: A list of image filenames or a message if no images are found.
- Supported Extensions:
.jpg
,.jpeg
,.png
,.gif
,.bmp
,.webp
,.svg
read_image
- Description: Reads a specific image file and returns its content as base64.
- Parameters:
filePath
(string): The absolute path to the image file. - Returns: An object containing the image content suitable for display.
- Supported Extensions:
.jpg
,.jpeg
,.png
,.gif
,.bmp
,.webp
,.svg