PDF reader extension for MCP that can work with large PDFs and password protected.
Project description
mcp-unlock-pdf
MCP server to give client the ability read protected (or un-unprotected) PDF Works with large PDFs by extracting text to temp file.
Forked from the excellent upstream project https://github.com/algonacci/mcp-unlock-pdf
Published to pypi.
Test
uv run python main.py --test
Usage from source
Running from cli (Goose, or to try it)
uv --directory /Users/micn/Documents/code/extractorb-py/mcp-unlock-pdf run python main.py
in Claude
For this MCP server to work, add the following configuration to your MCP config file for claude:
{
"mcpServers": {
"unlock_pdf": {
"command": "uv",
"args": [
"--directory",
"%USERPROFILE%/THIS_DIR",
"run",
"python",
"main.py"
]
}
}
}
Building and Publishing
- Update version in
pyproject.toml:
[project]
version = "x.y.z" # Update this
- Build the package:
# Clean previous builds
rm -rf dist/*
# Or build in a clean environment using uv
uv venv .venv
source .venv/bin/activate
uv pip install build
python -m build
- Publish to PyPI:
# Install twine if needed
uv pip install twine
# Upload to PyPI
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_read_pdf-0.1.0.tar.gz.
File metadata
- Download URL: mcp_read_pdf-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f925db936fbe85ea87e0787eac6ec265da664cf439cd374409c3dc643f0100f2
|
|
| MD5 |
051d9120131bd71b1c00125877ed57f8
|
|
| BLAKE2b-256 |
d6abe3c192c3560f294fda32ab3ab9b94d38339d1b23a8278e4d1d470c75fe10
|
File details
Details for the file mcp_read_pdf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_read_pdf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eb1f164c4d569f30708b1942f2ee2826ebe54520850e39d8788c13e3da244ee
|
|
| MD5 |
5f6e91947b55e2c432d6f8bc9250d7a6
|
|
| BLAKE2b-256 |
a4cbd5d1c3e327189f90458e7621236592b25670367d15a041abdb0f2a0e6563
|