Huoshui File Converter logo

Huoshui File Converter

Convert Markdown, DOCX, HTML, PDF, and TXT files within a restricted working directory over MCP.

Install Huoshui File Converter

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "huoshui-file-converter": {
      "command": "uvx",
      "args": [
        "huoshui-file-converter"
      ],
      "env": {
        "HUOSHUI_WORKING_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 3 tools correctly ().

Overview

The huoshui-file-converter MCP server converts documents within a configured working directory and exposes the workflow through MCP. It detects file formats, lists files, reports conversion capabilities, and retrieves file details before conversion. Reach for it when an agent needs to transform local Markdown, DOCX, HTML, PDF, or TXT files while limiting access to a designated directory. It runs through uvx or pip and accepts its working directory through a CLI option or environment variable.

Use cases

  • Convert Markdown documentation to DOCX, HTML, or PDF
  • Detect document formats before processing local files
  • Browse large document directories with a file limit
  • List only files supported for conversion
  • Inspect file metadata inside a restricted workspace

Key features

  • Converts Markdown, DOCX, HTML, PDF, and TXT files
  • Detects formats through content analysis
  • Restricts file operations to a configured working directory
  • Browses large directories with limits and supported-file filtering
  • Lists available conversion pairs
  • Supports MCP tools, resources, and prompts

Tools3

What Huoshui File Converter lets your agent do. Expand a tool for its parameters.

Verified live~239 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 83d

What it can do

From the 3 tools this server returned when we ran it.

Read-only tools · 3
Network at startup2 connections
Files written at startup1

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12h ago via OSV.dev · huoshui-file-converter (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1y agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Huoshui File Converter works

What huoshui-file-converter MCP server does

The huoshui-file-converter MCP server gives an MCP client access to document conversion operations inside one configured working directory. Supported source and destination formats include Markdown, DOCX, HTML, PDF, and TXT, although the available conversion pairs vary by source format.

The server is intended for local file workflows. It can inspect the directory, identify likely formats, show conversion options, and convert files without granting operations outside the configured workspace. Absolute paths are rejected, and path validation is used to prevent directory traversal.

How it works

The huoshui-file-converter MCP server can be started with uvx huoshui-file-converter or installed with pip. A working directory can be supplied with --dir or -d; otherwise, the process checks HUOSHUI_WORKING_DIR, then uses a suitable default based on the current environment.

The MCP interface includes tools for conversion and format detection, along with resources for browsing and inspecting files. Directory browsing avoids reading file contents and uses extension-based detection, which is intended to reduce overhead for large directories. Listings default to 100 entries and can be filtered to convertible files. Files larger than 50 MB receive special handling.

Supported conversion paths are:

  • Markdown to DOCX, HTML, or PDF
  • DOCX to Markdown, HTML, or PDF
  • HTML to Markdown, DOCX, or PDF
  • TXT to Markdown, DOCX, HTML, or PDF

Setup and configuration

For an MCP client, configure a command such as uvx with huoshui-file-converter and the target directory in the argument list. For example, the working directory can be set to /project/docs with --dir /project/docs. The same location can be configured through HUOSHUI_WORKING_DIR when command-line configuration is not convenient.

Startup validation checks that the selected directory exists and is accessible. The implementation requires Python 3.8 or newer, pypandoc, Pandoc, and LaTeX for PDF conversion. Installation is documented through the MCP Registry, uvx, and pip.

Tools and capabilities

The huoshui-file-converter MCP server exposes these MCP operations and supporting interfaces:

  • convert_document converts a file between supported formats.
  • detect_format identifies a file format using content analysis.
  • file_list browses directory contents, with limit and supported_only controls.
  • file_get returns detailed information about a file.
  • conversion_capability_list reports supported conversion pairs.
  • role_and_rules provides behavior guidance for an AI assistant.

The limit control defaults to 100 entries. supported_only narrows listings to files that can be converted. The server also supports MCP prompts and resources in addition to its tools.

Limitations and notes

Conversions are restricted to the formats and direction pairs listed by the server. PDF output requires LaTeX, so PDF conversion depends on that system dependency being installed. Operations are sandboxed to the selected working directory, and paths outside it or absolute paths are not accepted.

A directory must exist and allow the required access before startup succeeds. For large directories, the listing limit and supported-file filter can reduce the amount of displayed metadata, but they do not expand the conversion format list. The repository excerpt does not specify a released software license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Huoshui File Converter

huoshui-file-converter is an MCP server that connects an AI client to files in a configured working directory and supports document conversion. Its main tools are convert_document for format changes and detect_format for identification, with file listing, file details, and conversion capability resources also available.

Install it through the MCP Registry, run it with uvx, or install the package with pip. The documented commands are `uvx huoshui-file-converter` and `pip install huoshui-file-converter`.

Set it with `--dir` or `-d`, such as `uvx huoshui-file-converter --dir /project/docs`. You can also use the `HUOSHUI_WORKING_DIR` environment variable; the command-line option takes priority.

It supports Markdown, DOCX, HTML, PDF, and TXT, with specific conversion directions defined by the server. Markdown, DOCX, and HTML can convert to several document formats, while TXT can convert to Markdown, DOCX, HTML, or PDF.

Yes, the README provides a Claude Desktop configuration using the `uvx` command and a selected working directory. Other MCP clients can use the server through their standard MCP configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHuoshui File Converter AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/huoshui-file-converter?style=directory)](https://allmcps.com/mcp/huoshui-file-converter)
HTML Embed
<a href="https://allmcps.com/mcp/huoshui-file-converter"><img src="https://allmcps.com/api/badge/huoshui-file-converter?style=directory" alt="Huoshui File Converter on AllMCPs" /></a>