# PDF Text Extractor MCP

> PDF Text Extractor MCP is a free MCP server for files and documents. Local MCP server that pulls page-by-page text from PDFs, with OCR for scans. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/prashant2204/pdf-text-extractor/tree/HEAD/mcp
- **MCP Registry name:** io.github.Prashant2204/pdf-text-extractor-mcp
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

Everything runs on your machine: the server reads a PDF from a file path, so nothing is uploaded and no API key is needed. It exposes exactly one tool, `extract_pdf_text`, and needs Node.js 22.19 or newer.

Text is read with PDF.js. A page that has little or no embedded text, or only a small amount of body text over an image, is sent through Tesseract OCR with bundled English and German models, so no model download or network access is needed at run time. Output is grouped into paragraphs per page in reading order, with wide gaps shown as ` | ` to keep simple tables legible.

The README is open about limits: table handling is a readability heuristic rather than real table extraction, multi-column, rotated or handwritten pages may come out in the wrong order, and OCR work on a single page times out after 60 seconds. The server can open any PDF its OS user can read, and the extracted text goes to whichever MCP client you connect.

## Features

- **Single extraction tool:** Exposes one tool, extract_pdf_text, that takes a local file path.
- **OCR fallback:** Scanned or image-heavy pages are recognised with bundled English and German Tesseract models.
- **Page-level paragraphs:** Returns paragraphs per page in document order, with warnings and a list of pages that had no text.
- **Runs offline:** No network, API key or PDF upload is needed once the package is installed.
- **Rough table spacing:** Large horizontal gaps are marked with a pipe character so columns stay readable.

## Good for

- Pull the text out of a contract PDF so an assistant can summarise it
- Read scanned English or German documents without a separate OCR step
- Feed page-by-page text into a review or search workflow
- Check which pages of a PDF have no extractable text

## Install

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

```sh
claude mcp add pdf-text-extractor-mcp -- npx -y pdf-text-extractor-mcp
```

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": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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 pdf-text-extractor-mcp -- npx -y pdf-text-extractor-mcp
```

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

```toml
[mcp_servers.pdf-text-extractor-mcp]
command = "npx"
args = ["-y", "pdf-text-extractor-mcp"]
```

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user pdf-text-extractor-mcp npx -- -y pdf-text-extractor-mcp

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

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": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
```

## Tools

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

- `extract_pdf_text`: Reads text from a local PDF page by page, using OCR for scanned pages.

## FAQ

### Does PDF Text Extractor MCP upload my PDFs anywhere?

No. The server reads files from local paths and needs no network connection for extraction, though the text it returns goes to your MCP client.

### Which languages does OCR cover?

English and German, with both models bundled in the package.

### What Node.js version is required?

Node.js 22.19 or newer, with npm and npx on the PATH.

### Can PDF Text Extractor MCP restrict which folders it reads?

No. The README says there is no directory sandbox, so it can read any PDF the OS user can access.

### Is PDF Text Extractor MCP free?

Yes. PDF Text Extractor MCP is free to use.

### How do I add PDF Text Extractor MCP to Claude Code?

Run this command in your terminal: claude mcp add pdf-text-extractor-mcp -- npx -y pdf-text-extractor-mcp

### What are the best alternatives to PDF Text Extractor MCP?

The closest alternatives to PDF Text Extractor MCP are Scholar Sidekick, UltraTransfer, Stashpad, loremfile and Hilvana.

## Where this comes from

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

## Alternatives

- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [UltraTransfer](https://ai-powered.com/mcp/ultratransfer): UltraTransfer is an open-source MCP server for files and documents.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [loremfile](https://ai-powered.com/mcp/loremfile): loremfile is a free MCP server for developer tools.
- [Hilvana](https://ai-powered.com/mcp/hilvana): Hilvana is an open-source MCP server for files and documents.
- [JSON CSV XML YAML TOML Data Format Converter](https://ai-powered.com/mcp/json-csv-xml-yaml-toml-data-format-converter): JSON CSV XML YAML TOML Data Format Converter is a paid MCP server for files and documents.
- [Jdrive](https://ai-powered.com/mcp/jdrive): Jdrive is a freemium MCP server for files and documents.
- [Extractivio](https://ai-powered.com/mcp/extractivio): Extractivio is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/pdf-text-extractor-mcp
