# PDF Reader (PDF Agent Stack)

> PDF Reader (PDF Agent Stack) is an open-source MCP server for files and documents. Reads what is inside a PDF: text, structure tree, fonts, signature fields and tags. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Website:** https://shuji-bonji.github.io/pdf-agent-stack/
- **Repository:** https://github.com/shuji-bonji/pdf-reader-mcp
- **MCP Registry name:** io.github.shuji-bonji/pdf-reader-mcp
- **Categories:** files and documents, developer tools
- **Listing updated:** 2026-11-14

## About

Most PDF servers stop at text extraction. This one inspects the file itself and reports, for each answer, what it could not read. The README says it returns what is in a PDF and never decides whether it conforms; that job belongs to pdf-verify-mcp, and spec lookups belong to pdf-spec-mcp, the other servers in the same family.

Tools run in tiers: page count, metadata, text with Y-coordinate reading order, search with context, embedded images as PNG or JPEG, remote PDF text, page rendering via PDFium-WASM, and a summary, followed by structure inspection of the object tree, catalogue, XMP declarations and signature structure. read_text reports text extractability per page, so an empty result is not mistaken for an empty page, and can resolve /ActualText replacements.

It runs on stdio from npm and is MIT-licensed. The site says the server has 20 tools, while the README says 18. The site describes the wider stack as four servers and three skills for reading, verifying and writing PDFs.

## Features

- **Text with extractability:** Reports per page whether text can be extracted.
- **Structure inspection:** Examines the object tree, catalogue, bookmarks, layers and attachments.
- **Image and page output:** Returns embedded images or rendered pages as PNG or JPEG.
- **Signature structure:** Inspects signature fields without verifying cryptography.
- **Declared gaps:** Names what it could not read instead of omitting it.
- **Family of servers:** Pairs with spec and verification servers.

## Good for

- Check whether a scan has a text layer
- Read a tagged PDF in logical order
- List attachments and what runs on open
- Render a page for a vision model
- Inspect signature fields before verification

## Install

### Claude Code (Terminal)

```sh
claude mcp add pdf-reader-mcp -- npx -y @shuji-bonji/pdf-reader-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pdf-reader-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-reader-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pdf-reader-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-reader-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pdf-reader-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-reader-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pdf-reader-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-reader-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pdf-reader-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@shuji-bonji/pdf-reader-mcp"
      ]
    }
  }
}
```

## Tools

- `get_page_count`: Lightweight page count.
- `get_metadata`: Full metadata extraction.
- `read_text`: Text extraction in reading order with per-page extractability.
- `search_text`: Full-text search with context.
- `read_images`: Embedded images as PNG or JPEG.
- `read_url`: Fetch a remote PDF and extract its text.
- `render_page`: Rasterise pages to PNG or JPEG.
- `summarize`: Quick overview report.
- `inspect_structure`: Object tree and catalogue analysis.
- `inspect_catalog`: Catalogue inventory: bookmarks, layers, attachments, XMP and what runs on open.
- `inspect_signatures`: Inspect signature structure.
- `extract_structured_text`: Text in logical order for tagged PDFs.

## FAQ

### Does it verify signatures?

No; it inspects signature structure. Cryptographic verification belongs to pdf-verify-mcp.

### How do I run it?

Use npx -y @shuji-bonji/pdf-reader-mcp@latest in an mcpServers entry.

### Can it read a PDF from a URL?

read_url fetches a remote PDF and extracts its text only.

### How many tools?

The README says 18; the site says 20.

### Is PDF Reader (PDF Agent Stack) free?

Yes. PDF Reader (PDF Agent Stack) is open source, so you can use and self-host it for free.

### How do I add PDF Reader (PDF Agent Stack) to Claude Code?

Run this command in your terminal: claude mcp add pdf-reader-mcp -- npx -y @shuji-bonji/pdf-reader-mcp

### What are the best alternatives to PDF Reader (PDF Agent Stack)?

The closest alternatives to PDF Reader (PDF Agent Stack) are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/pdf-reader-pdf-agent-stack
