Back to MCP directory
publicPublicdnsLocal runtime

Markdown to HTML

一个将Markdown转换为HTML的MCP服务器

article

README

🚀 Markdown转HTML的MCP服务器

本项目是一个实现Markdown到HTML转换的模型上下文协议(Model Context Protocol)服务器,能够高效地将Markdown内容转换为HTML格式,为相关开发和应用提供便利。

🚀 快速开始

本服务器可实现Markdown到HTML的转换,为后续开发和使用提供便利。以下是使用前的相关操作。

✨ 主要特性

工具

  • markdown_to_html - 将Markdown转换为HTML
    • 接受mdContent作为必需参数

📦 安装指南

开发依赖安装

安装项目所需的依赖:

npm install

服务端构建

构建服务端:

npm run build

开发时自动重建

开发过程中使用自动重建功能:

npm run watch

在Claude Desktop上使用

要在Claude Desktop上使用,需要添加服务器配置:

  • 在MacOS中:配置文件路径为~/Library/Application Support/Claude/claude_desktop_config.json
  • 在Windows中:配置文件路径为%APPDATA%/Claude/claude_desktop_config.json

配置内容如下:

{
  "mcpServers": {
    "markdown-to-html": {
      "command": "node",
      "args": [
        "/path/to/markdown-to-html/build/index.js"
      ]
    }
  }
}

调试说明

由于MCP服务器通过标准输入输出进行通信,调试可能较为困难。我们推荐使用MCP Inspector,该工具可以通过包脚本运行:

npm run inspector

Inspector将提供一个访问调试工具的URL,在您的浏览器中打开即可进行调试。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client