
Distill Mcp
io.github.lakshgk由 GitHub 账号 lakshgk 发布v0.1.1更新于 Oct 24, 2026
Convert PDF, DOCX, XLSX, PPTX, HTML, audio to token-efficient Markdown for any MCP client.
概览
将本地 PDF、DOCX、XLSX、PPTX、HTML 和音频等文档转换为节省 token 的 Markdown,供 MCP 客户端使用。
- 可以做什么
- Distill Mcp 提供 convert_and_save 工具,在模型读取之前把本地文件转换为干净的 Markdown,相比原始文档文本通常可减少 40% 到 80% 的 token。它支持 Word、Excel、PowerPoint、原生文本 PDF、HTML、EPUB、JSON、SQL 和 WSDL 文件;完整模式还支持通过 OCR 处理扫描版 PDF 以及音频格式。转换结果会被缓存,工具会报告是否覆盖了之前的缓存版本以及任何警告。
- 适用场景
- 适合助手需要读取或推理本地文档且上下文预算有限的场景,例如总结报告、表格或演示文稿。也适合客户端被配置为先转换文件、而不是通过文件系统工具直接读取原始文件的流程。
- 运行要求
- 通过 stdio 在本地运行,使用 npx -y distill-mcp-server 启动,因此需要 Node.js。轻量模式还需要 Python 和 pip,通过环境变量 DISTILL_MCP_CONFIG 配置 python_path。完整模式需要 Docker 并在本地运行 Distill 服务,通过 DISTILL_MCP_CONFIG 配置 distill_url。未声明需要账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Distill Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
distill-mcp
[npm version] [license] [MCP Registry]
An MCP server that connects any MCP-compatible client to Distill, converting local documents to clean, token-efficient Markdown before the LLM reads them. Typical token reduction is 40–80% compared to raw document text, letting the model fit more content into its context window and reason over it faster.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any other MCP client that supports tool calling.
Two Modes
Lightweight needs only Python and pip. Full needs Docker with the Distill service running. See the setup guides for details.
Quick install
No global install required:
Then configure Claude Desktop — see Lightweight setup or Full setup for step-by-step instructions.
Configuration
Add the server to your claude_desktop_config.json.
Lightweight mode — macOS / Linux:
Lightweight mode — Windows:
Full mode — all platforms:
Full config key reference is in the setup guides: Lightweight | Full
CLAUDE.md snippet
Paste this into your project's CLAUDE.md so Claude knows how to use the
tool automatically. Copy the block below as-is:
The snippet is also available in docs/CLAUDE.md-snippet.md.
Supported formats
Privacy
All processing happens locally. In lightweight mode, documents are converted by the distill-core Python library on your machine — no data leaves your computer. In full mode, documents are sent to the Distill Docker service running locally on your machine — no data is sent to external services.
Built on
Distill — document-to-Markdown conversion engine.
License
MIT
来源:README.md,提交 da01804
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分