Back to MCP directory
publicPublicdnsLocal runtime

markdown-to-html

一个基于Model Context Protocol的服务器,提供Markdown转HTML功能

article

README

🚀 Markdown 转 HTML 的 MCP 服务器

这是一个基于模型上下文协议(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。

READY-TO-PASTE CONFIG

MCP client config generator

Choose your client, fill the required environment variables, then copy a config generated from this server's published metadata

terminal
data_object

This entry does not contain a standard command or remote URL, so a safe client config cannot be generated automatically

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