Huoshui File Converter
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Huoshui File Converterconvert notes.md to PDF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: doc-ops-mcp
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
uvx huoshui-file-converterOption 3: Using pip
pip install huoshui-file-converterBasic Usage
# 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"MCP Client Configuration
For Claude Desktop or other MCP clients:
{
"mcpServers": {
"huoshui-converter": {
"command": "uvx",
"args": ["huoshui-file-converter", "--dir", "/Users/yourname/Documents"]
}
}
}Configuration Options
Priority Order
CLI Argument (highest priority):
--diror-dEnvironment Variable:
HUOSHUI_WORKING_DIRSmart Default: Documents folder if current directory is problematic
Current Directory (fallback)
Examples
# 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-converterSupported Conversions
From | To |
Markdown | DOCX, HTML, PDF |
DOCX | Markdown, HTML, PDF |
HTML | Markdown, DOCX, PDF |
TXT | Markdown, DOCX, HTML, PDF |
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
$ 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 directoryError Handling
The server validates the working directory on startup:
ā
Working directory configured: /Users/name/Documents
š Source: CLI argumentCommon errors and solutions:
Error | Solution |
Directory not found | Create directory or fix path |
No write access | Check permissions ( |
Path outside sandbox | Use relative paths only |
Development
Requirements
Python 3.8+
pypandoc
pandoc (system dependency)
LaTeX (for PDF conversion)
Testing
# Test configuration
uvx huoshui-file-converter --dir "/tmp/test"
# Check startup messages
# ā
Working directory configured: /tmp/test
# š Source: CLI argumentDocumentation
License
[Your license here]
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, PDF, DOCX (.docx), csv and more.1574MIT
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.1317139MIT
- Alicense-qualityCmaintenanceAn MCP server that converts Markdown text to DOCX format using an external conversion service. It supports custom templates, multi-language output, and provides flexible file handling for both local and cloud-based deployments.7MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables bidirectional conversion between Markdown and PDF formats, including text extraction from specific pages and metadata retrieval. It supports customizable PDF output sizes and document processing through standard MCP tools.51
Related MCP Connectors
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Use your own Word templates to convert Markdown ā DOCX/PDF/HTML from any MCP-compatible AI.
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/huoshuiai42/huoshui-file-converter'
If you have feedback or need assistance with the MCP directory API, please join our Discord server