An MCP server that provides document format conversion
A secure MCP (Model Context Protocol) server for document format conversion within a specified working directory.
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
uvx huoshui-file-converter
Option 3: Using pip
pip install huoshui-file-converter
# Use current directory
uvx huoshui-file-converter
# Specify working directory (recommended)
uvx huoshui-file-converter --dir "/path/to/documents"
# Short form
uvx huoshui-file-converter -d "~/Documents"
For Claude Desktop or other MCP clients:
{
"mcpServers": {
"huoshui-converter": {
"command": "uvx",
"args": ["huoshui-file-converter", "--dir", "/Users/yourname/Documents"]
}
}
}
--dir or -dHUOSHUI_WORKING_DIR# CLI argument (best for MCP clients)
uvx huoshui-file-converter --dir "/project/docs"
# Environment variable
export HUOSHUI_WORKING_DIR="/project/docs"
uvx huoshui-file-converter
# Current directory fallback
cd /project/docs
uvx huoshui-file-converter
| From | To |
|---|---|
| Markdown | DOCX, HTML, PDF |
| DOCX | Markdown, HTML, PDF |
| HTML | Markdown, DOCX, PDF |
| TXT | Markdown, DOCX, HTML, PDF |
convert_document: Convert files between formatsdetect_format: Intelligent format detectionfile_list: Browse directory contents (optimized for large directories)
limit: Control number of files shown (default: 100)supported_only: Show only convertible filesfile_get: Get detailed file informationconversion_capability_list: List supported conversionsrole_and_rules: AI assistant behavior guidelines$ uvx huoshui-file-converter --help
usage: huoshui-file-converter [-h] [--dir PATH] [--version]
Huoshui Document Converter - MCP Server for file conversion within a working directory
options:
-h, --help show this help message and exit
--dir PATH, -d PATH
Working directory for file operations (default: current directory or HUOSHUI_WORKING_DIR env var)
--version, -v show program's version number and exit
Examples:
uvx huoshui-file-converter # Use current directory
uvx huoshui-file-converter --dir /docs # Use specific directory
uvx huoshui-file-converter -d ./project # Use relative directory
Configuration Priority:
1. CLI argument (--dir/-d)
2. Environment variable (HUOSHUI_WORKING_DIR)
3. Current working directory
The server validates the working directory on startup:
β
Working directory configured: /Users/name/Documents
π Source: CLI argument
Common errors and solutions:
| Error | Solution |
|---|---|
| Directory not found | Create directory or fix path |
| No write access | Check permissions (chmod on Unix) |
| Path outside sandbox | Use relative paths only |
# Test configuration
uvx huoshui-file-converter --dir "/tmp/test"
# Check startup messages
# β
Working directory configured: /tmp/test
# π Source: CLI argument
[Your license here]
Source-derived launch command. Check the maintainerβs required arguments and credentials before running:
uvx huoshui-file-converterMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-huoshuiai42-huoshui-file-converter": {
"command": "uvx",
"args": [
"huoshui-file-converter"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the clientβs tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceio.github.huoshuiai42/huoshui-file-converter works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.