Go Docs MCP logo

Go Docs MCP

by drolosoft

Read, search, OCR, analyze, and convert local documents across 14 formats through one Go-based MCP server.

Install Go Docs MCP

Run the project’s own setup commands, in order.

Setup steps from the project

drolosoft/go-docs-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    go install github.com/drolosoft/go-docs-mcp@latest
    

Overview

drolosoft/go-docs-mcp exposes local document files and URL downloads through 13 MCP tools for reading, search, OCR, metadata, tables, images, outlines, and Markdown conversion. It runs as a single Go binary over stdio and restricts file access to a configured directory. Reach for it when an agent needs one document interface across PDFs, Office files, text, images, notebooks, and other supported formats. In-memory modification-time caching and paged output help control repeated extraction and large responses.

Use cases

  • Search a local PDF collection for matching passages
  • Extract tables from spreadsheets or reports
  • OCR scanned PDFs and image-based receipts
  • Convert Office files and notebooks to Markdown
  • Inspect document metadata and heading structure

Key features

  • Supports 14 document and image format families
  • Provides 13 tools for reading, search, OCR, and extraction
  • Uses modification-time in-memory caching
  • Returns large text through paged offsets
  • Restricts access to one configured directory
  • Exposes documents as docs:// MCP resources

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars12Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Go Docs MCP works

What drolosoft/go-docs-mcp does

drolosoft/go-docs-mcp gives MCP-compatible agents access to documents stored in one configured directory, along with a tool for downloading and extracting text from URLs. It supports PDF, TXT, Markdown, CSV, DOCX, XLSX, PPTX, ODT, EPUB, HTML, RTF, Jupyter notebooks, and images in PNG, JPG, WebP, TIFF, and BMP formats.

The server covers document discovery, text reading, full-text search, metadata inspection, outline generation, table extraction, image extraction, OCR, and conversion to Markdown. Each local document is also exposed as an MCP resource using a docs://<filename> URI.

How it works

The process communicates through stdio using JSON-RPC 2.0. It scans the directory specified by DOCS_MCP_DIR; if that variable is absent, it uses ~/.docs-mcp/documents/. Files added while the process is running appear on later document and resource listings.

Extraction results are cached in memory according to file modification time, allowing unchanged files to avoid repeated processing. Text-oriented tools support character offsets and maximum output sizes. Reading can target a single page, page ranges, or a bounded section of a larger document. Scanned PDFs can fall back to OCR, while the dedicated OCR tools provide forced OCR for documents and image files.

Setup and configuration

Install the binary with Go 1.27.3 or later:

bash
go install github.com/drolosoft/go-docs-mcp@latest

On macOS and Linux, Homebrew can install the project and its external document utilities:

bash
brew install drolosoft/tap/go-docs-mcp

Depending on the formats required, the server uses Poppler for PDFs, Tesseract for OCR, and Pandoc for DOCX, XLSX, PPTX, ODT, EPUB, HTML, RTF, and IPYNB files. These dependencies can also be included through the published Docker image. The server is available for macOS, Linux, and Windows.

Set DOCS_MCP_DIR to the directory the agent may read. The directory lock and path-traversal prevention keep file access confined to that location. A Claude Code registration can pass the directory as an environment variable, while other stdio MCP clients can launch the binary directly.

Tools and capabilities

The tool set includes:

  • list_documents for filenames, detected formats, page counts, and sizes.
  • list_formats for supported formats and dependency status.
  • read_document for complete text, selected pages, or page ranges.
  • read_url for downloading and extracting a document, with a 50 MB limit.
  • get_document_summary for the first three pages.
  • search_document for case-insensitive matches with context.
  • get_document_metadata for titles, authors, dates, versions, and page counts.
  • get_document_outline for heading structure inferred from extracted text.
  • extract_tables for structured table data.
  • extract_images for PNG image content, with up to 10 images and an 8 MB budget per call.
  • ocr_document and read_image for OCR workflows.
  • convert_to_markdown for document-to-Markdown conversion.

Several discovery and analysis tools return structured MCP output alongside JSON text, including document listings, format listings, metadata, outlines, and tables.

Limitations and notes

External utilities affect which formats are available: plain text, Markdown, and CSV work without an external program, while PDF, OCR, and Pandoc-backed formats require the corresponding dependency. URL retrieval is capped at 50 MB. Image extraction is limited to 10 images and an 8 MB response budget per call. Large text responses must be retrieved in sections, with max_chars capped at 200,000 characters per request and a default of 50,000.

The server is read-only and directory-scoped. URL retrieval is an explicit tool capability, but downloaded content does not change the local document directory. OCR language, cache sizing, and URL behavior are configurable through the server's installation settings.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Go Docs MCP

drolosoft/go-docs-mcp is an MCP server that connects AI clients to documents in a configured local directory and supports URL retrieval. Its main tools read and search files, extract metadata, outlines, tables, and images, run OCR on scans and images, and convert supported documents to Markdown.

Install it with Go 1.27.3 or later using `go install github.com/drolosoft/go-docs-mcp@latest`. Homebrew and Docker are also available; format-dependent utilities such as Poppler, Tesseract, and Pandoc may need to be installed or supplied by the chosen package.

Set `DOCS_MCP_DIR` to the directory the server should read. If it is not set, the server uses `~/.docs-mcp/documents/`. Access remains confined to that directory, and files added during execution appear in later listings.

Yes. Claude Desktop can use the downloadable `.mcpb` package or launch the stdio binary through its MCP configuration. Poppler, Tesseract, and Pandoc still need to be available on the system for the formats and OCR features that use them.

Yes. `ocr_document` forces OCR for scanned or image-based documents, and `read_image` extracts text from PNG, JPG, WebP, TIFF, and BMP files. Tesseract is required for these OCR operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGo Docs MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/drolosoft-go-docs-mcp?style=directory)](https://allmcps.com/mcp/drolosoft-go-docs-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/drolosoft-go-docs-mcp"><img src="https://allmcps.com/api/badge/drolosoft-go-docs-mcp?style=directory" alt="Go Docs MCP on AllMCPs" /></a>