doc.page PDF Extraction
Extract PDFs to Markdown, RAG chunks and cited tables; publish tracked Doc Links with read stats.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 list_tables 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"pdf-extract": {
"url": "https://doc.page/api/mcp"
}
}
}遠端端點
https://doc.page/api/mcpstreamable-http它能做什麼
工具清單
工具(7)
🟢extract_pdf(url, outputs, mode, chunkTokens)
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).
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "http(s) URL of the PDF to extract."
},
"outputs": {
"type": "array",
"description": "Subset of outputs to include. Default: markdown and elements.",
"items": {
"type": "string",
"enum": [
"markdown",
"elements",
"chunks",
"images"
]
}
},
"mode": {
"type": "string",
"enum": [
"fast",
"hybrid"
],
"description": "fast = prose engine. hybrid = semantic engine with tables + bounding boxes when deployed; falls back to fast with a warning otherwise."
},
"chunkTokens": {
"type": "integer",
"description": "Target chunk size in tokens (when chunks are requested). Default 512."
}
},
"required": [
"url"
],
"additionalProperties": false
}🟢get_chunks(url, maxTokens)
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.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "http(s) URL of the PDF to chunk."
},
"maxTokens": {
"type": "integer",
"description": "Target chunk size in tokens. Default 512."
}
},
"required": [
"url"
],
"additionalProperties": false
}🟢list_tables(url)
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.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "http(s) URL of the PDF."
}
},
"required": [
"url"
],
"additionalProperties": false
}🟡create_doc_link(url, name, slug, expiresAt, notifyOnOpen)
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.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "http(s) URL of the PDF to publish (max 25 MB)."
},
"name": {
"type": "string",
"description": "Display name in the library. Defaults to the filename."
},
"slug": {
"type": "string",
"description": "Custom vanity slug (premium plans only). Lowercase letters, digits and hyphens."
},
"expiresAt": {
"type": "string",
"description": "ISO 8601 date-time after which the link stops working. Omit for no expiry."
},
"notifyOnOpen": {
"type": "boolean",
"description": "Email the account owner on the first open. Default true."
}
},
"required": [
"url"
],
"additionalProperties": false
}🟢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.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢get_doc_link_stats(id, slug, include)
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.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Doc Link item id (from create_doc_link or list_doc_links)."
},
"slug": {
"type": "string",
"description": "Doc Link slug — alternative to id."
},
"include": {
"type": "array",
"description": "Extra sections. \"visits\" adds the recent visit rows (enriched on premium plans).",
"items": {
"type": "string",
"enum": [
"visits"
]
}
}
},
"additionalProperties": false
}⚪revoke_doc_link(id, slug)
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.
輸入結構描述
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Doc Link item id."
},
"slug": {
"type": "string",
"description": "Doc Link slug — alternative to id."
}
},
"additionalProperties": false
}社群
證據