FM

fradser/mcp-server-to-markdown

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

35 stars 5 forks 质量 58 趋势 12

一个强大的模型上下文协议(MCP)服务器,利用 Cloudflare AI 服务将各种文件格式转换为 Markdown 描述。

概览

一台强大的模型上下文协议(MCP)服务器,利用 Cloudflare AI 服务将各种文件格式转换为 Markdown 描述。该服务器为无缝的文件转换和描述生成提供了标准化界面。 - 与Cloudflare AI服务无缝集成 - 高效的Markdown描述生成 - 全面的文件格式支持 - 原生Cloudflare tomarkdown API集成 - 用户友好的MCP界面 - 跨平台兼容性 - Node.js 18及以上 - 有效的Cloudflare API令牌 - 活跃的Cloudflare账户ID 通过 Smithery 自动安装 Claude Desktop 的 Markdown转换服务器: 1. 进入光标设置 2.从侧边栏选择“MCP” 3.选择“添加新的全局MCP服务器” 4.应用以下配置: 请在claude_desktop_config.json中添加以下内容: 1. 启动 ChatWise 2.访问设置 3.选择工具部分 4.点击“+”添加新工具 5.

概述(AI 翻译)

英文 |简体中文

一台强大的模型上下文协议(MCP)服务器,利用 Cloudflare AI 服务将各种文件格式转换为 Markdown 描述。该服务器为无缝的文件转换和描述生成提供了标准化界面。

主要特色

  • 与Cloudflare AI服务无缝集成
  • 高效的Markdown描述生成
  • 全面的文件格式支持
  • 原生 Cloudflare tomarkdown API 集成
  • 用户友好的MCP接口
  • 跨平台兼容性

支持的文件格式

类别 文件扩展名
文件 .pdf
图片 .jpeg、.jpg、.png、.webp、.svg
网络内容 .html
数据 .xml, .csv
电子表格 .xlsx、.xlsm、.xlsb、.xls、.et、.ods、.numbers

系统需求

  • Node.js 18岁及以上
  • 有效的Cloudflare API令牌
  • 活跃的Cloudflare账户ID

安装

通过Smithery安装

通过 Smithery 自动安装 Claude Desktop 的 Markdown转换服务器:

手动安装

全局使用 npm 安装:

MCP 客户端配置

光标集成

  1. 导航到光标设置
  2. 从侧边栏选择“MCP”

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Server To Markdown

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
在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @FradSer/mcp-server-to-markdown --client claude
新手?先看 mcpskill.org 教程 →

配置

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