Skip to main content

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

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.3.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.3-py3-none-any.whl (57.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thinkpdf-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 7f9d9f423ec2adb09db4710467999f5ac3923843c96d400854debba0c7de6973
MD5 4a760f290dc434a466ea9a05f393b45f
BLAKE2b-256 c91a4c9291d17327f2db93e19a0fee15e176111af55949d3bed7dbd4ed394b79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thinkpdf-1.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea95e7458b1891d77cb5dd55f919bf959431540c57f2c1b35592b961160d3f0e
MD5 9af3a92833710caa40e68447d15d842c
BLAKE2b-256 a7a92425f9f6641ee99130449135e9a2bef6e1ffed7c0de1b07153aaee4bae58

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