go-docs-mcp

v1.5.0
io.github.drolosoft/go-docs-mcp Checked 22 hours ago Published 23 days ago

Lets your AI read PDF, Office files, EPUB, HTML, Jupyter and images, with OCR, search and paging.

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

convert_to_markdown

Convert a document to clean Markdown format. Use this when you need structured, readable output from any document; for PDFs headings are detected and formatted, for TXT/CSV content is wrapped in code blocks, and MD files are returned as-is. Long output comes in pages of max_chars characters, like read_document. Read-only.

ParameterTypeDescription
filename *stringThe document filename to convert
max_charsintegerMaximum characters to return (default 50000, at most 200000).
offsetintegerCharacter offset to start reading from (default 0). A truncated result ends with the offset of the next page.

extract_images

Extract the embedded images of a PDF as PNG image content, scaled to at most 1600 px on the longer side, 10 per call by default and 8 MB in total. Soft masks are not returned as images. Use this when you need to see figures, charts, or photos embedded in a PDF document. Read-only.

ParameterTypeDescription
filename *stringThe document filename to extract images from
max_imagesintegerMaximum images to return (default 10, at most 50). The description counts every image found.
pagenumberOptional page number to extract images from. If omitted, extracts from all pages.

extract_tables

Extract table-like structures from a document, detecting pipe-delimited, tab-delimited, and multi-space-delimited columns. Use this when you need structured tabular data from a PDF, CSV, or text file. Read-only.

ParameterTypeDescription
filename *stringThe document filename to extract tables from
pagenumberOptional page number for PDFs (1-based). If omitted, extracts from all pages.

get_document_metadata

Get document metadata including title, author, dates, page count, and file size. Use this when you need document properties without reading its content; returns full PDF-specific fields (subject, creator, producer, version) for PDF files. Read-only.

ParameterTypeDescription
filename *stringThe document filename to get metadata for

get_document_outline

Extract the heading structure and table of contents from a document. Use this to understand document organization before reading specific sections; detects numbered sections, ALL-CAPS headings, and markdown # headings. Read-only.

ParameterTypeDescription
filename *stringThe document filename to extract outline from

get_document_summary

Get a quick summary by extracting the first 3 pages or ~100 lines of a document. Use this to preview document content before deciding to read it in full. Read-only.

ParameterTypeDescription
filename *stringThe document filename to summarize

list_documents

List all documents in the configured directory with format detection and metadata (filename, pages, size). Use this to discover available documents before reading or searching. Read-only.

list_formats

Show all supported document formats and their dependency installation status. Use this to check which formats are available and diagnose missing dependencies. Read-only.

ocr_document

Force OCR text extraction on a PDF, bypassing normal text extraction. Use this when read_document returns garbled or empty text from a scanned PDF; requires tesseract and pdftoppm. Read-only.

ParameterTypeDescription
filename *stringThe PDF filename to OCR
languagestringTesseract language code (default: DOCS_MCP_OCR_LANG, or "eng"). Use "spa" for Spanish, "fra" for French, etc. Run 'tesseract --list-langs' to see available languages.
max_charsintegerMaximum characters to return (default 50000, at most 200000).
offsetintegerCharacter offset to start reading from (default 0). A truncated result ends with the offset of the next page.
pagenumberOptional page number to OCR (1-based). If omitted, OCRs all pages.

read_document

Read text content from a document with optional page selection. Use this when you need the raw text of a PDF, TXT, MD, CSV, DOCX, XLSX, PPTX, ODT, EPUB, HTML, RTF or IPYNB file; TXT/MD/CSV are returned verbatim, the Office, EPUB, HTML, RTF and notebook formats via pandoc; PDFs support page ranges (e.g. "1-5", "1-3,7,10-12") and auto-OCR fallback for scanned pages. Long texts come in pages of max_chars characters; a truncated result ends with the offset to ask for next. Read-only.

ParameterTypeDescription
filename *stringThe document filename to read
max_charsintegerMaximum characters to return (default 50000, at most 200000).
offsetintegerCharacter offset to start reading from (default 0). A truncated result ends with the offset of the next page.
pagenumberOptional single page number to read (1-based, PDF only). If omitted, returns full text.
pagesstringOptional page ranges to read (PDF only), e.g. "1-5", "10", "1-3,7,10-12". Overrides 'page' if both provided.

read_image

Extract text from a standalone image file (PNG, JPG, WebP, TIFF, BMP) using OCR. Use this when you need to read text from an image rather than a document; supports multiple languages via tesseract. Read-only.

ParameterTypeDescription
filename *stringThe image filename to OCR (must be in the documents directory)
languagestringTesseract language code (default: DOCS_MCP_OCR_LANG, or "eng"). Use "spa" for Spanish, "fra" for French, etc.

read_url

Download a document from a URL and extract its text content (max 50MB). Use this when the document is hosted online rather than in the local directory; supports PDF and plain text URLs. Read-only, downloads to a temporary file.

ParameterTypeDescription
url *stringThe URL of the document to download and read
pagesstringOptional page ranges to read, e.g. "1-5", "10", "1-3,7,10-12". If omitted, returns full text.

search_document

Search for text within a document and return matching lines with context and approximate page numbers. Use this when you need to find specific content without reading the entire document. Read-only.

ParameterTypeDescription
filename *stringThe document filename to search
query *stringThe search query (case-insensitive)
max_resultsintegerMaximum matches to show (default 50, at most 500). The header always counts every match.