mineru-book-mcp

v0.3.0
mineru-book-mcp Checked 4 days ago Published 2 months ago

MCP server mineru-book-mcp

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_upload

Create an isolated upload. Then send <=256 KiB decoded base64 chunks.

ParameterTypeDescription
filename *string
sha256 *string
size *integer

upload_chunk

Append one chunk; exact offset makes interrupted uploads detectable.

ParameterTypeDescription
data_base64 *string
offset *integer
upload_id *string

upload_status

Check actual byte count before sealing a legacy upload. Never guess hashes.

ParameterTypeDescription
upload_id *string

finish_upload

Seal an upload only after size and SHA-256 agree.

ParameterTypeDescription
upload_id *string

job_status

Poll a submitted job. done includes artifact paths, sizes and hashes. Follow detail.delivery: illustrated documents require the complete ZIP, not a lone Markdown file. Never call delivery complete when status=incomplete.

ParameterTypeDescription
job_id *string

read_artifact

Download completed artifacts as base64 chunks; verify final SHA-256. Decode original tool bytes with host code, never rewrite Base64 in prose. Prefer detail.delivery.original_mineru_zip_url for direct binary download.

ParameterTypeDescription
job_id *string
path *string
lengthinteger
offsetinteger

read_markdown

Read ORIGINAL completed Markdown as UTF-8 text, without Base64 or rewriting. For text-only download save chunks verbatim. If delivery.preferred=zip, deliver the ZIP or original MinerU ZIP link instead: a lone MD loses images.

ParameterTypeDescription
job_id *string
path *string
lengthinteger
offsetinteger

read_workflow

Read bundled Skill instructions/references. These guide the host LLM.

ParameterTypeDescription
lengthinteger
offsetinteger
pathstring

import_chatgpt_file

REQUIRED for ChatGPT PDF/document attachments: pass the host file reference. Server downloads original bytes and computes SHA-256. Unicode names supported. Do NOT generate Base64, size or hashes in the model. Do not use create_upload/upload_chunk for ChatGPT attachments. Returns a sealed upload_id.

ParameterTypeDescription
file *

start_parse

MinerU first for PDF/Office/images. Optional local fallback; no LLM generation. Defaults to standard using MINERU_TOKEN from the server environment. api agent is token-free and must be explicitly selected; auto also uses MINERU_TOKEN. Native MD/TXT goes directly to book-to-skill. Poll job_status for results. Parsed documents include an offline ZIP with original Markdown, images and hashes. If detail.delivery.image_file_count is positive, deliver the ZIP, not a lone .md.

ParameterTypeDescription
upload_id *string
allow_cloudboolean
allow_local_fallbackboolean
apistring

package_skill

Validate and ZIP host-authored knowledge Skill Markdown. Does not generate text.

ParameterTypeDescription
files *object
slug *string