# pdfsift

> pdfsift is an open-source MCP server for files and documents. Offline PDF to Markdown or JSON converter for LLM agents and developers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Self-hosted
- **Repository:** https://github.com/vitorsilverio/pdfsift
- **MCP Registry name:** io.github.vitorsilverio/pdfsift
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [document processing](https://ai-powered.com/categories/document-processing)
- **Listing updated:** 2026-12-03

## About

pdfsift turns PDF files into clean Markdown that keeps headings, lists, tables and reading order intact. It strips running headers, footers and line-end hyphenation so the text reads as one continuous document rather than a jumble of columns and page furniture.

The conversion relies on rule-based heuristics applied to what the PDF already contains, with no AI model, OCR or network access involved. Pages can be selected or summarised with an info and table-of-contents command first, so a large document can be read in slices that fit a context window. Images are exported as files, and output is deterministic across Linux, macOS and Windows.

It ships as a command-line tool and as a Model Context Protocol server exposing info, table-of-contents and conversion tools over stdio. It is aimed at developers building retrieval pipelines and agents that need structured text from PDFs.

## Features

- **Reading order recovery:** Multi-column pages are read column by column and paragraphs continuing across pages are rejoined.
- **Structured Markdown output:** Headings, nested lists, emphasis, links, footnotes and block quotes are emitted as Markdown syntax.
- **Table extraction:** Tables with a certain grid become GFM pipe tables, with a laid-out fallback when the grid is uncertain.
- **Page selection and outline:** An info command reports page counts and size, and a toc command lists sections with page ranges.
- **MCP server mode:** A stdio MCP server exposes pdf_info, pdf_toc and pdf_to_markdown tools to AI clients.
- **Offline and deterministic:** No network access and no OCR; the same PDF always produces the same output.

## Good for

- Feeding long PDF reports into an LLM agent in page-sized slices
- Converting research papers into Markdown for retrieval indexing
- Letting a coding assistant read PDF specifications through MCP
- Extracting tables from financial or government PDFs into structured text
- Batch converting document archives in a script without sending files to a third party

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add pdfsift -- npx -y @vitorsilverio/pdfsift
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pdfsift -- npx -y @vitorsilverio/pdfsift
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pdfsift]
command = "npx"
args = ["-y", "@vitorsilverio/pdfsift"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user pdfsift npx -- -y @vitorsilverio/pdfsift

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "pdfsift": {
      "command": "npx",
      "args": [
        "-y",
        "@vitorsilverio/pdfsift"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `pdf_info`: Reports pages, scanned pages, size in tokens and suggested next steps for a PDF.
- `pdf_toc`: Lists PDF sections with their page ranges.
- `pdf_to_markdown`: Converts a PDF, or selected pages, to Markdown with optional image and password arguments.

## FAQ

### Does pdfsift send my PDFs anywhere?

No. It has no network access and writes only to standard output or the path given with -o.

### Does pdfsift handle scanned PDFs?

It does not run OCR. Scanned pages are saved as images and reported on stderr so you can run OCR separately.

### How do I install pdfsift?

It is available through npm, PyPI, Homebrew, shell and PowerShell installers, GitHub release archives and Cargo, with a PDFium library needed for the Cargo route.

### Which platforms are supported?

Prebuilt binaries cover Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64, arm64). No musl or Alpine build is currently provided.

### Is pdfsift free?

Yes. pdfsift is open source, so you can use and self-host it for free.

### How do I add pdfsift to Claude Code?

Run this command in your terminal: claude mcp add pdfsift -- npx -y @vitorsilverio/pdfsift

### What are the best alternatives to pdfsift?

The closest alternatives to pdfsift are PDF to Text for LLMs, PDF Table & Document to JSON + Markdown MCP, distill, pdffr and lintlab PDF To Markdown.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [PDF to Text for LLMs](https://ai-powered.com/mcp/pdf-to-text-for-llms): PDF to Text for LLMs is a paid MCP server for files and documents.
- [PDF Table & Document to JSON + Markdown MCP](https://ai-powered.com/mcp/pdf-table-and-document-to-json-markdown-mcp): PDF Table & Document to JSON + Markdown MCP is a freemium MCP server for files and documents.
- [distill](https://ai-powered.com/mcp/distill-2): distill is an open-source MCP server for files and documents.
- [pdffr](https://ai-powered.com/mcp/pdffr): pdffr is an open-source MCP server for files and documents.
- [lintlab PDF To Markdown](https://ai-powered.com/mcp/lintlab-pdf-to-markdown): lintlab PDF To Markdown is a paid MCP server for files and documents.
- [PDF to Markdown & Text with OCR by Signalloom (via Apify MCP)](https://ai-powered.com/mcp/pdf-to-markdown-and-text-with-ocr-by-signalloom-via-apify-mc): PDF to Markdown & Text with OCR by Signalloom (via Apify MCP) is a paid MCP server for files and documents.
- [PDF to MD](https://ai-powered.com/mcp/pdf-to-md): PDF to MD is a freemium MCP server for files and documents.
- [any2llm](https://ai-powered.com/mcp/any2llm): any2llm is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/pdfsift
