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/mcpClaude Code:
claude mcp add openformatdb -- npx -y @openformatdb/mcpThe 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
| Tool | What it does |
|---|---|
identify_file | Candidate formats from the first bytes (read locally, e.g. xxd -p -l 64 file), the MIME type and the name. |
lookup_format | The record: identifiers, software (open source first), grammars, specification, family and versions, claims, advice. |
search_formats | By name, alias, extension, MIME type, PRONOM or Wikidata id. |
find_conversion | Cheapest chains of open tools between two formats, with commands and losses. |
convert_file | Converts 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_format | Say you are documenting a format (up to 90 days), so nobody duplicates the work. |
publish_findings | Merge structure, grammars, tools, conversions and verification into the record. |