
truaxki/mcp-pdf2png
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
PDF の png ファイルを変換するための MCP ツール.
概要
PNG変換機能にPDFを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、PDF文書をPNG画像に変換し、簡単なMCPツール呼び出しが可能です。 このサーバーでは、モデルコンテキストプロトコル(MCP)が必要です。 MCP に新しい場合は、SDK をインストールして起動します。 追加の要件: - Python 3.10以上 - uvパッケージマネージャ - ポップアップ(pdf2imageの必須) - : ポップアップウィンドウからダウンロードしてインストール - : brew install poppler - : sudo apt-get install poppler-utils 2. 仮想環境の作成と活性化: claude desktop config.json にサーバー設定を追加します。 ファイルは通常、: - Windows: %APPDATA%\Claude Desktop\config\claude desktop config.json - macOS/Linux:~/.config/Claude デスクトップ/config/claude desktop config.json Note: /absolute/path/to/mcp-Pdf2pngをリポジトリをクローンした実際のパスに置き換えます.
概要(AI 翻訳)
PNG変換機能にPDFを提供するモデルコンテキストプロトコル(MCP)サーバー。 このサーバーでは、PDF文書をPNG画像に変換し、簡単なMCPツール呼び出しが可能です。
前提条件
このサーバーでは、モデルコンテキストプロトコル(MCP)が必要です。 MCP に新しい場合は、SDK をインストールして起動します。
追加要件:
- Python 3.10以上
- uvパッケージマネージャ
- ポップアップ(pdf2imageの必須)
ポップアップをインストール
-Windows: poppler-windowsからダウンロードしてインストールする
-macOS: [brew install poppler
-Linux:[sudo apt-get install poppler-utils
インストール
-
このリポジトリをクローンする:
-
仮想環境の作成と活性化:
-
パッケージを取付けて下さい:
使用法
##1. MCPクライアントの設定
[claude_desktop_config.json にサーバーの設定を追加します。 ファイルが通常あります:
- Windows: [
%APPDATA%\Claude Desktop\config\claude_desktop_config.json - macOS/Linux:
~/.config/Claude Desktop/config/claude_desktop_config.json
Note: リポジトリをクローンした実際のパスで[/absolute/path/to/mcp-Pdf2pngを置換します。
##2. サーバーを使用する
サーバは、これらのパラメータで単一のツールpdf2pngを提供します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
PDF to PNG MCP Server
A Model Context Protocol (MCP) server that provides PDF to PNG conversion capabilities. This server allows you to convert PDF documents into PNG images with a simple MCP tool call.
Prerequisites
This server requires the Model Context Protocol (MCP). If you’re new to MCP, start by installing the SDK:
uv pip install mcp
Additional requirements:
- Python 3.10 or higher
- uv package manager
- poppler (required for pdf2image)
Installing Poppler
- Windows: Download and install from poppler-windows
- macOS:
brew install poppler - Linux:
sudo apt-get install poppler-utils
Installation
-
Clone this repository:
git clone https://github.com/truaxki/mcp-Pdf2png.git cd mcp-Pdf2png -
Create and activate a virtual environment:
uv venv # Windows .venv\Scripts\activate # Unix/macOS source .venv/bin/activate -
Install the package:
uv pip install -e .
Usage
1. Configure MCP Client
Add the server configuration to your claude_desktop_config.json. The file is typically located in:
- Windows:
%APPDATA%\Claude Desktop\config\claude_desktop_config.json - macOS/Linux:
~/.config/Claude Desktop/config/claude_desktop_config.json
{
"mcpServers": {
"pdf2png": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-Pdf2png",
"run",
"pdf2png"
]
}
}
}
Note: Replace /absolute/path/to/mcp-Pdf2png with the actual path where you cloned the repository.
2. Using the Server
The server provides a single tool pdf2png with these parameters:
read_file_path: Absolute path to the input PDF filewrite_folder_path: Absolute path to the directory where PNG files should be saved
Output:
- Each PDF page is converted to a PNG image
- Files are named
page_1.png,page_2.png, etc. - Returns a success message with the conversion count
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"pdf2png": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-Pdf2png",
"run",
"pdf2png"
]
}
}
}