Logo van Markdownify MCP Server

Markdownify MCP Server

Community
JDJR2024

MCP Markdownify Server with UTF-8 Support - Enhanced version with better multilingual handling

UitgeverJDJR2024
Repositorymarkdownify-mcp-utf8
TaalTypeScript
Forks
8
Sterren
15
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Markdownify MCP Server biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    15 sterren en 8 forks in de gekoppelde repository.

Markdownify MCP Server - UTF-8 Enhanced

This is an enhanced version of the original Markdownify MCP project, with improved UTF-8 encoding support and optimized handling of multilingual content.

中文文档

Enhancements

  • Added comprehensive UTF-8 encoding support
  • Optimized handling of multilingual content
  • Fixed encoding issues on Windows systems
  • Improved error handling mechanisms

Key Differences from Original Project

  1. Enhanced Encoding Support:

    • Full UTF-8 support across all operations
    • Proper handling of Chinese, Japanese, Korean and other non-ASCII characters
    • Fixed Windows-specific encoding issues (cmd.exe and PowerShell compatibility)
  2. Improved Error Handling:

    • Detailed error messages in both English and Chinese
    • Better exception handling for network issues
    • Graceful fallback mechanisms for conversion failures
  3. Extended Functionality:

    • Added support for batch processing multiple files
    • Enhanced YouTube video transcript handling
    • Improved metadata extraction from various file formats
    • Better preservation of document formatting
  4. Performance Optimizations:

    • Optimized memory usage for large file conversions
    • Faster processing of multilingual content
    • Reduced dependency conflicts
  5. Better Development Experience:

    • Comprehensive debugging options
    • Detailed logging system
    • Environment-specific configuration support
    • Clear documentation in both English and Chinese

Features

Supports converting various file types to Markdown:

  • PDF files
  • Images (with metadata)
  • Audio (with transcription)
  • Word documents (DOCX)
  • Excel spreadsheets (XLSX)
  • PowerPoint presentations (PPTX)
  • Web content:
    • YouTube video transcripts
    • Search results
    • General web pages
  • Existing Markdown files

Quick Start

  1. Clone this repository:

    bash
    git clone https://github.com/JDJR2024/markdownify-mcp-utf8.git
    cd markdownify-mcp-utf8
  2. Install dependencies:

    bash
    pnpm install

    Note: This will also install uv and related Python dependencies.

  3. Build the project:

    bash
    pnpm run build
  4. Start the server:

    bash
    pnpm start

Requirements

  • Node.js 16.0 or higher
  • Python 3.8 or higher
  • pnpm package manager
  • Git

Detailed Installation Guide

1. Environment Setup

  1. Install Node.js:

  2. Install pnpm:

    bash
    npm install -g pnpm
    pnpm --version
  3. Install Python:

    • Download from Python official website
    • Ensure Python is added to PATH during installation
    • Verify installation: python --version
  4. (Windows Only) Configure UTF-8 Support:

    bash
    # Set system-wide UTF-8
    setx PYTHONIOENCODING UTF-8
    # Set current session UTF-8
    set PYTHONIOENCODING=UTF-8
    # Enable UTF-8 in command prompt
    chcp 65001

2. Project Setup

  1. Clone the repository:

    bash
    git clone https://github.com/JDJR2024/markdownify-mcp-utf8.git
    cd markdownify-mcp-utf8
  2. Create and activate Python virtual environment:

    bash
    # Windows
    python -m venv .venv
    .venv\Scripts\activate
    
    # Linux/macOS
    python3 -m venv .venv
    source .venv/bin/activate
  3. Install project dependencies:

    bash
    # Install Node.js dependencies
    pnpm install
    
    # Install Python dependencies (will be handled by setup.sh)
    ./setup.sh
  4. Build the project:

    bash
    pnpm run build

3. Verification

  1. Start the server:

    bash
    pnpm start
  2. Test the installation:

    bash
    # Convert a web page
    python convert_utf8.py "https://example.com"
    
    # Convert a local file
    python convert_utf8.py "path/to/your/file.docx"

Usage Guide

Basic Usage

  1. Converting Web Pages:

    bash
    python convert_utf8.py "https://example.com"

    The converted markdown will be saved as converted_result.md

  2. Converting Local Files:

    bash
    # Convert DOCX
    python convert_utf8.py "document.docx"
    
    # Convert PDF
    python convert_utf8.py "document.pdf"
    
    # Convert PowerPoint
    python convert_utf8.py "presentation.pptx"
    
    # Convert Excel
    python convert_utf8.py "spreadsheet.xlsx"
  3. Converting YouTube Videos:

    bash
    python convert_utf8.py "https://www.youtube.com/watch?v=VIDEO_ID"

Advanced Usage

  1. Environment Variables:

    bash
    # Set custom UV path
    export UV_PATH="/custom/path/to/uv"
    
    # Set custom output directory
    export MARKDOWN_OUTPUT_DIR="/custom/output/path"
  2. Batch Processing: Create a batch file (e.g., convert_batch.txt) with URLs or file paths:

    text
    https://example1.com
    https://example2.com
    file1.docx
    file2.pdf

    Then run:

    bash
    while read -r line; do python convert_utf8.py "$line"; done < convert_batch.txt

Troubleshooting

  1. Common Issues:

    • If you see encoding errors, ensure UTF-8 is properly set
    • For permission issues on Windows, run as Administrator
    • For Python path issues, ensure virtual environment is activated
  2. Debugging:

    bash
    # Enable debug output
    export DEBUG=true
    python convert_utf8.py "your_file.docx"

Usage

Command Line

Convert web page to Markdown:

bash
python convert_utf8.py "https://example.com"

Convert local file:

bash
python convert_utf8.py "path/to/your/file.docx"

Desktop App Integration

To integrate this server with a desktop app, add the following to your app's server configuration:

js
{
  "mcpServers": {
    "markdownify": {
      "command": "node",
      "args": [
        "{ABSOLUTE_PATH}/dist/index.js"
      ],
      "env": {
        "UV_PATH": "/path/to/uv"
      }
    }
  }
}

Troubleshooting

  1. Encoding Issues

    • If you encounter character encoding issues, ensure the PYTHONIOENCODING environment variable is set to utf-8
    • Windows users may need to run chcp 65001 to enable UTF-8 support
  2. Permission Issues

    • Ensure you have sufficient file read/write permissions
    • On Windows, you may need to run as administrator

Acknowledgments

This project is based on the original work by Zach Caceres. Thanks to the original author for their outstanding contribution.

License

This project continues to be licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Before submitting a Pull Request, please:

  1. Ensure your code follows the project's coding standards
  2. Add necessary tests and documentation
  3. Update relevant sections in the README

Contact

For issues or suggestions:

  1. Submit an Issue: https://github.com/JDJR2024/markdownify-mcp-utf8/issues
  2. Create a Pull Request: https://github.com/JDJR2024/markdownify-mcp-utf8/pulls
  3. Email: jdidndosmmxmx@gmail.com

Installatie

TypingMind
{
  "mcpServers": {
    "markdownify-mcp-utf8": {
      "command": "python",
      "args": [
        "convert_utf8.py",
        "\"{{config.INPUT_PATH_OR_URL}}\""
      ],
      "env": {
        "INPUT_PATH_OR_URL": "<INPUT_PATH_OR_URL>"
      }
    }
  }
}

Gebruik Markdownify MCP Server MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Markdownify MCP Server is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Markdownify MCP Server toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Markdownify MCP Server.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "markdownify-mcp-utf8": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-markdownify-server-utf8"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Markdownify MCP Server in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Markdownify MCP Server in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Markdownify MCP Server gebruiken om me hiermee te helpen?
Markdownify MCP Server
Zeker. Ik heb het gelezen.
Dit vond ik met Markdownify MCP Server.

Veelgestelde vragen

Waarvoor wordt de MCP-server Markdownify MCP Server gebruikt?

Markdownify MCP Server is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Markdownify MCP Server MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Markdownify MCP Server gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Markdownify MCP Server MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Markdownify MCP Server verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Markdownify MCP Server MCP met TypingMind?

Markdownify MCP Server werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Markdownify MCP Server MCP in TypingMind?

Markdownify MCP Server biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Markdownify MCP Server MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Markdownify MCP Server authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇