Skip to main content

PDF to Markdown engine for LLMs. Smart table extraction, OCR, MCP server.

Project description

thinkpdf

Extract text, tables, and structure from PDFs. Built for RAG pipelines, AI training, and LLM context.

Read directly into memory or save as Markdown. Supports OCR.

Install

pip install thinkpdf

For better table extraction (but sloooower):

pip install thinkpdf[docling]

Quick Start

thinkpdf document.pdf                # outputs document.md
thinkpdf document.pdf -o output.md   # custom output
thinkpdf folder/ --batch             # convert all PDFs
from thinkpdf import convert
convert("document.pdf")  # returns markdown

GUI

pip install thinkpdf[gui]
thinkpdf-gui

MCP Server

Add to your MCP config:

{
  "mcpServers": {
    "thinkpdf": {
      "command": "python",
      "args": ["-m", "thinkpdf.mcp_server"]
    }
  }
}
Tool Description
read_pdf Read PDF content into context
convert_pdf Convert and save to file
get_document_info Get PDF metadata

License

AGPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thinkpdf-1.0.4.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thinkpdf-1.0.4-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

Details for the file thinkpdf-1.0.4.tar.gz.

File metadata

  • Download URL: thinkpdf-1.0.4.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for thinkpdf-1.0.4.tar.gz
Algorithm Hash digest
SHA256 bf554c888105bdc36872c3890da7aa858eb4c536fbfb2c499970fc3a75bd9fcd
MD5 76a72a043d256a4e4ed65bf1cbfcb847
BLAKE2b-256 44bd658c62b8bbe2cae40194c9e602f7c887c574f9b8cfc452fdf27053ad725e

See more details on using hashes here.

File details

Details for the file thinkpdf-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: thinkpdf-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 57.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for thinkpdf-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d4c822fc5d4938d4ce62b256a5d34d3a1c0f29d407ca59c0e374aa6f899eb8a8
MD5 e6abcce8625903041ba0f1683a35a7d7
BLAKE2b-256 ca08676b08cb574f81dba5c567fab095148a9f9809e8c6f242be6bc06f428182

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page