Exiftool

io.github.joshmsimpson由 GitHub 账号 joshmsimpson 发布v0.1.6更新于 Oct 24, 2026

Read, write, and remove metadata from 150+ file formats using ExifTool

已验证STDIO仅桌面文件与存储媒体与设计

概览

AI 生成的概览

封装 ExifTool 命令行工具,让助手读取、写入和清除 150 多种图像、视频、音频、文档及压缩包格式的元数据。

可以做什么
  • 读取文件元数据,可获取全部标签或指定标签(如相机、日期、GPS 字段)
  • 写入或更新文件中的元数据标签,默认自动创建备份
  • 删除全部元数据或仅删除指定标签,例如 GPS 与位置信息
  • 列出 ExifTool 支持的文件格式
适用场景
适合在本地检查或清理文件元数据的场景:查看照片的 EXIF 与 GPS 信息、添加作者或版权标签,或在分享文件前去除位置数据。
运行要求
以本地 stdio 进程运行,通过 PyPI 包 exiftool-mcp 安装;系统还需单独安装 ExifTool 本体(如 Homebrew、apt 或 Windows 官方下载)。未声明需要账号、API 密钥或环境变量。
安装前请注意
写入和删除操作会修改磁盘上的文件;overwrite_original 会跳过默认备份,除非确定否则应保持为 false。不指定标签的删除会清空全部元数据。助手可操作被指定的任意文件路径,建议限定可访问的文件范围。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Exiftool,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCP ExifTool Server

mcp-name: io.github.joshmsimpson/exiftool

An MCP (Model Context Protocol) server that provides access to ExifTool for reading, writing, and removing metadata from a wide range of file types.

Features

  • Read metadata from over 150 file formats
  • Write metadata to files with automatic backup creation
  • Remove metadata selectively or completely from files
  • Extract specific tags or retrieve all available metadata
  • Support for multiple metadata standards: EXIF, IPTC, XMP, GPS, and manufacturer-specific formats

Supported File Formats

Image Formats:

  • RAW Camera Formats: ARW, CR2, CR3, CRW, DNG, ERF, FFF, GPR, IIQ, K25, KDC, MEF, MRW, NEF, NRW, ORF, PEF, RAF, RAW, RW2, RWL, SR2, SRF, SRW, X3F
  • Raster Images: BMP, FLIF, GIF, HDR, HEIC, HEIF, JPEG, JPEG 2000, JXL, JXR, PCX, PGF, PNG, PPM, TIFF, WebP
  • Specialized Images: AVIF, BPG, DPX, EXR, FITS, FLIR, FPX, ICO, LFP, MIFF, PSD, PSP, QTIF, SVG

Video Formats:

  • Containers: 3GP, AVI, F4V, FLV, GLV, M2TS, MOV, MP4, MKV, MPEG, R3D, VOB, WebM, WTV
  • Other Video: DV, DVR-MS, INSV, LRV, MQV

Audio Formats:

  • Lossless: AIFF, FLAC, LA, OFR, PAC, WAV, WV
  • Lossy: AAC, APE, DSF, M4A, MP3, MPC, OGG, OPUS, RA, WMA

Document Formats:

  • Office: DOC, DOCX, XLSX, PPTX, XLS, KEY, NUMBERS, PAGES
  • Other Documents: PDF, EPS, RTF, TXT, XML, JSON
  • eBooks: EPUB, MOBI, AZW

Archive Formats:

  • 7z, GZ, RAR, ZIP

Other Formats:

  • Fonts: AFM, OTF, PFA, TTF
  • And many more specialized formats

Prerequisites

ExifTool must be installed on your system. This MCP server is a wrapper that calls the ExifTool command-line tool.

Installing ExifTool

macOS:

bash
brew install exiftool

Ubuntu/Debian:

bash
sudo apt-get install libimage-exiftool-perl

Windows: Download from https://exiftool.org/

Verify installation:

bash
exiftool -ver

Installation

bash
pip install exiftool-mcp

Usage

With Claude Desktop

Add this to your claude_desktop_config.json:

json
{  "mcpServers": {    "exiftool": {      "command": "exiftool-mcp"    }  }}

With Other MCP Clients

The server communicates via stdio and follows the Model Context Protocol specification.

Available Tools

read_metadata

Read metadata from a file using ExifTool.

Parameters:

  • file_path (required): Path to the file (absolute or relative)
  • tags (optional): Array of specific metadata tags to extract (e.g., ["DateTimeOriginal", "Make", "Model"])

Example:

json
{  "file_path": "/path/to/image.jpg",  "tags": ["DateTimeOriginal", "Make", "Model", "GPSLatitude", "GPSLongitude"]}

write_metadata

Write or update metadata tags in a file using ExifTool. Creates a backup by default.

Parameters:

  • file_path (required): Path to the file (absolute or relative)
  • tags (required): Dictionary of metadata tags to write (e.g., {"Artist": "John Doe", "Copyright": "2025"})
  • overwrite_original (optional): If true, overwrites the original file without creating a backup. Default is false.

Example:

json
{  "file_path": "/path/to/image.jpg",  "tags": {    "Artist": "John Doe",    "Copyright": "2025",    "Comment": "Beautiful sunset"  },  "overwrite_original": false}

remove_metadata

Remove metadata from a file using ExifTool. Can remove all metadata or specific tags.

Parameters:

  • file_path (required): Path to the file (absolute or relative)
  • tags (optional): Array of specific metadata tags to remove (e.g., ["GPS*", "Comment"]). If not specified, all metadata is removed.
  • overwrite_original (optional): If true, overwrites the original file without creating a backup. Default is false.

Example:

json
{  "file_path": "/path/to/image.jpg",  "tags": ["GPS*", "Location*"],  "overwrite_original": false}

list_supported_formats

List all file formats supported by ExifTool.

Parameters: None

Examples

Reading all metadata from an image

Use the read_metadata tool with file_path: "photo.jpg"

Reading specific EXIF tags

Use the read_metadata tool with:- file_path: "photo.jpg"- tags: ["DateTimeOriginal", "Make", "Model", "LensModel"]

Writing metadata to a file

Use the write_metadata tool with:- file_path: "photo.jpg"- tags: {"Artist": "Jane Smith", "Copyright": "2025", "Rating": "5"}

Removing GPS data from a photo

Use the remove_metadata tool with:- file_path: "photo.jpg"- tags: ["GPS*"]

Removing all metadata from a file

Use the remove_metadata tool with:- file_path: "photo.jpg"(no tags specified removes all metadata)

Checking supported formats

Use the list_supported_formats tool

Development

Setup

bash
git clone https://github.com/joshmsimpson/exiftool_mcp.gitcd exiftool_mcppip install -e .

Running locally

bash
python -m exiftool_mcp.server

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Links

来源:README.md,提交 b830315

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.6最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分