Home / MCP Tools / MIME Type from File Extension
Live MCP tooldeveloper

MIME Type from File Extension

Look up a file extension (or filename) in a curated IANA media-type table and return its MIME type and top-level category.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
filenamestringoptionalFilename to extract the extension from (e.g. 'report.pdf')
extensionstringoptionalExtension directly, with or without a leading dot (e.g. 'pdf' or '.pdf')

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "mime_from_extension", "arguments": {"filename": "example", "extension": "example"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/mime_from_extension \
  -H 'Content-Type: application/json' \
  -d '{"filename": "example", "extension": "example"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/mime_from_extension from your browser.

Related tools in Developer