mcpField
D
distill-mcp

distill-mcp

ローカル
github.com/lakshgk生産性029 週間前に更新

distill-mcp について

distill-mcpは、ローカルの文書をLLM向けの簡潔なMarkdownに変換するMCPサーバーです。軽量モードとDockerモードでは、対応形式と変換機能が異なります。

主な機能

  1. 01文書からMarkdownへの変換
  2. 02軽量モードとDockerモード
  3. 03フルモードでスキャンPDFのOCR
  4. 04フルモードで音声変換
  5. 05文書のローカル処理

活用シーン

  1. 01オフィス文書をLLM分析用に変換
  2. 02フルモードでスキャンPDFを変換
  3. 03フルモードで音声ファイルを変換

MCP 対応

`convert_and_save`ツールを通じて、MCPクライアントに文書変換機能を提供します。元ファイルを直接読む代わりに、返されたMarkdownを利用できます。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"lakshgk-distill": {
"command": "npx",
"args": [
"-y",
"distill-mcp-server"
]
}
}
}
起動コマンドnpx -y distill-mcp-server

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmdistill-mcp-server0.1.1

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

distill-mcp

npm version license MCP Registry

あらゆる MCP 対応クライアントを Distill に接続する MCP サーバーです。LLM が読む前にローカルのドキュメントをクリーンでトークン効率の高い Markdown に変換します。 通常、元のドキュメントテキストと比較してトークンを 40~80%削減できるため、モデルはコンテキストウィンドウにより多くの内容を収め、より速く推論できます。

Claude Desktop、Claude Code、Cursor、Windsurf、およびツール呼び出しに対応するその他すべての MCP クライアントで動作します。

2 つのモード

軽量フル(Docker)
Docker が必要いいえはい
DOCX、XLSX、PPTX、ネイティブ PDF、HTMLはいはい
スキャン PDF(OCR)いいえはい
音声(MP3、WAV など)いいえはい
品質スコアいいえはい
インストール時間約 2 分約 10 分

軽量モードでは Python と pip のみが必要です。フルモードでは Distill サービスを実行する Docker が必要です。詳しくはセットアップガイドをご覧ください。

クイックインストール

グローバルインストールは不要です。

npx -y distill-mcp-server

次に Claude Desktop を設定します。手順については、 軽量モードのセットアップまたは フルモードのセットアップをご覧ください。

設定

サーバーを claude_desktop_config.json に追加します。

軽量モード — macOS / Linux:

{
  "mcpServers": {
    "distill-mcp": {
      "command": "npx",
      "args": ["-y", "distill-mcp-server"],
      "env": {
        "DISTILL_MCP_CONFIG": "{\"mode\":\"lightweight\",\"python_path\":\"python3\"}"
      }
    }
  }
}

軽量モード — Windows:

{
  "mcpServers": {
    "distill-mcp": {
      "command": "npx",
      "args": ["-y", "distill-mcp-server"],
      "env": {
        "DISTILL_MCP_CONFIG": "{\"mode\":\"lightweight\",\"python_path\":\"py\"}"
      }
    }
  }
}

フルモード — すべてのプラットフォーム:

{
  "mcpServers": {
    "distill-mcp": {
      "command": "npx",
      "args": ["-y", "distill-mcp-server"],
      "env": {
        "DISTILL_MCP_CONFIG": "{\"mode\":\"full\",\"distill_url\":\"http://localhost:7860\"}"
      }
    }
  }
}

設定キーの全リファレンスは、セットアップガイドにあります。 軽量モード | フルモード

CLAUDE.md スニペット

Claude がツールの使い方を自動的に認識できるよう、プロジェクトの CLAUDE.md に貼り付けてください。以下のブロックをそのままコピーしてください。

## Document Conversion — distill-mcp

When the user references a local file path (e.g. a PDF, DOCX, PPTX, XLSX,
HTML, or audio file), ALWAYS call the `convert_and_save` tool before reading
or reasoning about the document. Do not read the original file directly via
filesystem tools — use only the Markdown returned by `convert_and_save` as
the document content.

### Rules

1. Call `convert_and_save` with the absolute file path before doing anything
   else with the document.
2. Use ONLY the Markdown output from `convert_and_save` as the document
   content. Never read the original file with filesystem tools.
3. If the response includes `"overwritten": true`, tell the user that a
   previous cached version was replaced before proceeding.
4. If the response includes any `warnings`, surface them to the user before
   proceeding with the document content.
5. If `convert_and_save` returns an unsupported format error, tell the user
   which formats are supported and suggest switching modes if applicable.

### Supported formats

| Category | Lightweight | Full (Docker) |
|---|---|---|
| Word | .docx, .doc, .odt | .docx, .doc, .odt |
| Excel | .xlsx, .xlsm, .csv | .xlsx, .xlsm, .csv |
| PowerPoint | .pptx, .ppt | .pptx, .ppt |
| PDF | .pdf (native text) | .pdf (native + scanned OCR) |
| HTML | .html, .htm | .html, .htm |
| Audio | — | .mp3, .wav, .m4a, .flac, .ogg |
| Other | — | .epub, .json, .sql, .wsdl, .wsd |

### Usage

Say "convert using distill" followed by the file path:
> Convert using distill C:\Users\me\Documents\report.pdf to markdown

このスニペットは docs/CLAUDE.md-snippet.mdにもあります。

対応フォーマット

カテゴリ拡張子軽量フル
Microsoft Word.docx、.doc、.odtはいはい
Microsoft Excel.xlsx、.xlsm、.csvはいはい
Microsoft PowerPoint.pptx、.pptはいはい
PDF(ネイティブテキスト).pdfはいはい
PDF(スキャン/OCR).pdfいいえはい
HTML.html、.htmはいはい
音声.mp3、.wav、.m4a、.flac、.oggいいえはい
EPUB.epubいいえはい
JSON.jsonいいえはい
SQL.sqlいいえはい
WSDL.wsdl、.wsdいいえはい

プライバシー

すべての処理はローカルで行われます。軽量モードでは、ドキュメントはお使いのマシン上で distill-core Python ライブラリによって変換されるため、データがコンピューターの外に出ることはありません。フルモードでは、ドキュメントはお使いのマシン上でローカルに実行されている Distill Docker サービスに送信されるため、外部サービスにデータが送信されることはありません。

使用技術

Distill — ドキュメントを Markdown に変換するエンジンです。

ライセンス

MIT

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。