stass/exif-mcp
FreeNot checkedA MCP server that allows one to examine image metadata like EXIF, XMP, JFIF and GPS. This provides foundation for LLM-powered search and analysis of photo libra
About
A MCP server that allows one to examine image metadata like EXIF, XMP, JFIF and GPS. This provides foundation for LLM-powered search and analysis of photo librares and image collections.
README
An MCP server that allows LLMs (or humans) to read image metadata on-demand, entirely offline. Based on the excellent exifr library it's exremely fast and does not rely on any external tools.
Usecases:
- Analyze image metadata and visualize it
- Perform analysis of your image library: what are my most used cameras? Lens distribution? Which dates of the week I take most pictures on? Most favorite locations?
- Debugging image manipulation code.
Ths tool is used extensively by the reverse geolocation service PlaceSpotter for development and testing.
Overview
exif-mcp is a Model Context Protocol (MCP) server that provides tools for extracting various metadata segments from images. Built with TypeScript, it leverages the excellent exifr library to parse metadata from images in common formats like JPEG, PNG, TIFF, and HEIC. This allows this service to parse image metadata without executing any external tools which allows it to be both highly efficient and secure.
Features
- Local operation: Works completely offline with no remote network required
- Multiple segments: Extracts EXIF, GPS, XMP, ICC, IPTC, JFIF, and IHDR metadata
- Various input formats: Supports JPEG, TIFF, HEIC/AVIF, and PNG
- Flexible image sources: Read from file system, URLs, base64 data, or buffers
- Specialized tools: Get orientation, rotation info, GPS coordinates, and thumbnails
Installation
# Clone the repository
git clone https://github.com/stass/exif-mcp.git
cd exif-mcp
# Install dependencies
npm install
# Build the project
npm run build
Usage
Claude Desktop
Put this into Claude config file (claude_desktop_config.json):
"mcpServers": {
"exif-mcp": {
"command": "node",
"args": [
"/path/to/exif-mcp/dist/server.js"
]
}
},
Restart Claude. Now you can ask Claude to inspect images for you or e.g. find files taken with specific camera. This works best in combination with filesystem MCP tools so Claude can find files and list directories.
Starting the server
# Start the server
npm start
# For development with auto-reload
npm run dev
The server uses the StdioServerTransport from the MCP SDK, making it compatible with any MCP client that supports STDIO transport.
You can use mcp-proxy to enable remote access.
Available Tools
The following tools are provided by the server:
| Tool name | Description |
|---|---|
read-metadata |
Reads all or specified metadata segments |
read-exif |
Reads EXIF data specifically |
read-xmp |
Reads XMP data |
read-icc |
Reads ICC color profile data |
read-iptc |
Reads IPTC metadata |
read-jfif |
Reads JFIF segment data |
read-ihdr |
Reads IHDR segment data |
orientation |
Gets image orientation (1-8) |
rotation-info |
Gets rotation and flip information |
gps-coordinates |
Extracts GPS coordinates |
thumbnail |
Extracts embedded thumbnail |
Debugging with MCP Inspector
- Start the inspector:
npx @modelcontextprotocol/inspector node dist/server.js - Connect to it with MCP Inspector using the STDIO transport
- Call a tool, e.g.,
read-metadatawith parameter:{ "image": { "kind": "path", "path": "/path/to/image.jpg" } } - You cal also use MCP inspector command line like this:
npx @modelcontextprotocol/inspector --cli node dist/server.js --method tools/call --tool-name read-exif --tool-arg image='{"kind": "path", "path": "/path/to/image.jpeg"}' --tool-arg pick="[]"
Image Source Types
The server supports multiple ways to provide image data:
// From local file system
{
"kind": "path",
"path": "/path/to/image.jpg"
}
// From URL (http, https, or file://)
{
"kind": "url",
"url": "https://example.com/image.jpg"
}
// From base64 data (raw or data URI)
{
"kind": "base64",
"data": "data:image/jpeg;base64,/9j/4AAQSkZ..."
}
// From base64 buffer
{
"kind": "buffer",
"buffer": "/9j/4AAQSkZ..."
}
Development
Running Tests
# Run tests
npm test
# Run tests with watch mode
npm run test:watch
Project Structure
exif-mcp/
├── src/
│ ├── server.ts # Main entry point
│ ├── tools/
│ │ ├── index.ts # Tool registration
│ │ ├── loaders.ts # Image loading utilities
│ │ └── segments.ts # exifr options builders
│ └── types/
│ └── image.ts # Type definitions
├── tests/ # Test files
└── README.md
Error Handling
The server provides standardized error handling for common issues:
- Unsupported formats or missing metadata
- Network fetch failures
- Oversized payloads
- Internal exifr errors
License
BSD 2-clause
Acknowledgements
- exifr - Extremely fast and robust EXIF parsing library
Installing stass/exif-mcp
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/stass/exif-mcpFAQ
Is stass/exif-mcp MCP free?
Yes, stass/exif-mcp MCP is free — one-click install via Unyly at no cost.
Does stass/exif-mcp need an API key?
No, stass/exif-mcp runs without API keys or environment variables.
Is stass/exif-mcp hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install stass/exif-mcp in Claude Desktop, Claude Code or Cursor?
Open stass/exif-mcp 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
ARA
Generate images, video and audio from any AI agent — one connector.
by ARAOmni 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 buildwithtazaYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolgpu-bridge/mcp-server
Unified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
by gpu-bridgehamflx/imagen3-mcp
A powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,
by hamflxmerterbak/Grok-MCP
MCP server for xAI's [Grok API](https://docs.x.ai/docs/overview) with agentic tool calling, image generation, vision, and file support.
by merterbakSureScaleAI/openai-gpt-image-mcp
OpenAI GPT image generation/editing MCP server.
by SureScaleAIYangLiangwei/PersonalizationMCP
Comprehensive personal data aggregation MCP server with Steam, YouTube, Bilibili, Spotify, Reddit and other platforms integrations. Features OAuth2 authenticati
by YangLiangweiAceDataCloud/MCPFlux
Flux AI image generation and editing (Black Forest Labs) via Ace Data Cloud API.
by AceDataCloudCompare stass/exif-mcp with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
