File Convert MCP Server

File Convert MCP Server

File Convert MCP Server

Category
访问服务器

README

File Convert MCP Server

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"
      }
    }
  }
}

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

🛠️ 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

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

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

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

Visit us https://convert.guru

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选