Skip to main content

pdf-table-pull-lite

License: MIT Python 3.10+ MCP server

Free tool that pulls the tables out of a text PDF and saves each one as a CSV file. Need Excel output, scanned PDFs or tables joined across pages? The paid version does that: pdf-table-pull on Gumroad

Runs on your own computer, so your PDFs are never uploaded anywhere. MIT license. Python 3.10 or newer, on Windows, Mac and Linux.

Install

pip install pdf-table-pull-lite

Or use pipx, which keeps it in its own space:

pipx install pdf-table-pull-lite

Want the newest code from GitHub instead?

pip install git+https://github.com/tidybytetools/pdf-table-pull-lite

Use it

pdf-table-pull-lite statement.pdf                 # CSVs go in statement_tables/
pdf-table-pull-lite statement.pdf -o out/ -p 2-5  # only pages 2 to 5
pdf-table-pull-lite statement.pdf -s text         # tables with no border lines

Example run:

Found 2 table(s).
  page1_table1: 2 rows x 3 columns
  page1_table2: 2 rows x 2 columns
Saved: statement_tables/page1_table1.csv
Saved: statement_tables/page1_table2.csv

You get one CSV per table, named after its page. The CSVs open straight in Excel (they're saved as UTF-8 with a BOM so accents show correctly).

--strategy (-s): lines is for tables with ruled borders, text is for tables lined up by spacing, and auto (the default) tries lines first, then text.

When you run it in a terminal it ends with one short line about the paid version. --quiet turns it off, and it never shows when output is piped or redirected.

Known limits

  • Scanned PDFs. Pages that are just an image (no text layer) are skipped, and the tool tells you which ones.
  • Tables that continue onto the next page come out as separate CSVs, one per page.
  • Odd layouts. Tables with merged cells or no clear columns can come out with cells in the wrong spot. Check the CSV.
  • CSV only. No Excel or JSON output, no number cleanup (so (40) stays as text), and no password-protected PDFs.

Lite vs paid

lite (free) pdf-table-pull
Text PDFs, ruled or spaced tables yes yes
CSV output yes yes
Excel (one sheet per table) and JSON output no yes
Scanned PDFs (OCR) no yes
Join tables across pages no yes
Numbers cleaned (1,200 → 1200, (40) → -40) no yes
Password-protected PDFs no yes

How it compares to other free tools

All of these are free and open source. Pick what fits you.

pdf-table-pull-lite pdfplumber Camelot tabula-py
What it is Command line tool Python library Python library + CLI Python wrapper for Tabula
Needs Java no no no yes
One command to get CSVs yes no, you write code yes yes
Picks border or spacing mode for you yes (auto) no no yes (guess)
Tells you which pages are scans yes no no no
Built-in MCP server for AI apps yes no no no
Lots of tuning knobs no yes yes some

This tool is built on pdfplumber. If you want full control in your own code, use pdfplumber or Camelot directly.

Use it from Claude Desktop or Cursor (MCP)

There is a small free MCP server built in. It gives your AI app one tool, extract_pdf_tables. It needs uv.

Run it by hand to check it starts (it waits quietly for an app to talk to it):

uvx --from pdf-table-pull-lite pdf-table-pull-lite-mcp

Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "pdf-table-pull-lite": {
      "command": "uvx",
      "args": ["--from", "pdf-table-pull-lite", "pdf-table-pull-lite-mcp"]
    }
  }
}

Tool: extract_pdf_tables(path, pages="", strategy="auto", output_dir=""). It returns a list with the CSV text of each table. If you set output_dir, it saves the CSVs there and returns the file paths instead.

For AI agents

  • Use when: you have a local PDF with real text (you can select the words) and need its tables as rows.
  • Don't use when: the PDF is a scan or photo, it has a password, or you need Excel. Those pages get skipped. Use the paid version for those.
  • Input: a file path, plus optional pages like 1,3-5 and strategy (auto, lines, text).
  • Output: a list of CSV strings, one per table, first row is the header. Empty list means no tables were found.
  • CLI exit code is 0 on success and 1 on error (message on stderr). See also llms.txt.

Tests

pip install pdfplumber "mcp<2"
python3 -m unittest discover tests

License

MIT. See LICENSE.

Metadata

Release files for pdf-table-pull-lite 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdf-table-pull-lite 1.1.0
File Size Uploaded Provenance Actions
pdf_table_pull_lite-1.1.0.tar.gz 27.5 kB With provenance Details for pdf_table_pull_lite-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdf-table-pull-lite 1.1.0
File Interpreter ABI Platform Actions
pdf_table_pull_lite-1.1.0-py3-none-any.whl Python 3 none any Details for pdf_table_pull_lite-1.1.0-py3-none-any.whl

Total release size: 35.5 kB

Release files / pdf_table_pull_lite-1.1.0.tar.gz

Download URL pdf_table_pull_lite-1.1.0.tar.gz
Size 27.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a1df7858b8e725eca66460183b35f8f11c8a893e65dffa1b57e6c50bd8ca7c92
BLAKE2b-256 checksum
How to use checksums
d4e54c6cd12444b90fa5eeb68a1d59c22d9cba9012830e5e59e2e2f2e7703fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / pdf_table_pull_lite-1.1.0-py3-none-any.whl

Download URL pdf_table_pull_lite-1.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f3c35e430efdb5e628a34d5000ca6a865ce71eb132afbe60820019eefd2fac9
BLAKE2b-256 checksum
How to use checksums
dcff5b1e24b4548644d0b3083eae251ae7b30acc761bb8580f719c56fdf7cd54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for pdf-table-pull-lite 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pdf_table_pull_lite-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page