Local Image Reader
FreeNot checkedA simple MCP server that reads local images and returns them as ImageContent for LLM vision analysis.
About
A simple MCP server that reads local images and returns them as ImageContent for LLM vision analysis.
README
A simple Model Context Protocol (MCP) server that reads local images and returns them as ImageContent for LLM vision analysis.
Install in VS Code Install in VS Code Insiders
Features
- 📷 Read local images and return as base64-encoded
ImageContent - 🔧 Single tool:
read_image- simple and focused - 🚀 One-click installation for VS Code
- 📦 Install via PyPI with
uvx- no environment setup needed
Supported Formats
PNG, JPEG, GIF, WebP, BMP, SVG
Installation
VS Code (Recommended)
Click the button above, or manually add to your VS Code settings:
For a specific version (recommended for security):
{
"mcp": {
"servers": {
"local-image-reader": {
"command": "uvx",
"args": ["mcp-local-image-reader==0.1.1"],
"env": {
"UV_LINK_MODE": "copy"
}
}
}
}
}
For the latest version:
{
"mcp": {
"servers": {
"local-image-reader": {
"command": "uvx",
"args": ["mcp-local-image-reader"],
"env": {
"UV_LINK_MODE": "copy"
}
}
}
}
}
Note: The
UV_LINK_MODE=copyenvironment variable is required on Windows when using OneDrive or other cloud-synced folders.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"local-image-reader": {
"command": "uvx",
"args": ["mcp-local-image-reader==0.1.1"],
"env": {
"UV_LINK_MODE": "copy"
}
}
}
}
Usage
In your AI assistant, ask it to read an image:
Please read the image at C:\Users\me\Pictures\screenshot.png and describe what you see.
The assistant will use the read_image tool to load the image and analyze it.
Security
Version Pinning
For production use, always pin to a specific version:
"args": ["mcp-local-image-reader==0.1.1"]
This ensures you won't automatically pull potentially malicious updates.
Source Code
This project is intentionally minimal (~100 lines) for easy auditing. The entire implementation is in server.py.
Known Issues
⚠️ Gemini Does Not Recognize Images from MCP
When using VS Code Copilot with Gemini models, images returned via MCP ImageContent are not visually recognized. The tool execution succeeds, but Gemini cannot "see" the image content.
| Model | MCP Image Recognition |
|---|---|
| Claude | ✅ Works |
| GPT | ✅ Works |
| Gemini | ❌ Not working |
Root Cause: This is a known issue with how Gemini handles non-text content types in MCP responses.
Related Issue: gemini-cli #15851 - Only text content type supported
Workaround: Use Claude or GPT models for image analysis tasks until this issue is resolved.
Tool Reference
read_image
Reads an image from the filesystem and returns it as base64-encoded ImageContent.
Parameters:
file_path(string, required): Absolute path to the image file
Returns:
ImageContentwith base64-encoded image data and appropriate MIME type
Example:
{
"name": "read_image",
"arguments": {
"file_path": "/path/to/image.png"
}
}
Development
# Clone the repository
git clone https://github.com/masachika-kamada/mcp-local-image-reader.git
cd mcp-local-image-reader
# Install dependencies
uv sync
# Run locally
uv run python server.py
# Test with MCP Inspector
npx @modelcontextprotocol/inspector uv run python server.py
License
MIT License - see LICENSE for details.
Contributing
Issues and pull requests are welcome! Please feel free to contribute.
Related Projects
- moiri-gamboni/image-reader-mcp - TypeScript implementation with directory listing
- k2sebeom/image-reader-mcp - Python implementation with remote URL support and image resizing
Install Local Image Reader in Claude Desktop, Claude Code & Cursor
unyly install mcp-local-image-readerInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-local-image-reader -- uvx mcp-local-image-readerFAQ
Is Local Image Reader MCP free?
Yes, Local Image Reader MCP is free — one-click install via Unyly at no cost.
Does Local Image Reader need an API key?
No, Local Image Reader runs without API keys or environment variables.
Is Local Image Reader hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Local Image Reader in Claude Desktop, Claude Code or Cursor?
Open Local Image Reader on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
by buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
by ARAYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolCompare Local Image Reader with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
