# drolosoft/go-docs-mcp [Health: Active]

**Category:** 📂 File Systems  
**Repository:** https://github.com/drolosoft/go-docs-mcp  
**GitHub Stars:** 12  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/drolosoft-go-docs-mcp

## Description
Multi-format document MCP server — read, search, OCR, and extract from PDF, TXT, MD, DOCX, CSV, and images. Single Go binary, 12 tools, smart mtime-based caching, directory-locked security.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/drolosoft/go-docs-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

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

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/drolosoft-go-docs-mcp/readme_

