Skip to main content
Glama
MCP Markdown Conversion Server

MCP Markdown Conversion Server

by FradSer

MCPサーバーからMarkdownへ

Twitterフォロー鍛冶屋のバッジ

英語 |简体中文

CloudflareのAIサービスを活用し、様々なファイル形式をMarkdown記述に変換する強力なモデルコンテキストプロトコル(MCP)サーバーです。このサーバーは、シームレスなファイル変換と記述生成のための標準化されたインターフェースを提供します。

主な特徴

  • Cloudflare AIサービスとのシームレスな統合

  • 効率的なマークダウン記述生成

  • 包括的なファイル形式のサポート

  • ネイティブ Cloudflare tomarkdown API 統合

  • ユーザーフレンドリーなMCPインターフェース

  • クロスプラットフォームの互換性

Related MCP server: Textin MCP Server

サポートされているファイル形式

カテゴリ

ファイル拡張子

文書

.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 转换服务器を自動的にインストールするには:

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

手動インストール

npm を使用してグローバルにインストールします。

npm install -g mcp-server-to-markdown

MCP クライアント構成

カーソル統合

  1. カーソル設定に移動

  2. サイドバーから「MCP」を選択します

  3. 「新しいグローバルMCPサーバーを追加」を選択します

  4. 次の構成を適用します。

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

クロードデスクトップセットアップ

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の設定

  1. ChatWiseを起動する

  2. アクセス設定

  3. ツールセクションを選択

  4. 「+」をクリックして新しいツールを追加します

  5. 次のパラメータを使用して構成します。

    • タイプ: stdio

    • ID: to-markdown

    • コマンド: mcp-server-to-markdown

    • 引数:

      CLOUDFLARE_API_TOKEN=your_api_token
      CLOUDFLARE_ACCOUNT_ID=your_account_id

APIリファレンス

to-markdownツール

さまざまなファイル形式を Markdown 記述に変換します。

入力パラメータ:

  • filePaths : 配列(必須) - 処理するファイルパスのリスト

応答構造:

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

開発ガイド

はじめる

  1. 環境のクローンとセットアップ:

git clone <repository-url>
cd mcp-server-to-markdown
cp .env.example .env
  1. Cloudflare の資格情報を設定します。

CLOUDFLARE_API_TOKEN=your_api_token
CLOUDFLARE_ACCOUNT_ID=your_account_id
  1. 依存関係をインストールしてビルドします。

npm install
npm run build

プロジェクト構造

.
├── src/             # Source code
├── dist/            # Compiled output
├── types.ts         # Type definitions
└── .env             # Environment configuration

利用可能なスクリプト

  • npm run build - TypeScript コードをビルドする

  • npm run inspect - MCPインスペクターで実行

使用例

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

ライセンス

MITライセンス

このプロジェクトはFrad LEEによって管理されています

Available Tools

1 tool
to-markdownC

Generate markdown description for files including PDF (.pdf), Images (.jpeg, .jpg, .png, .webp, .svg), HTML (.html), XML (.xml), Microsoft Office (.xlsx, .xlsm, .xlsb, .xls, .et), Open Document Format (.ods), CSV (.csv), and Apple Documents (.numbers)

Inputs: filePaths (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion or overlap between tools. The single tool 'to-markdown' has a clearly defined and distinct purpose: converting various file formats to markdown descriptions.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'to-markdown' follows a clear verb-object pattern that is appropriate for its function.

    Tool Count2/5

    A single tool is too few for a server with a broad scope like 'Markdown Conversion Server' that handles multiple file types. This thin surface may force agents to rely on this one tool for all conversion tasks, lacking specialized operations for different formats or scenarios.

    Completeness2/5

    The tool set is severely incomplete for the server's purpose. While 'to-markdown' covers conversion, there are obvious gaps such as no tools for validating markdown, handling conversion errors, or providing metadata about supported formats, which limits agent workflows.

    Related MCP Connectors

    Related MCP Servers