
hanweg/mcp-pdf-tools
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
hanweg/mcp-pdf-tools は [https://github.com/hanweg/mcp-pdf-tools.] からインポートされた MCP サーバー候補です
概要
hanweg/mcp-pdf-tools は [https://github.com/hanweg/mcp-pdf-tools.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
MCP PDF ツール サーバー
PDF 操作ツールを提供する MCP (Model Context Protocol) サーバー。 このサーバーでは、LLM は、モデルコンテキストプロトコルを通じて PDF をマージし、ページを抽出するような動作を実行できます。
##特徴
- 複数のPDFファイルを単一のPDFに変換
- 複数のPDFファイルをユーザー指定の順序で単一のPDFにマージする
- PDFファイルから特定のページを抽出する
- PDF検索 ファイルシステム検索またはすべての検索は、このよりも優れています
- ターゲット入力からテキスト抽出と正規表現パターンマッチングに基づいて、関連するPDFを検索(およびマージ)
インストール
- このリポジトリをクローンする 2。
Claudeデスクトップでの使用
Claudeデスクトップ設定ファイル(claude desktop config.json)に追加します。
[PDF_TOOLS_ALLOWED_DIRSは、すべてのツールのファイルアクセスを制限するオプションのパスリスト(OSパスセパレータを使用する)です。 設定されていない場合、サーバーは現在の作業ディレクトリへのアクセスを制限します。
[merge-pdfs], [extract-pages], [[merge-pdfs-ordered]]]) は、既存の出力ファイルを[overwrite: trueが提供されない限り上書きすることを拒否します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
WORK IN PROGRESS - USE WITH CAUTION - Windows:
MCP PDF Tools Server
An MCP (Model Context Protocol) server that provides PDF manipulation tools. This server allows LLMs to perform operations like merging PDFs and extracting pages through the Model Context Protocol.
Features
- Merge multiple PDF files into a single PDF
- Merge multiple PDF files into a single PDF in user specified order
- Extract specific pages from a PDF file
- Search PDFs filesystem search or Everything search works better than this
- Find (and merge) related PDFs based on text extraction and regex pattern matching from a target input PDF
Installation
- Clone this repository
cd mcp-pdf-tools
# Create and activate virtual environment
uv venv
.venv\Scripts\activate
# Install the package
uv pip install -e .
Usage with Claude Desktop
Add this to your Claude Desktop configuration file (claude_desktop_config.json):
{
"mcpServers": {
"pdf-tools": {
"command": "uv",
"args": [
"--directory",
"PATH_TO\\mcp-pdf-tools",
"run",
"pdf-tools"
],
"env": {
"PDF_TOOLS_ALLOWED_DIRS": "PATH_TO\\shared\\pdfs"
}
}
}
}
PDF_TOOLS_ALLOWED_DIRS is an optional path list (use your OS path separator) that restricts file access for all tools. If not set, the server limits access to its current working directory.
Write tools (merge-pdfs, extract-pages, merge-pdfs-ordered) refuse to overwrite an existing output file unless overwrite: true is provided.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"pdf-tools": {
"command": "uv",
"args": [
"--directory",
"PATH_TO\\mcp-pdf-tools",
"run",
"pdf-tools"
],
"env": {
"PDF_TOOLS_ALLOWED_DIRS": "PATH_TO\\shared\\pdfs"
}
}
}
}