遠端 MCP 伺服器,可將 PDF 轉為 Markdown、RAG 分段與附引用的表格,並發布可追蹤的分享連結及閱讀統計。
可以做什麼
將 PDF 擷取為乾淨的 Markdown 與結構化元素,可選僅正文的快速模式,或能重建表格與邊界框的混合模式,回傳標準的 ExtractedDocument 物件。把 PDF 切分為適合嵌入的語意分段,每段包含文字、預估 token 數、起始頁、章節標題與用於引用的來源元素 id。以結構化 JSON 列出 PDF 中的所有表格,附頁碼與邊界框以便驗證引用。將 PDF 發布為可追蹤的 Doc Link 並取得可分享連結,可選設定到期時間與開啟通知。列出帳號下的 Doc Link,並讀取每個連結的瀏覽次數、不重複訪客與最近造訪等統計。停用某個 Doc Link,使其公開網址停止提供內容。
適用情境
適合需要以 Markdown 閱讀或引用 PDF 內容、為 RAG 流程準備 PDF,或從報告中擷取表格並附上頁碼引用的情境。也適合把 PDF 當成可追蹤連結分享並查看開啟情況。
執行需求
使用 doc.page 上的遠端 streamable HTTP 端點,不需本機執行環境或安裝套件。免費匿名層不需憑證即可使用;選用的 Authorization 標頭攜帶 Bearer API 金鑰可提高配額,Doc Link 相關工具則必須提供。需要網路存取。
安裝前請注意
Authorization 標頭攜帶機密 API 金鑰,請妥善保管。Doc Link 工具會把 PDF 發布為與該帳號綁定的公開分享連結,停用後公開網址即停止提供內容。免費方案最多 3 個有效連結,自訂短網址僅限付費方案。上傳的 PDF 與連結統計由第三方服務處理。
Extract a PDF into clean Markdown and structured elements (headings, paragraphs). Returns the canonical ExtractedDocument object. mode "hybrid" runs a heavier semantic engine that also reconstructs tables and bounding boxes; the default "fast" engine is prose-only (low confidence.tables).
輸入參數url必填modeoutputschunkTokens
get_chunks
Split a PDF into semantic chunks ready for embeddings (RAG). Each chunk carries its text, estimated tokens, starting page, section heading and the source element ids for citation.
輸入參數url必填maxTokens
list_tables
Return every table in a PDF as structured JSON (reconstructed rows and columns) with page and bounding box for verifiable citations. Uses the semantic (hybrid) engine.
輸入參數url必填
create_doc_link
Publish a PDF as a tracked doc.page Doc Link and get back a shareable URL. The link belongs to the API key's account and also appears in its doc.page library. Requires an API key. Free plan: up to 3 active links; custom vanity slugs are premium-only. Optional expiry and open-notification toggle.
輸入參數url必填nameslugexpiresAtnotifyOnOpen
list_doc_links
List the Doc Links of the API key's account (id, slug, URL, name, disabled/expiry state, total views, last view). Use this to recover links created in earlier sessions before querying stats. Requires an API key.
無需輸入參數。
get_doc_link_stats
Reading analytics for one Doc Link of the API key's account, by id or slug. Always returns the summary (total views, unique visitors, last visit). Premium plans additionally get countries, visitor companies (as_org) and per-page views + average dwell time; pass include:["visits"] for the recent visit rows. Requires an API key.
輸入參數idsluginclude
revoke_doc_link
Disable a Doc Link of the API key's account (by id or slug) so the public URL stops serving. The item and its stats remain in the library; on the free plan this frees an active-link slot. Requires an API key.