image-reader-mcp
An MCP (Model Context Protocol) server (using FastMCP) to provide tools for listing local image files and reading their content. Designed for LLM agent integration.
Documentation
Image Reader MCP Server
A simple MCP server built with FastMCP that provides tools to:
- List image files in a specified directory.
- Read a specific image file and return its content.
Tools
This server provides the following tools:
`list_images`
- Description: List image files in a specified directory.
- Parameters:
- Returns: A list of image filenames found in the directory or a message indicating no images were 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:
- Returns: An object containing the image content suitable for display (using `imageContent` helper from `fastmcp`).
- Supported Extensions: `.jpg`, `.jpeg`, `.png`, `.gif`, `.bmp`, `.webp`, `.svg`
Setup
To configure an MCP client, add the `imageReader` entry to the `mcpServers` object. It should look something like this:
{
"mcpServers": {
// ... other servers might be here ...
"imageReader": {
"command": "npx",
"args": ["image-reader-mcp"],
"env": {}
}
}
}Important Note: When using this server with Cursor, it currently seems to function only when Claude Sonnet is selected (other models don't seem to have vision enabled).
Frequently asked questions
What is image-reader-mcp?
image-reader-mcp is An MCP (Model Context Protocol) server (using FastMCP) to provide tools for listing local image files and reading their content. Designed for LLM agent integration.
How do I install image-reader-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is image-reader-mcp open source?
Yes — it is hosted on GitHub at https://github.com/moiri-gamboni/image-reader-mcp and has 6 stars.
Related MCP tools
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project TypeScript-based implementation.
🤖 A visualization mcp contains 25+ visual charts using @antvis. Using for chart generation and data analysis. TypeScript-based implementation.
A Unified MCP Server Management App TypeScript-based implementation. Trusted by 800+ developers. Trusted by 800+ developers.
Model Context Protocol server for GraphQL TypeScript-based implementation.
MCP Server for SearXNG TypeScript-based implementation.
An MCP server for Azure DevOps TypeScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP