npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

feishu-to-md-mcp

v1.1.2

Published

MCP server for converting Feishu/Lark documents to Markdown

Readme

飞书文档转 Markdown MCP

npm version License: MIT

基于 MCP(Model Context Protocol)的飞书/Lark 文档转 Markdown 工具,通过原生 CDP(Chrome DevTools Protocol)直连浏览器实现文档转换。无需 Playwright,零额外依赖。

功能特性

  • 将飞书文档转换为 Markdown 格式,保留文档结构
  • 自动下载文档中的图片和附件
  • 原生 CDP 协议直连,无需安装 Playwright 或下载浏览器
  • 自动发现已开启远程调试的 Chrome/Edge 浏览器
  • 支持 macOS、Windows、Linux 全平台

快速开始

方式一:npx(推荐)

无需安装,直接在 MCP 客户端配置中使用:

{
  "mcpServers": {
    "feishu-to-md": {
      "command": "npx",
      "args": ["-y", "feishu-to-md-mcp"]
    }
  }
}

方式二:全局安装

npm install -g feishu-to-md-mcp

然后在 MCP 客户端配置中添加:

{
  "mcpServers": {
    "feishu-to-md": {
      "command": "feishu-to-md-mcp"
    }
  }
}

方式三:GitHub 直接引用(适用于内部/私有项目)

{
  "mcpServers": {
    "feishu-to-md": {
      "command": "npx",
      "args": ["github:twoer/feishu-to-md"]
    }
  }
}

前置准备

使用前需要在浏览器中开启远程调试:

  1. 打开 Chrome 或 Edge 浏览器
  2. 地址栏输入:
    • Chrome: chrome://inspect/#remote-debugging
    • Edge: edge://inspect/#remote-debugging
  3. 勾选 "Enable remote debugging",确认端口为 9222

开启后工具会自动发现并连接浏览器,无需额外配置。

工具:convert_feishu_doc

将飞书/Lark 文档转换为 Markdown 格式。

参数说明

| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | url | string | 是 | - | 飞书文档 URL | | outputPath | string | 否 | ./output | 输出目录,用于存放 Markdown 和资源文件 | | waitForManualLogin | boolean | 否 | true | 是否等待用户在浏览器中手动登录 | | browserType | string | 否 | system | 浏览器类型:systemchromeedgechromiumfirefox | | closeBrowser | boolean | 否 | false | 转换完成后是否关闭标签页 | | cdpPort | number | false | 否 | 9222 | CDP 端口号。设为 false 禁用 CDP |

使用示例

基本用法:

{
  "url": "https://example.feishu.cn/docx/xxxxx"
}

指定输出目录:

{
  "url": "https://example.feishu.cn/docx/xxxxx",
  "outputPath": "./docs/my-document"
}

输出结构

output/
├── document.md          # 转换后的 Markdown 文件
├── images/              # 下载的图片
│   ├── image-1.png
│   └── image-2.jpg
└── files/               # 下载的附件
    └── document.pdf

环境要求

  • Node.js >= 22.0.0
  • Chrome 或 Edge 浏览器,已开启远程调试

致谢

文档转换核心逻辑参考了 cloud-document-converter 项目。

许可证

MIT