Repository avatar
AI Tools
v4.5.0
active

pdf-metadata-editor

io.github.zaro/pdf-metadata-editor

Read and edit PDF metadata through the Model Context Protocol.

Documentation

Pdf Metadata Editor

An advanced GUI editor for PDF Metadata. It is a Java-based graphical user interface (GUI) application that allows users to edit metadata in PDF files. The application utilizes Apache PDFBox as its core library for PDF processing and metadata manipulation.

Installation

Prebuild installers

Prebuilt installers for all supported operating systems can be found from the official website or from the releases section in this repository.

Flathub

flatpak install flathub me.broken_by.PdfMetadataEditor

AppImage (Linux)

Download the AppImage for your architecture (x86_64 or aarch64) from the download page, then:

chmod +x Pdf_Metadata_Editor-*.AppImage
./Pdf_Metadata_Editor-*.AppImage

The command line interface (and the batch launcher) are reachable through symlinks with the respective name:

ln -s Pdf_Metadata_Editor-*.AppImage pmedit-cli
./pmedit-cli --help

Arch Linux (AUR)

Arch Linux users can install the package from the AUR.

yay -S pdf-metadata-editor-bin

MCP server

pmedit-cli can run as a Model Context Protocol server, letting AI clients read and edit PDF metadata through tools.

pmedit-cli --mcp [--mcp-root=DIR] [--mcp-read-only] [--mcp-batch-limit=N]

To print a ready-to-use MCP configuration for the installed desktop app:

pmedit-cli --help-mcp

The desktop app shows the same guide under Help → MCP. It detects AppImage, Flatpak, jpackage, and JAR installations; no npm install is needed.

  • --mcp-root=DIR restricts all file access to DIR (default: current directory).
  • --mcp-read-only disables every mutating tool.
  • --mcp-batch-limit=N sets the maximum files or operations per batch (default: 100, 0 = unlimited).
  • pdf_list_fields and pdf_read_metadata are available without a license.
  • The CLI-parity batch tools (pdf_set_metadata, pdf_clear_metadata, pdf_rename, the export tools, and the import tools) may require a license.

PDF tools take a paths array of files and/or directories, matching the CLI. A single file is paths: ["one.pdf"]. Import tools use importPaths for the JSON/YAML/CSV files and directories. Directories are searched recursively.

The server speaks newline-delimited JSON-RPC over stdin/stdout. Configure it in your MCP client, for example:

{
  "mcpServers": {
    "pdf-metadata-editor": {
      "command": "pmedit-cli",
      "args": ["--mcp"]
    }
  }
}

Add "--mcp-root", "/path/to/pdfs" to args to restrict file access. Without it, the server uses the client's working directory.

Available tools:

ToolPurpose
pdf_list_fieldsList valid metadata field IDs, types, and writability
pdf_read_metadataRead metadata from one or more PDFs or directories
pdf_set_metadataSet metadata fields on every input PDF (CLI edit)
pdf_clear_metadataClear metadata fields on every input PDF (CLI clear)
pdf_renameRename every input PDF using a metadata template (CLI rename)
pdf_export_jsonExport metadata to JSON (CLI tojson)
pdf_export_yamlExport metadata to YAML (CLI toyaml)
pdf_export_csvExport metadata to CSV (CLI tocsv)
pdf_import_from_filenameSet metadata extracted from PDF file names (CLI fromfilename)
pdf_import_from_jsonImport metadata from JSON (CLI fromjson)
pdf_import_from_yamlImport metadata from YAML (CLI fromyaml)
pdf_import_from_csvImport metadata from CSV (CLI fromcsv)

Each batch tool returns a summary plus per-file results; a per-file failure does not abort the batch. Exports additionally return an outputs list, and import results include both the import-file source and the target PDF input.

The MCP server is also available as an npm package:

npx -y pdf-metadata-editor-mcp

See npm/README.md for client configuration, platform details, and troubleshooting.

Agent skill and Claude Code plugin

skills.sh PDF Metadata Editor MCP server

The repository ships a portable Agent Skill that teaches agents when and how to use the server, plus a Claude Code plugin that bundles the skill with the MCP configuration.

claude plugin marketplace add zaro/pdf-metadata-editor
claude plugin install pdf-metadata@pdf-metadata-editor

Other agents can install the skill directly:

npx skills add zaro/pdf-metadata-editor

Building from source

Build JAR

mvn clean package -DskipTests -Dpackages.skip=true

You will find the app JAR in modules/editor-gui/target/jar/

Build OS specific installer/app

mvn clean package -DskipTests

This will build all supported installers for your current OS and place them in modules/editor-gui/target/packages/

Help

Documentation is available at the Help page

License

Distributed under the GPL v3 License. See the LICENSE file for more information.

NPM
pdf-metadata-editor-mcp
Install Command
npm install pdf-metadata-editor-mcp