Labsco
FradSer logo

MCP Server To Markdown

โ˜… 35

from FradSer

Converts various file formats to Markdown using Cloudflare AI.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

MCP Server To Markdown

Twitter Follow smithery badge

English | ็ฎ€ไฝ“ไธญๆ–‡

A powerful Model Context Protocol (MCP) server that leverages Cloudflare AI services to convert various file formats into Markdown descriptions. This server provides a standardized interface for seamless file conversion and description generation.

Key Features

  • Seamless integration with Cloudflare AI services
  • Efficient Markdown description generation
  • Comprehensive file format support
  • Native Cloudflare tomarkdown API integration
  • User-friendly MCP interface
  • Cross-platform compatibility

Supported File Formats

CategoryFile Extensions
Documents.pdf
Images.jpeg, .jpg, .png, .webp, .svg
Web Content.html
Data.xml, .csv
Spreadsheets.xlsx, .xlsm, .xlsb, .xls, .et, .ods, .numbers

API Reference

to-markdown Tool

Converts various file formats to Markdown descriptions.

Input Parameters:

  • filePaths: Array<string> (required) - List of file paths to process

Response Structure:

[
  {
    "filename": "example.pdf",
    "mimeType": "application/pdf",
    "description": "Generated Markdown description",
    "tokens": 123
  }
]

Development Guide

Getting Started

  1. Clone and setup environment:
git clone <repository-url>
cd mcp-server-to-markdown
cp .env.example .env
  1. Configure Cloudflare credentials:
CLOUDFLARE_API_TOKEN=your_api_token
CLOUDFLARE_ACCOUNT_ID=your_account_id
  1. Install dependencies and build:
npm install
npm run build

Project Structure

.
โ”œโ”€โ”€ src/             # Source code
โ”œโ”€โ”€ dist/            # Compiled output
โ”œโ”€โ”€ types.ts         # Type definitions
โ””โ”€โ”€ .env             # Environment configuration

Available Scripts

  • npm run build - Build TypeScript code
  • npm run inspect - Run with MCP inspector