Self-hosted file conversion toolkit with an MCP server

Self-hosted file conversion toolkit with an MCP server

convertagent•byvid-factory

ConvertAgent offers an MCP server that lets AI clients convert files between 20 document, image, audio, video, and markup formats using shared open-source engines.

License: MIT License•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Provides an MCP server exposing a convert_file tool that converts a file from one format to another.
  • •Provides a list_formats tool and supported conversion pairs across documents, images, audio/video, and text.
  • •Covers document, image, and audio/video conversions such as pdf to docx, image resizing, and video to audio.
  • •Runs fully self-hosted so files stay within the user's infrastructure.

BEST FOR

  • •AI agent clients that need file format conversion through MCP.
  • •Teams wanting local, self-hosted document and media conversion without cloud uploads or per-conversion fees.

ABOUT CONVERTAGENT

Self-hosted file conversion toolkit with an MCP server is cataloged as an MCP server attributed to vid-factory. ConvertAgent offers an MCP server that lets AI clients convert files between 20 document, image, audio, video, and markup formats using shared open-source engines. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Self-hosted file conversion toolkit with an MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which conversion engines does ConvertAgent use?

It relies on open-source engines: FFmpeg, LibreOffice, ImageMagick, and Pandoc.

What MCP tools does it expose?

The MCP server exposes convert_file for conversions and list_formats for supported format pairs.

Upstream README

View this exact version on GitHub

README.md · faa0f0b875ee · Fetched 2026-11-13 11:25:28 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

ConvertAgent — File conversion built for AI agents

File conversion built for AI agents. CLI, REST API, and MCP server — all sharing one engine.

Version Tests MCP Compatible License Node Engines

Quick Start · API Reference · MCP Server · Formats · Architecture · Roadmap


ConvertAgent is a self-hosted, open-source file conversion toolkit designed for AI agents. Your files never leave your infrastructure — no cloud uploads, no API keys, no per-conversion fees, no usage limits. Just install, run, and convert. CLI for local agents, REST API for remote access, and MCP for the agent ecosystem.

Self-hosted. Open source. Zero cost per conversion. Your agent converts files locally — no cloud, no limits, no vendor lock-in.


✨ Features

  • 🖥️ CLI-first — convertagent convert file.pdf --to docx — the native interface for agents
  • 🌐 REST API — POST /v1/convert for remote agents and web services
  • 🔌 MCP Server — Discoverable by any MCP-compatible AI client (Claude, ChatGPT, Cursor, etc.)
  • ⚡ One dispatcher — All three interfaces share the same conversion engine
  • 📦 20 conversion pairs across documents, images, audio/video, and text
  • 🔧 Open-source engines — FFmpeg, LibreOffice, ImageMagick, Pandoc under the hood
  • 🚀 Self-hosted — Your files never leave your infrastructure

📋 Supported Conversions

CategoryConversions
Documentspdf→docx · docx→pdf · html→pdf · md→pdf · md→html · md→docx · xlsx→csv · csv→xlsx · pptx→pdf
Imagesjpg→png · png→jpg · png→webp · webp→png · svg→png · image-resize · image-compress
Audio/Videomp4→mp3 · wav→mp3 · mp4→gif · any-video→mp4

🚀 Quick Start

Prerequisites

# Install conversion engines (Ubuntu/Debian)
sudo apt-get update && sudo apt-get install -y ffmpeg libreoffice imagemagick pandoc

Install & Run

git clone https://github.com/vid-factory/convertagent.git
cd convertagent
npm install
npm run build

CLI Usage

# Convert a PDF to Word
convertagent convert report.pdf --to docx

# Convert with custom output path
convertagent convert photo.png --to webp --output ./compressed.webp

# Extract audio from video
convertagent convert video.mp4 --to mp3

# List all supported formats
convertagent formats

# Check engine health
convertagent health

Start the API Server

# Start on default port 3001
node dist/api/server.js

# Or with custom port
PORT=8080 node dist/api/server.js

📡 API Reference

POST /v1/convert

Convert a file from one format to another.

Request:

{
  "action": "pdf-to-docx",
  "source": "/path/to/file.pdf",
  "options": {}
}

With URL source:

{
  "action": "html-to-pdf",
  "source_url": "https://example.com/page.html",
  "options": {}
}

With base64 source:

{
  "action": "jpg-to-png",
  "source_base64": "data:image/jpeg;base64,/9j/4AAQ...",
  "options": {}
}

Response:

{
  "success": true,
  "job_id": "a1b2c3d4",
  "artifact": {
    "path": "/output/a1b2c3d4.docx",
    "url": "/v1/artifacts/a1b2c3d4",
    "format": "docx",
    "size": 45231,
    "duration_ms": 1200
  }
}

GET /v1/formats

List all supported conversion pairs.

GET /health

Check engine availability.

{
  "ok": true,
  "service": "convertagent",
  "engines": {
    "ffmpeg": true,
    "libreoffice": true,
    "imagemagick": true,
    "pandoc": true
  }
}

🔌 MCP Server

ConvertAgent exposes an MCP server for integration with any MCP-compatible AI client.

Available Tools

ToolDescription
convert_fileConvert a file from one format to another
list_formatsList all supported conversion format pairs

Connect via MCP

{
  "mcpServers": {
    "convertagent": {
      "url": "http://localhost:3001/mcp"
    }
  }
}

Example: Claude Desktop

Add to your Claude Desktop MCP config:

{
  "mcpServers": {
    "convertagent": {
      "command": "node",
      "args": ["/path/to/convertagent/dist/mcp/server.js"]
    }
  }
}

🏗️ Architecture

┌─────────────────────────────────────────────────────┐
│                    ConvertAgent                       │
│                                                       │
│  ┌─────────┐  ┌─────────┐  ┌─────────┐              │
│  │   CLI   │  │   API   │  │   MCP   │  ← Interfaces│
│  └────┬────┘  └────┬────┘  └────┬────┘              │
│       │            │            │                     │
│       └────────────┼────────────┘                     │
│                    │                                  │
│           ┌────────▼────────┐                         │
│           │   Dispatcher    │  ← Shared routing core  │
│           └────────┬────────┘                         │
│                    │                                  │
│    ┌───────┬───────┼───────┬────────┐                │
│    │       │       │       │        │                │
│  ┌─▼──┐ ┌─▼──┐ ┌──▼──┐ ┌─▼────┐   │                │
│  │ FF │ │ LO │ │ IM  │ │ Pan  │   │  ← Engines     │
│  │mpeg│ │    │ │     │ │ doc  │   │                 │
│  └────┘ └────┘ └─────┘ └──────┘   │                │
│                                     │                │
│  FF = FFmpeg    LO = LibreOffice    │                │
│  IM = ImageMagick  Pan = Pandoc     │                │
└─────────────────────────────────────────────────────┘

🐳 Docker (Coming Soon)

docker run -p 3001:3001 vid-factory/convertagent

🛠️ Development

# Clone
git clone https://github.com/vid-factory/convertagent.git
cd convertagent

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

# Run the full 20-pair conversion test matrix
node scripts/run-tea-20.mjs

Project Structure

convertagent/
├── src/
│   ├── cli/              # CLI commands (convert, formats, health)
│   ├── api/              # REST API server (Fastify)
│   ├── mcp/              # MCP server (Streamable HTTP)
│   ├── core/             # Shared dispatcher + format registry
│   ├── engines/          # Engine adapters
│   │   ├── ffmpeg.ts     # Audio/video conversions
│   │   ├── libreoffice.ts# Document conversions
│   │   ├── imagemagick.ts# Image conversions
│   │   ├── pandoc.ts     # Text/markup conversions
│   │   └── shell.ts      # Shared shell runner with timeouts
│   └── tests/            # Unit + integration tests
├── scripts/              # TEA matrix runner, utilities
├── test-assets/          # Real input files for testing
├── test-artifacts/       # TEA results + parity evidence
├── deploy/               # systemd service file
├── package.json
├── tsconfig.json
└── README.md

📊 Test Results

ConvertAgent ships with a full real-file test matrix — no mocks.

PairStatusEngine
pdf→docx✅ PassLibreOffice
docx→pdf✅ PassLibreOffice
html→pdf✅ PassPandoc
md→pdf✅ PassPandoc
md→html✅ PassPandoc
md→docx✅ PassPandoc
xlsx→csv✅ PassLibreOffice
csv→xlsx✅ PassLibreOffice
pptx→pdf✅ PassLibreOffice
jpg→png✅ PassImageMagick
png→jpg✅ PassImageMagick
png→webp✅ PassImageMagick
webp→png✅ PassImageMagick
svg→png✅ PassImageMagick
image-resize✅ PassImageMagick
image-compress✅ PassImageMagick
mp4→mp3✅ PassFFmpeg
wav→mp3✅ PassFFmpeg
mp4→gif✅ PassFFmpeg
any-video→mp4✅ PassFFmpeg

20/20 passing — verified across CLI, API, and MCP interfaces with binary parity checks.


🗺️ Roadmap

  • CLI interface with 20 conversion pairs
  • REST API (/v1/convert, /v1/formats, /health)
  • MCP server with tool discovery + execution
  • Real-file TEA test matrix (20/20)
  • Cross-interface parity verification (CLI = API = MCP)
  • systemd deployment for persistence
  • URL source intake (fetch remote files for conversion)
  • Docker image for one-command deployment
  • OpenClaw skill package (publish to ClawHub)
  • Claw Mart marketplace listing
  • Pipeline endpoint (chain multiple conversions)
  • npm global install (npm install -g convertagent)
  • Usage tracking + rate limiting
  • Additional format pairs (50+)

🤝 Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/new-format-pair)
  3. Write tests for new conversions (use real files, not mocks)
  4. Run the full TEA matrix (node scripts/run-tea-20.mjs)
  5. Commit with conventional commits (feat:, fix:, docs:, test:)
  6. Open a Pull Request

Adding a New Conversion Pair

  1. Add the format pair to src/core/formats.ts
  2. Implement or extend the appropriate engine adapter in src/engines/
  3. Add a real test input file to test-assets/input/
  4. Add the pair to the TEA matrix in scripts/run-tea-20.mjs
  5. Run tests and verify output

📄 License

MIT License — see LICENSE for details.


🙏 Acknowledgments


Built by vid-factory — Agent infrastructure for the AI era.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Self-hosted file conversion toolkit with an MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/convertagent)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation