DM

dazeb/markdown-downloader

开发工具

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

56 stars 16 forks 质量 66 趋势 0MIT

dazeb/markdown-downloader 是一个从 https://github.com/dazeb/markdown-downloader. 导入的 MCP 服务器候选

概览

dazeb/markdown-downloader 是一个从 https://github.com/dazeb/markdown-downloader. 导入的 MCP 服务器候选

概述(AI 翻译)

概述

Markdown Downloader 是一款强大的 MCP(模型上下文协议)服务器,允许您轻松下载网页作为 markdown 文件。利用 r.jina.ai 服务,该工具提供了无缝转换网页为 markdown 格式的方法。

特色

  • 🌐 使用 r.jina.ai 下载网页作为折扣
  • 📁 可配置下载目录
  • 📝 自动生成带有日期戳的文件名
  • 🔍 列出下载的 Markdown 文件
  • 💾 持久配置

先修条件

  • Node.js(版本16及以上)
  • npm(节点包管理器)

安装

通过Smithery安装

通过Smithery自动安装Claude Desktop的Markdown Downloader:

手动安装

  1. 克隆仓库:

  2. 安装依赖:

  3. 建设项目:

手动将服务器添加到Cline/Roo-Cline MCP设置文件中

Linux/macOS

Windows

工具与使用

1.Set Download Directory

更改下载目录:

  • 验证目录存在且可写
  • 持久化配置以备未来使用

2.下载Markdown

下载一个网页作为折扣文件:

  • URL 前将加上 r.jina.ai

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

README

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

Markdown Downloader MCP Server

Overview

Markdown Downloader is a powerful MCP (Model Context Protocol) server that allows you to download webpages as markdown files with ease. Leveraging the r.jina.ai service, this tool provides a seamless way to convert web content into markdown format.

Features

  • 🌐 Download webpages as markdown using r.jina.ai
  • 📁 Configurable download directory
  • 📝 Automatically generates date-stamped filenames
  • 🔍 List downloaded markdown files
  • 💾 Persistent configuration

Prerequisites

  • Node.js (version 16 or higher)
  • npm (Node Package Manager)

Installation

Installing via Smithery

To install Markdown Downloader for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @dazeb/markdown-downloader --client claude

Installing manually

  1. Clone the repository:

    git clone https://github.com/your-username/markdown-downloader.git
    cd markdown-downloader
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Manually Add Server to Cline/Roo-Cline MCP Settings file

Linux/macOS

{
  "mcpServers": {
    "markdown-downloader": {
      "command": "node",
      "args": [
        "/home/user/Documents/Cline/MCP/markdown-downloader/build/index.js"
      ],
      "disabled": false,
      "alwaysAllow": [
        "download_markdown",
        "set_download_directory"
      ]
    }
  }
}

Windows

{
  "mcpServers": {
    "markdown-downloader": {
      "command": "node",
      "args": [
        "C:\\Users\\username\\Documents\\Cline\\MCP\\markdown-downloader\\build\\index.js"
      ],
      "disabled": false,
      "alwaysAllow": [
        "download_markdown",
        "set_download_directory"
      ]
    }
  }
}

Tools and Usage

1. Set Download Directory

Change the download directory:

use set_download_directory /path/to/your/local/download/folder
  • Validates directory exists and is writable
  • Persists the configuration for future use

2. Download Markdown

Download a webpage as a markdown file:

use tool download_markdown https://example.com/blog-post
在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @dazeb/markdown-downloader --client claude
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "markdown-downloader": { "command": "node", "args": [ "/home/user/Documents/Cline/MCP/markdown-downloader/build/index.js" ], "disabled": false, "alwaysAllow": [ "download_markdown", "set_download_directory" ] } } }