Skip to content
MCP server

PDF Text Extractor MCP

Local MCP server that pulls page-by-page text from PDFs, with OCR for scans

Runs locally

PDF Text Extractor MCP is a free MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI, macOS, Windows
Runs
Locally
Version
0.1.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.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.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add pdf-text-extractor-mcp -- npx -y pdf-text-extractor-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "pdf-text-extractor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "pdf-text-extractor-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About PDF Text Extractor MCP

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.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Free

No API key or account needed; run with npx

PDF Text Extractor MCP 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.

How AIPoweredBot checks servers