mcpField
F
File Convert MCP Server

File Convert MCP Server

Local
github.com/convertguruProductivity5Updated 61w ago

About File Convert MCP Server

File Convert MCP Server converts files across image, office, audio, video, text, and data formats for MCP clients. It combines file-type detection with conversion to commonly used output formats.

Key features

  1. 01Detect file types
  2. 02Convert images to PDF, JPG, or PNG
  3. 03Convert office documents to PDF, TXT, or HTML
  4. 04Convert audio and video to MP3 or MP4
  5. 05Convert database files to CSV

Use cases

  1. 01Identify the type of an uploaded file
  2. 02Prepare images in common formats
  3. 03Turn office documents into PDF or HTML
  4. 04Export database content as CSV

MCP support

It exposes the detect_file_type and convert_file tools to MCP clients for file identification and format conversion.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"file-convert": {
"command": "uvx",
"args": [
"git+https://github.com/convertguru/file-convert-mcp.git"
],
"env": {
"CONVERT_GURU_API_KEY": "<CONVERT_GURU_API_KEY>"
}
}
}
}
Run commanduvx 'git+https://github.com/convertguru/file-convert-mcp.git'
Environment variables to set
CONVERT_GURU_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypigit+https://github.com/convertguru/file-convert-mcp.git

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

File Convert MCP Server

smithery badge

A Model Context Protocol (MCP) server for converting files between various formats.

File Convert is an MCP server designed to handle the conversion of a wide array of file formats, including images, office documents, audio, video, text, and data files. It aims to provide seamless transformation into popular formats such as PDF, JPG, MP4, and HTML, among others. This server offers a set of powerful tools to convert diverse file types into easily accessible and widely compatible formats like PDF, JPG, PNG, TXT.

✨ Features

  • Intelligent File Type Detection: Employs a combination of AI, TrID, and magic bytes for accurate file type identification.
  • Versatile File Conversion: Supports conversion between numerous file types and the following popular formats:
    • Images: Handles a vast range of formats, including many legacy ones. Converts to PDF, JPG, PNG.
    • Office Documents: Converts to PDF, TXT, HTML.
    • Audio/Video: Converts to MP3, MP4.
    • Databases: Converts to CSV.
    • Various Files: Offers conversion capabilities for other file types as well.

🛠️ Requirements

  1. Python: Version 3.12 or higher is required.
  2. uv Tool: Install the Python uv tool for efficient dependency management and easy execution of the MCP server.
  3. API Key (Development): As of May 2025, the MCP is in its testing phase, and no API key is currently required for development. For future production use, please contact the Convert.Guru team to obtain an API key.

🚀 Usage with Desktop App

To integrate this server with your desktop application, add the following configuration to your app's server settings. If necessary, adjust the absolute path to the uv/uvx executables (or uv.exe/uvx.exe on Windows).

Using uvx (recommended):

{
  "mcpServers": {
    "file-convert": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/convertguru/file-convert-mcp.git", "file-convert-mcp"],
      "env": {
        "CONVERT_GURU_API_KEY": "your_api_key_here"
      }
    }
  }
}

If you have cloned the repository locally (adjust paths as needed):

{
  "mcpServers": {
    "file-convert": {
      "command": "/home/User/.local/bin/uv",
      "args": ["--directory", "/home/User/file-convert-mcp/src/file_convert_mcp", "run", "server.py"],
      "env": {
        "CONVERT_GURU_API_KEY": "your_api_key_here"
      }
    }
  }
}

Using local uvx:

{
  "mcpServers": {
    "file-convert": {
      "command": "uvx",
      "args": ["--from", "/home/User/file-convert-mcp", "file-convert-mcp"],
      "env": {
        "CONVERT_GURU_API_KEY": "your_api_key_here"
      }
    }
  }
}
Environment Variables

The MCP server supports the following environment variables:

  • CONVERT_GURU_API_KEY: Your Convert.Guru API key (optional for development)
  • TRANSPORT: Transport method for the MCP server
    • "stdio" (default): Standard input/output transport
    • "http": HTTP transport (streamable) with REST API endpoints
  • PORT: Port number for HTTP transport (default: 8000, only used when TRANSPORT=http)

When using HTTP transport, the server provides additional endpoints:

  • GET /health - Health check endpoint
  • GET /tools - List of available MCP tools

Also, see this guide on how to set up MCP tools in Claude Desktop.

Installing via Smithery

To install file-convert-mcp for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @convertguru/file-convert-mcp --client claude

🛠️ Development

Get started with local development by following these steps:

1. Clone the repository:

git clone https://github.com/convertguru/file-convert-mcp.git

2. Fetch and cache Python dependencies (optional, uvx handles this automatically):

cd file-convert-mcp
uv sync
cd ..

3. Create .env file with your (optional for now) API key:

echo "CONVERT_GURU_API_KEY=your_api_key_here" > file-convert-mcp/.env

4. Run the MCP server locally using various uv commands:

# Using uvx with .env file from the local directory
cd file-convert-mcp
UV_ENV_FILE=.env uvx --from ./file-convert-mcp file-convert-mcp

# OR using uv directly to run the server script
uv run file-convert-mcp/src/file_convert_mcp/server.py

# OR specifying the directory for uv
uv --directory file-convert-mcp/src/file_convert_mcp run server.py

# OR navigating into the server directory
cd file-convert-mcp/src/file_convert_mcp
uv run server.py

# OR using uvx to fetch the core from the GitHub repository + local .env file
UV_ENV_FILE=.env uvx --from git+https://github.com/convertguru/file-convert-mcp.git file-convert-mcp

# OR run with HTTP transport on custom port
TRANSPORT=http PORT=9000 uv run file-convert-mcp/src/file_convert_mcp/server.py

# OR run with stdio transport (default)
TRANSPORT=stdio uv run file-convert-mcp/src/file_convert_mcp/server.py

5. Create .env file with your configuration (optional for now):

# Basic configuration
echo "CONVERT_GURU_API_KEY=your_api_key_here" > file-convert-mcp/.env

# OR with transport configuration
echo "CONVERT_GURU_API_KEY=your_api_key_here" > file-convert-mcp/.env
echo "TRANSPORT=http" >> file-convert-mcp/.env
echo "PORT=8000" >> file-convert-mcp/.env

6. Modify the server logic if needed: Edit the main server file located at src/file_convert_mcp/server.py.

7. Clearing the uv Cache (if needed): If uv has cached an older version of the code in ~/.cache/uv, you might need to clear the cache. Alternatively, use uv with the -n or --no-cache option to bypass it.

⚙️ Available Tools

The MCP server provides the following tools:

  • detect_file_type: Analyzes the first 200 bytes of an uploaded file and uses the Convert.Guru API to determine its type.
  • convert_file: Converts a given file to a specified output format. The desired file extension should be passed as the ext_out parameter.

📜 License

Visit us https://convert.guru

This project is licensed under the MIT License - see the LICENSE file for complete details.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.