# Pdf Mcp

> PDF MCP server with image rendering capabilities. Useful for automatically searching datasheets, manuals, etc...

- **Type:** MCP server
- **Install:** `agentstack add mcp-i-can-hack-pdf-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [I-CAN-hack](https://agentstack.voostack.com/s/i-can-hack)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [I-CAN-hack](https://github.com/I-CAN-hack)
- **Source:** https://github.com/I-CAN-hack/pdf-mcp

## Install

```sh
agentstack add mcp-i-can-hack-pdf-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# pdf-mcp

An MCP server for reading, rendering, and searching PDF files. Built with [PyMuPDF](https://pymupdf.readthedocs.io/) and [PyMuPDF4LLM](https://pymupdf.readthedocs.io/en/latest/pymupdf4llm/).

Designed for use with LLMs that need to read datasheets and other PDFs containing diagrams, tables, and technical content.

## Tools

| Tool | Description |
|---|---|
| `get_pdf_info` | Get metadata about a PDF (page count, author, title, etc.) |
| `get_table_of_contents` | Get the outline/bookmarks with page numbers for each section |
| `get_page_text` | Extract text from a page range in `json` (default), `text`, `markdown`, or `html` format. Optionally exclude headers/footers |
| `get_page_image` | Render a single page as a PNG image, returned as base64 or written to a temp file. Configurable DPI (default 150) |
| `search_text` | Case-insensitive text search across the entire PDF, returning page numbers and surrounding context |

All requests are stateless and take the PDF filename as a parameter.

## Setup

Add the following to your `.mcp.json`:

```json
{
  "mcpServers": {
    "pdf-mcp": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/I-CAN-hack/pdf-mcp.git", "pdf-mcp"]
    }
  }
}
```

Or for codex run `codex mcp add pdf-mcp -- uvx --from git+https://github.com/I-CAN-hack/pdf-mcp.git pdf-mcp`.

This will automatically install and run the server using `uvx`.

## Development

```bash
# Install dependencies
uv sync

# Generate test PDFs
uv run python assets/generate.py

# Run tests
uv run pytest tests/ -v

# Run the server locally
uv run pdf-mcp
```

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [I-CAN-hack](https://github.com/I-CAN-hack)
- **Source:** [I-CAN-hack/pdf-mcp](https://github.com/I-CAN-hack/pdf-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-i-can-hack-pdf-mcp
- Seller: https://agentstack.voostack.com/s/i-can-hack
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
