Pdf Memo Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Pdf Memo Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that lets Claude (or any MCP client) work with your PDFs safely. It can list PDFs, extract highlights with their exact text, return raw notes/annotations, read specific pages, and show metadata—all strictly limited to the directories you allow.
Highlight, Text by default; ignore noisy Link/Popup unless requested).first, last, N, S-E, or omit for all.--allow-dir.pip install -r requirements.txtPyPDF2>=3.0.0,<4
pdfplumber>=0.11.0,<0.12
mcp>=0.4.0# 1) Clone this repo
# Windows PowerShell / macOS / Linux
cd <your-workspace>
git clone <this-repo-url> pdf-memo-mcp
cd pdf-memo-mcp
# 2) (Optional) Create a virtualenv
python -m venv .venv
# Windows
. .venv\Scripts\Activate.ps1
# macOS/Linux
source .venv/bin/activate
# 3) Install dependencies
pip install -r requirements.txtYou can pass allowed directories either as positional args or with `--allow-dir` (repeatable). If you pass none, the server falls back to defaults: ~/Downloads, ~/Desktop, ~/Documents, and the current working directory.
# Example: two directories (mixed platforms shown for clarity)
python main.py ~/Downloads C:\\Temp
# Same via explicit flags (repeatable)
python main.py --allow-dir ~/Downloads --allow-dir C:\\Temp
# Optional tuning
python main.py ~/Downloads --max-file-size 52428800 --log-level DEBUGTip (Windows): If you run into import issues while developing, ensure your repo root is onPYTHONPATH, e.g.set PYTHONPATH=C:\\mcp-servers\\pdf-memo-mcp.
Create or update your claude_desktop_config.json to register this MCP server. Below is a minimal example.
{
"mcpServers": {
"pdf-memo": {
"command": "C:/Users/yong/AppData/Local/Programs/Python/Python311/python.exe",
"args": [
"C:/mcp-servers/pdf-memo-mcp/main.py",
"~/Downloads",
"C:/Temp"
],
"env": {
"PYTHONPATH": "C:/mcp-servers/pdf-memo-mcp"
}
}
}
}macOS/Linux variant:
{
"mcpServers": {
"pdf-memo": {
"command": "/usr/bin/python3",
"args": [
"/Users/you/mcp-servers/pdf-memo-mcp/main.py",
"~/Downloads",
"/Users/you/PDFs"
],
"env": {
"PYTHONPATH": "/Users/you/mcp-servers/pdf-memo-mcp"
}
}
}
}Notes
>
The server communicates over STDIO; Claude Desktop will handle transport automatically. You can add/remove directories later by editing args and restarting Claude Desktop.extract_annotations(file_path, page_range=None, include_types="Highlight,Text", drop_empty=True)Return raw annotations as JSON. Use include_types to include Link, Popup if you really need them.
extract_highlights_with_context(file_path, page_range=None, drop_empty=True)Return a JSON array of highlight contexts: {page, author, highlighted_text, note, position}.
read_pdf_text(file_path, page_range=None)Return JSON with extracted_pages (page text & char counts) and basic metadata.
list_pdf_files(directory="all")Human‑readable list of PDFs under allowed directories. directory filters by basename substring.
show_accessible_directories()JSON with accessible_directories, directory_count, max_file_size_mb, allowed_extensions.
"first" → first page"last" → last page"3" → page 3"10-20" → pages 10 through 20 (inclusive)Ask natural-language prompts like:
list_pdf_filesextract_annotations with page_range: "162"extract_highlights_with_context with page_range: "162"read_pdf_text with page_range: "first"Ensure your repo root is on PYTHONPATH (see examples above) or run main.py from the repo root. This repo also injects sys.path in main.py for convenience.
extract_highlights_with_context only returns Highlight annotations. If your file only has links/popups, use extract_annotations and adjust include_types.
The mapper prefers QuadPoints when present and falls back to Rect. It first tries within_bbox().extract_text() and then a (y,x) word grouping heuristic. Some PDFs with complex layouts may still need tuning.
MIT License
Copyright (c) 2025 Yong Choi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.