
PDF Craft
io.github.oomol-lab由 GitHub 帳號 oomol-lab 發布v1.0.0更新於 Nov 19, 2026
Convert scanned PDFs to Markdown or EPUB, and translate PDF and EPUB books via MCP.
發布方自己的服務:Craft
概覽
遠端 MCP 服務,可將掃描版 PDF 轉成 Markdown 或 EPUB,並翻譯 PDF 與 EPUB 書籍。
- 可以做什麼
- 將掃描版 PDF 轉成可編輯的 Markdown,並附帶文字與圖片素材
- 產生含書籍中繼資料與目錄、適合電子書閱讀器使用的 EPUB
- 翻譯 PDF 或 EPUB 內容,支援雙語 EPUB 以及把譯文寫回 PDF 頁面
- 擷取時辨識正文、章節、目錄、註腳、表格、公式與圖片
- 重複使用擷取結果,供後續算圖或翻譯使用
- 適用情境
- 適合把掃描版書籍、研究論文或技術文件變成可搜尋、可編輯的 Markdown 或方便閱讀的 EPUB,也適合把書籍翻譯成其他語言。較適合透過託管服務做單次轉換,而不是自行架設 OCR 流程。
- 執行需求
- 透過 streamable HTTP 存取的遠端端點,需以 OAuth 登入;託管轉換方式不需要本機執行環境、Python、CUDA 或 OCR 金鑰。檔案上傳到服務後,待處理完成再下載結果。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 PDF Craft,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.oomol-lab%2Fpdf-craft/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"pdf-craft": {
"type": "http",
"url": "https://api.pdfcraft.ai/v1/mcp"
}
}
}README
English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Русский | Français | Español | Deutsch | Italiano
PDF Craft is a Python library for scanned books, research papers, and technical documents. It converts scanned PDFs into editable Markdown or reader-friendly EPUB. It can also translate PDF and EPUB content into another language, create translated or bilingual EPUBs, and write translations back onto the original PDF pages. It recognizes body text, chapters, tables of contents, footnotes, tables, formulas, and images so the content can be searched, edited, and read beyond the scanned page.
Convert online — no installation needed
Have a scanned PDF you want to edit or read as an ebook? Use PDF Craft Online · pdfcraft.ai: upload your file in a browser, submit a conversion task, and download the result when it is ready. There is no Python to install, no CUDA to configure, and no OCR provider or API key to set up.
PDF Craft Online is the official online service for this open-source project. Use it to convert your files directly, or use the Python library below to build conversion into your own application or run OCR on your own machine.
Upload your PDF and convert it online →
[PDF Craft Online conversion interface — click to upload a PDF]
Conversion examples
Markdown: edit, search, and process the content.
EPUB: read the book in an ebook reader.
Results depend on scan quality, page layout, and the OCR model. Check a representative document before processing a larger collection.
Want to see how your own file turns out? Upload a PDF and convert it to Markdown or EPUB →
What you can do
Choose how to use it
Remote OCR sends pages to the configured service and does not require local CUDA. Local OCR runs on your machine; using a remote LLM for translation or table-of-contents analysis still sends the corresponding content to that service.
Python quick start
This example uses remote OCR to convert a PDF to Markdown. Prepare Python 3.11–3.13, Poppler, and a working DeepSeek OCR-compatible service configuration. See the installation guide for Poppler setup.
Just need to convert a file without setting up a development environment or OCR service? Use PDF Craft Online and upload your PDF in a browser.
1. Install
2. Convert a PDF
Place input.pdf in the directory where you run your script. Replace the URL, API key, and model name with your service configuration:
Async applications use the same options through AsyncPDFCraft; callbacks may
also be async def functions and run on the caller's event loop:
Do not call the synchronous PDFCraft facade from a running event loop; use
AsyncPDFCraft and await its corresponding method instead.
https://example.com/v1 is a placeholder, not a working endpoint. Use a compatible service that actually provides the OCR model. See OCR configuration for other models. If you do not have an OCR service yet, you can convert your files with PDF Craft Online.
Open output.md after conversion. Documents containing images also produce asset files; keep those files with the Markdown when moving or sharing it.
3. Create an EPUB
Reuse the configured craft instance above and replace the last line with:
Open output.epub in an EPUB reader. For title, author, and rendering options, see PDF conversion and translation. For installation or runtime problems, see troubleshooting.
For EPUB bibliographic metadata, opt in to front-page OCR metadata extraction and provide a separate metadata LLM. PDF Craft accepts only values it can verify against OCR evidence. PDF file properties fill missing fields; they never override information printed in the book.
Optional input assertions
Conversion does not automatically validate the whole input. If needed, call
assert_pdf_readable, assert_pdf_renderable, assert_pdf_editable, or
assert_epub_readable from pdf_craft before conversion. Choose the operation
you need: success returns None, failure raises the original exception, and the
input is never repaired or modified. Passing does not guarantee later OCR or
translation succeeds. See usage and capability limits.
Translation and reusable extraction
Translate books. Supply an XMLTranslator when converting PDF to Markdown or EPUB, or translate an existing EPUB directly. Translation uses a separate text LLM; OCR and translation have independent configurations. EPUB translation can replace the original text or append the translation for bilingual reading.
Create a translated PDF. Extract the content, translate it, and write the translation back onto the original pages. This workflow also needs Ghostscript and suitable local fonts. Check the resulting layout against the source and translated text.
Extract once, reuse later. Save a .pcex extraction file for subsequent rendering, translation, or processing on another machine. Reuse the configured craft instance:
Preview content as it is processed. PDF extraction, EPUB translation, and PCEX translation/rendering support optional callbacks. Receive source-mapped paragraphs, translated EPUB fragments, final PDF layout data, and finalized book metadata before the complete output file is ready. See incremental callbacks.
See PDF conversion and translation, EPUB translation, and the .pcex format reference.
OCR and runtime requirements
PDF Craft supports DeepSeek OCR, DeepSeek OCR 2, and Unlimited OCR, each with local and remote configurations.
The standard installation supports remote OCR. For local OCR, install the extra:
Local execution also requires a matching CUDA-enabled PyTorch build, sufficient VRAM, and model files. Models download from Hugging Face by default; you can also download them in advance and load them locally. Presets and requirements vary by model; see OCR configuration.
Language support depends on the processing stage. README languages describe documentation availability. Text recognition depends on the OCR model, and translation depends on the translator and text LLM. The EPUB label_language parameter selects fixed navigation/default-title labels (zh / en, with English as the default and fallback); it does not restrict content or translation languages; see the API reference.
Documentation
Feedback and contributions
Report problems or suggest improvements through Issues. For conversion problems, include the package version, OCR configuration type, error logs, and a minimal file you can share publicly. Remove credentials and private content first.
Pull requests improving code, documentation, and translations are welcome. Use the Chinese README as the content baseline for all languages. Write naturally for local readers, preserving the focus on online conversion and translation capabilities, and keep API examples accurate.
If PDF Craft helps you, a Star helps others discover it.
Related projects
Wiki Graph can turn converted EPUB or Markdown books into structured summaries, chapter topology, and knowledge graphs.
License and acknowledgments
PDF Craft uses the MIT license. Third-party dependencies and selected OCR models retain their own licenses.
Thanks to DeepSeek OCR, DeepSeek OCR 2, Unlimited OCR, doc-page-extractor, pyahocorasick and the open-source projects that make PDF Craft possible.
Contributors
Thanks to everyone who has contributed to PDF Craft. Contributions to code, documentation, and translations are welcome.
Star History
[PDF Craft star history]Translation progress reports source words (one Han character per word, long-word cap 20), with complete pre-scanned totals and per-round updates. See translation progress.
Extraction and translation share unit progress events, with upfront counts, integer stages, and source words.
來源:README.md,提交 e755c82
工具
0版本歷史
1- v1.0.0最新Nov 19, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Craft 整合
Craft
do.craft.mcp官方發布者
Craft 的託管 MCP 服務,由 mcp.craft.do 發布;需要憑證;Streamable HTTP。
CraftCI - Automated UX Craft & Billing-Safety CI Gate
由 GitHub 帳號 srigenmedia 發布
遠端 MCP 伺服器,對程式碼執行 CraftCI 的 20 條 UX、無障礙與計費安全稽核規則,並產生 CI 閘門設定。

AICraft Injection Process
由 GitHub 帳號 DreamwayChan 發布
託管型 MCP 伺服器,用於推薦射出成型的首件製程參數,並針對實際缺陷調整參數。

UI Craft
由 GitHub 帳號 educlopez 發布
UI 質量檢查:反低質設計、無障礙、設計權杖、評分與工作流路由。AI 翻譯

PersonCraft
由 GitHub 帳號 johan1727 發布
託管式 MCP 伺服器,讓 Claude 設計、撰寫並測試 Godot 4 遊戲,回傳真實截圖與可下載的專案 ZIP。