# huoshui-file-converter [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/huoshuiai42/huoshui-file-converter  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/huoshui-file-converter

## Description
An MCP server that provides document format conversion

## Tools
Capabilities this server exposes over MCP:

- **file_get** — Retrieves detailed information about a single file.
- **convert_document** — Converts a specified file to a different format. The new file is saved in the same directory as the original.
- **detect_format** — Intelligently detects a file's true format by inspecting its contents, 
which is more reliable than trusting a file extension.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "huoshui-file-converter": {
    "command": "uvx",
    "args": ["huoshui-file-converter"],
    "env": {
      "HUOSHUI_WORKING_DIR": ""
    }
  }
}
```

**Requires environment variables:** `HUOSHUI_WORKING_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/huoshui-file-converter/readme_

