Skip to main content
Glama
FradSer

MCP Markdown Conversion Server

by FradSer

MCP-сервер для Markdown

Подписаться на Твиттер значок кузнеца

Английский |简体中文

Мощный сервер Model Context Protocol (MCP), который использует службы Cloudflare AI для преобразования различных форматов файлов в описания Markdown. Этот сервер предоставляет стандартизированный интерфейс для бесшовного преобразования файлов и генерации описаний.

Основные характеристики

  • Полная интеграция с сервисами Cloudflare AI

  • Эффективная генерация описаний Markdown

  • Комплексная поддержка форматов файлов

  • Интеграция API Native Cloudflare tomarkdown

  • Удобный интерфейс 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 или более поздняя версия

  • Действительный токен API Cloudflare

  • Активный идентификатор учетной записи Cloudflare

Установка

Установка через Smithery

Чтобы автоматически установить Markdown转换服务器 для Claude Desktop через Smithery :

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

Инструмент для разметки

Конвертирует различные форматы файлов в описания 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"
  ]
});

Лицензия

Лицензия Массачусетского технологического института

Этот проект поддерживается Фрадом ЛИ.

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)

ParametersJSON Schema
NameRequiredDescriptionDefault
filePathsYesArray of absolute file paths to generate descriptions for

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions what the tool does but lacks behavioral details like whether it processes files locally or remotely, error handling for unsupported formats, performance characteristics, or output format specifics. The description is functional but minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose and lists supported file types without unnecessary elaboration. Every word contributes to understanding the tool's scope, making it appropriately concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete. It doesn't explain what the generated markdown includes, how errors are handled, or any behavioral traits. For a tool with one parameter but significant implicit complexity (file processing), more context is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the 'filePaths' parameter. The description adds no additional parameter semantics beyond implying file type support, which is partially covered by the schema's lack of constraints. Baseline 3 is appropriate as the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate markdown description for files' and lists specific file types it supports. It uses a specific verb ('Generate') and identifies the resource ('files'), but since there are no sibling tools, it doesn't need to differentiate from alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives or any contextual prerequisites. It simply lists supported file types without indicating scenarios where this tool is appropriate or any limitations.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool updatev1.0.0
    • First observedto-markdown

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.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers