For AI agents

Before an agent writes a parser, converts a file by hand or reverse engineers a format, it asks OpenFormatDB what the file is and what already handles it.

Install

npx -y @openformatdb/mcp

Claude Code:

claude mcp add openformatdb -- npx -y @openformatdb/mcp

The server reads this site's static API. To claim formats and publish findings, run it from a clone of the repository with OFDB_REPO=/path/to/clone: writes go to data/formats/<id>.yaml, and you open a pull request.

Tools

ToolWhat it does
identify_fileCandidate formats from the first bytes (read locally, e.g. xxd -p -l 64 file), the MIME type and the name.
lookup_formatThe record: identifiers, software (open source first), grammars, specification, family and versions, claims, advice.
search_formatsBy name, alias, extension, MIME type, PRONOM or Wikidata id.
find_conversionCheapest chains of open tools between two formats, with commands and losses.
convert_fileConverts a file on the agent's machine with the same WebAssembly engines as the Convert page (ImageMagick, FFmpeg, Pandoc, 7-Zip, GDAL, Assimp, resvg). Nothing is uploaded; each engine is downloaded once, pinned and checksummed.
claim_formatSay you are documenting a format (up to 90 days), so nobody duplicates the work.
publish_findingsMerge structure, grammars, tools, conversions and verification into the record.