
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A FastMCP server that exposes PDF manipulation tools—merge, split, extract, encrypt, optimize, repair, and analyze PDFs—to Claude via the Model Context Protocol.
PDF MCP Server is cataloged as an MCP server attributed to sohaib-2. A FastMCP server that exposes PDF manipulation tools—merge, split, extract, encrypt, optimize, repair, and analyze PDFs—to Claude via the Model Context Protocol. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PDF MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
README.md · fd2165d149bd · 采集于 2026-11-13 11:40:56 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Transform PDF manipulation with AI-powered natural language commands through Claude integration
Comprehensive PDF toolkit that integrates seamlessly with Claude AI via MCP (Model Context Protocol). Perform complex PDF operations using simple conversational commands - merge, split, encrypt, optimize, and analyze PDFs effortlessly.

git clone https://github.com/Sohaib-2/pdf-mcp-server.git
cd pdf-mcp-server
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate
pip install -r requirements.txt
pip install fastmcp requests pathlib
PDFtk:
# Ubuntu/Debian
sudo apt-get install pdftk
# macOS
brew install pdftk-java
# Windows: Download from https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
QPDF:
# Ubuntu/Debian
sudo apt-get install qpdf
# macOS
brew install qpdf
# Windows: Download from https://qpdf.sourceforge.io/
Locate Claude config file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonAdd PDF MCP Server:
With Virtual Environment:
{
"mcpServers": {
"pdf-tools": {
"command": "C:\\path\\to\\pdf-mcp-server\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\pdf-mcp-server\\server.py"]
}
}
}
Without Virtual Environment:
{
"mcpServers": {
"pdf-tools": {
"command": "python",
"args": ["C:\\path\\to\\pdf-mcp-server\\server.py"]
}
}
}
macOS/Linux with venv:
{
"mcpServers": {
"pdf-tools": {
"command": "/path/to/pdf-mcp-server/.venv/bin/python",
"args": ["/path/to/pdf-mcp-server/server.py"]
}
}
}
Restart Claude Desktop
Start using natural language:
| Tool | Description | Example |
|---|---|---|
merge_pdfs | Combine multiple PDFs | merge_pdfs(['doc1.pdf', 'doc2.pdf'], 'combined.pdf') |
split_pdf | Split into individual pages | split_pdf('document.pdf', './pages/') |
extract_pages | Extract specific page ranges | extract_pages('book.pdf', '1-5,10,15-20', 'excerpt.pdf') |
rotate_pages | Rotate pages by degrees | rotate_pages('scan.pdf', '90', 'rotated.pdf', '1-3') |
| Tool | Description | Example |
|---|---|---|
encrypt_pdf | AES-256 encryption | encrypt_pdf('file.pdf', 'secure.pdf', 'password123') |
encrypt_pdf_basic | Basic password protection | encrypt_pdf_basic('doc.pdf', 'protected.pdf', 'pass', 'admin') |
decrypt_pdf | Remove password protection | decrypt_pdf('locked.pdf', 'unlocked.pdf', 'password') |
| Tool | Description | Example |
|---|---|---|
optimize_pdf | Compress for web/email | optimize_pdf('large.pdf', 'small.pdf', 'high') |
repair_pdf | Fix corrupted PDFs | repair_pdf('broken.pdf', 'fixed.pdf') |
check_pdf_integrity | Validate PDF structure | check_pdf_integrity('suspicious.pdf') |
| Tool | Description | Example |
|---|---|---|
get_pdf_info | Detailed metadata (JSON) | get_pdf_info('document.pdf') |
update_pdf_metadata | Modify title/author/etc | update_pdf_metadata('file.pdf', 'updated.pdf', title='New Title') |
inspect_pdf_structure | Internal structure analysis | inspect_pdf_structure('complex.pdf', detailed=True) |
extract_pdf_attachments | Extract embedded files | extract_pdf_attachments('portfolio.pdf', './attachments/') |
| Tool | Description | Example |
|---|---|---|
download_pdf | Download from URL | download_pdf('https://example.com/file.pdf', 'local.pdf') |
open_pdf_preview | Open with system viewer | open_pdf_preview('report.pdf', browser=False) |
get_file_info | File size/path details | get_file_info('document.pdf') |
configure_pdf_workspace | Set working directory | configure_pdf_workspace('/path/to/workspace') |
count_pdfs_in_directory | List PDFs in folder | count_pdfs_in_directory('./pdf_folder/') |
| Tool | Description | Purpose |
|---|---|---|
get_server_status | Check tool availability | Verify PDFtk/QPDF installation |
list_default_directories | Show search paths | Debug file resolution issues |
get_pdf_tools_help | Complete documentation | In-app help reference |
Document Management:
Security Operations:
File Optimization:
Advanced Analysis:
Flexible path resolution:
C:\Documents\file.pdf../pdfs/document.pdfreport.pdf (searches default directories)Default search order:
PDF_WORKSPACE environment variable~/Documents/PDFs~/Downloads~/DesktopCustom workspace:
configure_pdf_workspace('/path/to/your/pdfs')
Check installation:
get_server_status() # Verify PDFtk and QPDF availability
Common issues:
| Problem | Solution |
|---|---|
PDFtk not found | Install PDFtk and add to PATH |
QPDF error | Install QPDF via package manager |
File not found | Use list_default_directories() to check search paths |
Permission denied | Run with appropriate file permissions |
Invalid PDF | Use check_pdf_integrity() to validate file |
Debug commands:
get_server_status() # Check tool installation
list_default_directories() # Verify search paths
get_pdf_info('file.pdf') # Validate PDF structure
pdf-mcp-server/
├── server.py # FastMCP server with 16 tools
├── pdftk_tools.py # PDFtk CLI wrapper
├── qpdf_tools.py # QPDF CLI wrapper
├── utils.py # File utilities & path resolution
└── requirements.txt # Python dependencies
Built with:
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureThis project is licensed under the MIT License
Sohaib-2 - GitHub
⭐ Star this repo if it helped you! | 🐛 Report issues | 💡 Request features
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PDF MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/pdf-mcp-server-sohaib-2)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.