pdf-server.md

PDF Viewer MCP App

MCP App · UI in chatFeatured
from"modelcontextprotocol"
3.0k

PDF Server is an official example in modelcontextprotocol/ext-apps. It demonstrates serving a document through an MCP App with chunked loading so compatible hosts can display a large PDF without placing the entire file in one tool result.

Not for: OCR, document editing or trustworthy summarization by itself. It is a viewer example; extraction and interpretation need separate tools and validation.

Source and setup verified on 2026-11-03

Media
PDFviewerdocumentschunked

Quick facts

Provider
Model Context Protocol project (official example)
UI
Embedded PDF viewer
Loading
Chunked for large documents
Repository stars
3,042 on 2026-11-03

What you can do

  • Open a PDF inline
  • Load large documents in chunks
  • Navigate document pages in a compatible host

Requirements

  • Node.js and npm
  • An MCP Apps-compatible host
  • A PDF accessible to the example server
setup.md
# 1. Use the official example

Clone ext-apps, install dependencies and run examples/pdf-server with the command in its README.

# Official example
https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/pdf-server

Use the checked-in example and its sample-document instructions.

Always confirm the latest setup instructions with the maintainer before installing.

>Questions

Is PDF Viewer MCP App an MCP App with inline UI?

Yes. The maintainer's source declares an MCP UI resource and links it to a tool result. It renders inline only in hosts that support MCP Apps.

Where were these details checked?

Against the maintainer's README, source, or official documentation at https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/pdf-server, plus the GitHub API where a repository is available.