
Huoshui File Converter
io.github.huoshuiai42由 GitHub 账号 huoshuiai42 发布v1.0.0更新于 Oct 24, 2026
An MCP server that provides document format conversion
概览
一个本地 MCP 服务器,让助手在指定的工作目录内把文档在 Markdown、DOCX、HTML、PDF 和 TXT 之间转换。
- 可以做什么
- 在 Markdown、DOCX、HTML、PDF 和 TXT 之间转换文档,其中 TXT 和 HTML 可转为其他任一格式,PDF 仅作为输出格式。通过内容分析而非仅凭扩展名识别文件格式。浏览工作目录,可限制显示数量并只显示可转换的文件。查看单个文件的详细信息。列出支持的转换组合。
- 适用场景
- 适合需要把笔记、报告或网页内容转成另一种文档格式,或想查看某个文件夹里哪些文件可以转换,而不必离开聊天客户端的场景。
- 运行要求
- 以 Python 包形式在本地运行(需 Python 3.8 及以上),可通过 uvx 或 pip 安装。需要系统安装 pandoc,生成 PDF 还需 LaTeX。工作目录由 --dir/-d 参数或 HUOSHUI_WORKING_DIR 环境变量指定,未指定时使用当前目录。
安装
在 SourceWeft 中
- 打开 控制台中的 Huoshui File Converter,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Huoshui File Converter
A secure MCP (Model Context Protocol) server for document format conversion within a specified working directory.
Features
- 🔒 Sandbox Security: All operations restricted to a configured working directory
- 📄 Format Support: Convert between Markdown, DOCX, HTML, PDF, and TXT
- 🚀 MCP Integration: Full MCP protocol support with prompts, resources, and tools
- ⚙️ Flexible Configuration: CLI arguments, environment variables, or current directory
- 🔍 Smart Detection: Intelligent file format detection by content analysis
Quick Start
Installation
Option 1: From MCP Registry (Recommended)
This server is available in the Model Context Protocol Registry. Install it using your MCP client.
mcp-name: io.github.huoshuiai42/huoshui-file-converter
Option 2: Using uvx
Option 3: Using pip
Basic Usage
MCP Client Configuration
For Claude Desktop or other MCP clients:
Configuration Options
Priority Order
- CLI Argument (highest priority):
--diror-d - Environment Variable:
HUOSHUI_WORKING_DIR - Smart Default: Documents folder if current directory is problematic
- Current Directory (fallback)
Examples
Supported Conversions
MCP Tools & Resources
Tools
convert_document: Convert files between formatsdetect_format: Intelligent format detection
Resources
file_list: Browse directory contents (optimized for large directories)limit: Control number of files shown (default: 100)supported_only: Show only convertible files
file_get: Get detailed file informationconversion_capability_list: List supported conversions
Prompts
role_and_rules: AI assistant behavior guidelines
Performance Features
- Fast Directory Listing: Extension-based format detection for large directories
- Smart File Limits: Default 100-file limit prevents UI freezing
- Large File Handling: Files >50MB are marked and handled specially
- Selective Display: Option to show only supported file formats
- Memory Efficient: Avoids reading file contents during directory browsing
Security Features
- Path Validation: Prevents directory traversal attacks
- Working Directory Restriction: All operations sandboxed to configured directory
- Startup Validation: Checks directory existence and permissions
- Relative Path Enforcement: Absolute paths are rejected
Command Line Options
Error Handling
The server validates the working directory on startup:
Common errors and solutions:
Development
Requirements
- Python 3.8+
- pypandoc
- pandoc (system dependency)
- LaTeX (for PDF conversion)
Testing
Documentation
License
[Your license here]
来源:README.md,提交 ba6cd8b
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。