Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-server-to-markdown

MCP.Pizza Chef: FradSer

mcp-server-to-markdown is a Model Context Protocol server that integrates Cloudflare AI services to convert various file formats, including PDFs and images, into standardized Markdown descriptions. It offers a user-friendly MCP interface, supports multiple file types, and leverages native Cloudflare tomarkdown API for efficient and cross-platform compatible file conversion and description generation.

Use This MCP server To

Convert PDFs into Markdown summaries for documentation Generate Markdown descriptions from images for content management Standardize file content into Markdown for knowledge bases Integrate file-to-Markdown conversion in AI-enhanced workflows Automate Markdown report generation from diverse file inputs

README

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

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

System Requirements

  • Node.js 18 or later
  • Valid Cloudflare API Token
  • Active Cloudflare Account ID

Installation

Installing via Smithery

To install Markdown转换服务器 for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @FradSer/mcp-server-to-markdown --client claude

Manual Installation

Install globally using npm:

npm install -g mcp-server-to-markdown

MCP Client Configuration

Cursor Integration

  1. Navigate to Cursor settings
  2. Select "MCP" from the sidebar
  3. Choose "Add new global MCP server"
  4. Apply the following configuration:
    {
      "mcpServers": {
        "to-markdown": {
          "command": "mcp-server-to-markdown",
          "args": [
            "CLOUDFLARE_API_TOKEN": "your_api_token"
            "CLOUDFLARE_ACCOUNT_ID": "your_account_id"
          ]
        }
      }
    }

Claude Desktop Setup

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "to-markdown": {
      "command": "mcp-server-to-markdown",
      "args": [
            "CLOUDFLARE_API_TOKEN": "your_api_token"
            "CLOUDFLARE_ACCOUNT_ID": "your_account_id"
          ]
    }
  }
}

ChatWise Configuration

  1. Launch ChatWise
  2. Access Settings
  3. Select Tools section
  4. Click "+" to add new tool
  5. Configure with these parameters:
    • Type: stdio
    • ID: to-markdown
    • Command: mcp-server-to-markdown
    • Args:
      CLOUDFLARE_API_TOKEN=your_api_token
      CLOUDFLARE_ACCOUNT_ID=your_account_id
      

API Reference

to-markdown Tool

Converts various file formats to Markdown descriptions.

Input Parameters:

  • filePaths: Array (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

Usage Example

const result = await toMarkdown({
  filePaths: [
    "/path/to/document.pdf",
    "/path/to/image.jpg"
  ]
});

License

MIT License

This project is maintained by Frad LEE

mcp-server-to-markdown FAQ

How does mcp-server-to-markdown integrate with Cloudflare AI services?
It uses Cloudflare's native tomarkdown API to convert files into Markdown format efficiently.
What file formats are supported by mcp-server-to-markdown?
It supports documents like PDFs and various image formats, with ongoing expansion for more types.
Is mcp-server-to-markdown compatible across different platforms?
Yes, it is designed for cross-platform compatibility to work seamlessly in diverse environments.
Can mcp-server-to-markdown be used in real-time AI workflows?
Yes, its MCP interface allows integration into real-time AI-enhanced workflows for dynamic file conversion.
Does mcp-server-to-markdown require special setup for Cloudflare integration?
Basic configuration is needed to connect with Cloudflare AI services, but it is straightforward and well-documented.
How does this server handle large or complex files?
It efficiently processes large files by leveraging Cloudflare's scalable AI infrastructure.
Can the Markdown output be customized?
While primarily standardized, output customization can be implemented depending on integration needs.
What are the security considerations when using mcp-server-to-markdown?
It follows MCP principles for secure, scoped, and observable interactions to protect data privacy.