# velyan/pdf-card-mcp [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/velyan/pdf-card-mcp  
**GitHub Stars:** 2  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/velyan-pdf-card-mcp

## Description
Converts local PDFs into source-linked, card-based standalone HTML readers with notes, highlights, and static publishing.

## Tools
Capabilities this server exposes over MCP:

- **convert_pdf_to_card_html** — Convert a local PDF into a portable, source-linked HTML reader.

The generated reader is static HTML with embedded assets. It keeps source text intact,
includes source-page previews for verification, and crops detected tables, figures, and
display formulas as images. Optional MCP sampling is limited to validated style-token
choices or boundary-only card polish; raw CSS and source-text rewrites are rejected.
- **validate_reader_annotations** — Validate a notes/highlights sidecar against a generated reader HTML file.
- **publish_reader_bundle** — Publish a static reader bundle with selected notes and highlights.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "pdf-card-mcp": {
    "command": "uvx",
    "args": ["--from","pdf-card-mcp","pdf-card-mcp-server"]
  }
}
```

## Documentation

## What velyan/pdf-card-mcp does

velyan/pdf-card-mcp MCP server turns a local PDF into a portable HTML reader. The output keeps document content connected to its source pages and divides long material into smaller reading cards. It also writes a manifest containing card, page, warning, and source-anchor metadata.

The generated reader embeds its CSS, JavaScript, page images, and detected visual crops in one HTML file. Tables, figures, and display formulas can be represented as image crops so readers can compare them with the original page. The interface includes search, section navigation, previous and next controls, keyboard navigation, a font-size slider, and source-page previews.

Readers support a local annotation overlay. Users can highlight selected source text or attach typed notes to selected text, then export their notes and highlights as Markdown. The project also supports validating annotations and publishing a read-only static reader with selected public annotations.

## How it works

The MCP host supplies a local PDF path and optional processing settings. The converter extracts text, renders PDF pages, detects visual elements, derives reader styling from the source palette, and writes the HTML reader plus a manifest. Default processing is local and does not require a hosted service.

Text extraction can use `char_geometry` or `pdfplumber_words`, with `char_geometry` as the default. Table handling accepts `auto`, `pdfplumber`, or `gmft`; automatic selection uses `gmft` when it is installed. The `fixed`, `pdf`, and `sampling` style engines control how reader styling is produced, while postprocessing can remain disabled or use sampling.

Optional MCP sampling is restricted to validated style tokens or suggestions for card-boundary polish. Raw CSS and source-text rewrites are rejected. OCR is available as a fallback when `pytesseract` is installed, which makes it relevant for scanned PDFs but not a guaranteed default path.

## Setup and configuration

velyan/pdf-card-mcp can be installed from PyPI with `pip`, run through `uvx`, installed from the repository, or packaged as a Claude Desktop MCPB extension. The documented Python range is 3.11 through 3.13. The recommended `uv` setup manages the Python runtime for the command-line and MCP server paths.

A generic stdio configuration runs `pdf-card-mcp-server` through `uvx`. A local checkout can instead be started with `python -m pdf_card_mcp.server`. Claude Desktop users can install the MCPB file from the latest GitHub release. After installation, reload or restart the MCP client.

The main conversion inputs are `pdf_path`, optional `output_path`, and an optional `title`. Other settings include `standalone`, `ocr`, `max_pages`, `theme`, `style_engine`, `table_engine`, `text_engine`, `postprocess_engine`, `model_cache_dir`, and `offline`. Standalone output defaults to enabled; asset-folder output is reserved for a later release. `offline` restricts processing to already-cached optional machine-learning models.

## Tools and capabilities

- Convert local PDFs into standalone HTML readers.
- Limit processing to a selected number of pages.
- Apply PDF-derived, fixed, or sampling-based reader styling.
- Select text, table, and postprocessing engines.
- Use optional OCR and local machine-learning table detection.
- Generate source-page previews and crops for tables, figures, and formulas.
- Validate notes and highlights, export annotations as Markdown, and publish selected annotations as read-only static output.

## Limitations and notes

velyan/pdf-card-mcp is an early open-source implementation. Its current strengths are text-layer PDFs, best-effort table detection through `pdfplumber`, and permissive raster rendering through `pypdfium2`. Scanned documents require optional OCR support.

The optional richer table detector requires the `table-ml` extra. If the server runs inside Docker, the PDFs and output directories must be mounted into the container because processing still uses local file paths. The standalone reader is the primary output; asset-folder output is not yet available through the documented standalone option.

_Full upstream README: https://allmcps.com/mcp/velyan-pdf-card-mcp/readme_

