Filemorph

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 7, 2026

Convert files between 44 formats: documents, spreadsheets, images, ebooks, subtitles.

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

本地 stdio 桥接服务,让助手通过托管转换服务在 44 种文档、表格、图片、电子书和字幕格式之间转换文件。

可以做什么
  • 列出支持的格式及可用的转换组合,含引擎与选项
  • 在发送文件前检查某对格式是否可转换
  • 以 base64 内容或公开 https 链接提交文件进行转换
  • 按 id 取回此前的转换结果,包括状态、警告和输出
  • 小型文本输出直接内联返回,较大或二进制输出以 base64 加下载链接返回
适用场景
当助手需要把文档、表格、图片、电子书或字幕文件转成其他格式,或在上传前确认哪些转换可行时使用。
运行要求
通过 npx(需 Node.js)或 Docker 在本机运行,并需能访问托管转换服务的网络。可选环境变量 FILETYPECONVERTERS_MCP_URL 用于覆盖上游地址,FILETYPECONVERTERS_API_KEY 用于发送 bearer 令牌。文件上限为 10 MB。
安装前请注意
该桥接本身不做转换:文件内容或公开链接会被转发给第三方托管服务,请勿发送机密文件。启用 deepRead 会使用 AI Deep Read,按每页 1 个额度计费,可能产生费用。API 密钥会作为 bearer 令牌发往上游地址,下载链接也接受同一令牌。转换结果会在上游保留一段时间。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

filemorph

filemorph is a small local bridge to the hosted FileTypeConverters MCP server, which converts files between 44 formats spanning documents, spreadsheets, images, ebooks and subtitles. You hand it a file either as base64 content or as a public https URL, pick a target format, and get the converted output back — small text outputs inline, larger or binary outputs as base64 plus a download URL.

The bridge converts nothing itself and keeps no files. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. Two tools read reference data, one checks whether a conversion pair is supported, one submits a conversion, and one fetches a conversion submitted earlier.

Tools

  • list_formats — every format the converter can read or write, with its id, name, extensions and family. The ids are what the other tools take as from and to. No arguments.
  • check_conversion — whether one format can be converted to another, checked before any file is sent. Reports the engine, whether AI Deep Read is needed, the options the pair accepts, and alternatives when the pair is not supported. Formats may be given as ids (docx), extensions (jpeg) or common names (word, excel). Required: from, to.
  • list_conversions — the supported target formats for a source format, or every source that can produce a given target, as compact {from,to,slug,engine,mode} rows. Optional: from, to.
  • convert_file — submit a file for conversion. The content goes in as base64 or as a public https url; from is optional when the filename or URL carries an extension. Text outputs (Markdown, CSV, JSON, HTML…) up to 200 KB come back inline as text; other outputs come back as base64 plus a downloadUrl that accepts the same bearer token. Files are capped at 10 MB. Setting deepRead: true reads scans, photos and handwriting with AI Deep Read (1 credit per page). Required: to. Optional: filename, base64, url, from, options, deepRead.
  • get_conversion — a conversion submitted earlier, fetched by id: its status, any warnings, and the output (inline text or base64) while it is still retained. Required: id.

Configuration

  • FILETYPECONVERTERS_MCP_URL (optional) — override the upstream endpoint. Defaults to https://filetypeconverters.com/api/mcp. (The override hook is this rebuild's own labelled reconstruction.)
  • FILETYPECONVERTERS_API_KEY (optional) — when set, every upstream request carries an Authorization: Bearer <key> header. When it is not set, no auth header is sent. (This forwarding is also a labelled reconstruction; the original surface was captured keyless, though the registry record declares an Authorization header required.)

Forwarding mechanics

On the first tool call the client opens a streamable HTTP session with the upstream: a JSON-RPC initialize request (protocolVersion 2025-03-26, clientInfo name filemorph), then a notifications/initialized notification, then the tools/call request carrying the caller's arguments unchanged. When the upstream answers initialize with an Mcp-Session-Id header, that value rides on every later request of the session, which is reused for the life of the process. Replies may arrive as plain JSON or as server-sent events; both are read.

Successful upstream results pass through verbatim, including any isError flag the upstream sets. Failures — a JSON-RPC error, a non-2xx status, an unreadable response, or a request that cannot be completed — come back as an isError result whose text starts with filemorph error: (this rendering is this rebuild's own labelled reconstruction).

CLI

Each tool is also a subcommand taking one JSON argument string (omit it for tools that take none):

bash
npx @reneturcios/filemorph list_formatsnpx @reneturcios/filemorph check_conversion '{"from":"pdf","to":"docx"}'npx @reneturcios/filemorph convert_file '{"to":"md","filename":"report.pdf","base64":"..."}'npx @reneturcios/filemorph get_conversion '{"id":"conv-42"}'npx @reneturcios/filemorph --version

Exit codes: 0 on success, 1 on an isError result, 2 on a usage error.

MCP server

bash
npx -y @reneturcios/filemorph mcp

MCP client config:

json
{  "mcpServers": {    "filemorph": {      "command": "npx",      "args": ["-y", "@reneturcios/filemorph", "mcp"]    }  }}

Docker

bash
docker run -i ghcr.io/cloudcorprecords/filemorphdocker run --rm ghcr.io/cloudcorprecords/filemorph --version

The container's default command is mcp, so the first form is a stdio MCP server; any other arguments reach the CLI normally.

Development

bash
npm installnpm run buildnpm testnpm run dev

The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.

License

MIT — see LICENSE.

来源:README.md,提交 e347e66

工具

5

list_formats

List every file format this converter reads or writes (id, name, extensions, family). Use the id values as `from`/`to` in other tools.

无需输入参数。

check_conversion

Check whether one format can be converted to another before sending a file. Returns the engine, whether AI Deep Read is needed, the options it accepts, and alternatives when the pair is not supported. Formats accept ids (docx), extensions (jpeg) or common names (word, excel).

输入参数to必填from必填

list_conversions

List supported target formats for a source format (or every source that can produce a target). Returns compact {from,to,slug,engine,mode} rows.

输入参数tofrom

convert_file

Convert a file. Provide the content as base64 OR a public https URL. `from` is optional when the filename/URL has an extension. Text outputs (Markdown, CSV, JSON, HTML…) up to 200 KB are returned inline as `text`; other outputs are returned as `base64` plus a `downloadUrl` that accepts the same bearer token. Max 10 MB per file. Set `deepRead: true` to read scans, photos and handwriting with AI Deep Read (1 credit per page).

输入参数to必填urlfrombase64optionsdeepReadfilename

get_conversion

Fetch a previous conversion by id: status, warnings, and the output (inline text or base64) if it is still retained.

输入参数id必填

版本历史

1
  1. v0.1.0最新Nov 5, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分