
A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

A single-binary MCP server that lets AI clients read, search, analyze and convert documents across 14 formats, with OCR, table and image extraction, and URL fetching.
Go-Docs MCP: a document-access MCP server is cataloged as an MCP server attributed to drolosoft. A single-binary MCP server that lets AI clients read, search, analyze and convert documents across 14 formats, with OCR, table and image extraction, and URL fetching. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Go-Docs MCP: a document-access MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. Files must resolve inside the configured documents directory, symlinks pointing outside are not listed, and the server is read-only.
Yes. Setting DOCS_MCP_DISABLE_URL=1 removes the read_url tool from the server entirely.
README.md · 725525c6d65a · Fetched 2026-11-13 11:43:03 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Install and Go. One command, single binary. Your AI reads any document: PDF, text, Markdown, Office files, EPUB, HTML, notebooks, images.
MCP server for multi-format document access: read, search, extract images, OCR, and fetch documents from URLs via the Model Context Protocol. 13 tools, 14 formats, zero configuration.
go install github.com/drolosoft/go-docs-mcp@latest
# That's it. Single binary, starts in milliseconds.
For a deeper look at why an MCP server beats a direct tool, see Why MCP?
Every other document MCP server handles one format: a PDF server for PDFs, a DOCX server for DOCX. You'd need three separate servers to read three formats.
| Go-Docs MCP | Others | |
|---|---|---|
| Single binary, no runtime | Yes | Need Node/Python |
go install one-liner | Yes | npm+deps or pip+venv |
| Multi-format (14 types) | Yes | One format each |
| Full-text search | Yes | Partial or none |
| OCR (scanned PDFs + images) | Yes | Rare |
| Image & table extraction | Yes | Partial |
| Document outline | Yes | Rare |
| Fetch from URL | Yes | Rare |
| Confined to one directory, read-only | Yes | Varies |
| Smart caching | Yes | No |
| Fully offline | Yes | Yes |
Go-Docs MCP reads them all from a single binary.
| Category | Tool | Description |
|---|---|---|
| Discovery | list_documents | List all documents with metadata (format, pages, size) |
| Discovery | list_formats | List supported formats and dependency status |
| Reading | read_document | Full text, specific page, or page ranges from any format |
| Reading | read_url | Download from URL and extract text (50MB max) |
| Reading | get_document_summary | First 3 pages as a quick overview |
| Search | search_document | Case-insensitive full-text search with context |
| Analysis | get_document_metadata | Title, author, dates, version, page count |
| Analysis | get_document_outline | Heading structure deduced from the text |
| Analysis | extract_tables | Tables as structured data |
| Analysis | extract_images | Images as PNG image content, scaled to fit (max 10 per call, 8 MB budget) |
| OCR | ocr_document | Force OCR on scanned/image-based PDFs |
| OCR | read_image | Extract text from PNG, JPG, WebP, TIFF, BMP via OCR |
| Export | convert_to_markdown | Convert any document to clean Markdown |
Highlights:
offset and max_chars on the text tools, so a 200 MB file never floods the modeldocs:// resource, so Claude Code can @-mention itWhat each format supports, the type values of list_documents and the
limits of a call are in doc/formats.md.
brew install drolosoft/tap/go-docs-mcp # macOS and Linux, brings poppler, tesseract and pandoc
Or, with Go 1.27.3 or later, go install github.com/drolosoft/go-docs-mcp@latest
and install poppler (plus tesseract and pandoc if you need them) yourself.
Two more ways, both listed in the official MCP Registry:
Claude Desktop, one click. Download go-docs-mcp_<version>.mcpb from
the latest release
and open it. It asks for your documents folder. poppler, tesseract and
pandoc still come from your system (brew install poppler tesseract pandoc).
Docker, nothing to install. The image brings poppler, tesseract (English and Spanish) and pandoc:
docker run -i --rm -v /path/to/your/documents:/documents:ro ghcr.io/drolosoft/go-docs-mcp
The Claude Code plugin, the release archives and how to check them, the settings of each of these and the commands for each package manager are in doc/install.md.
The server reads the documents in DOCS_MCP_DIR (default ~/.docs-mcp/documents/)
and finds every supported file in it; files added while it runs show up on
the next call. The other
settings (OCR language, cache size, read_url switches) are listed in
doc/install.md.
Every document is also exposed as an MCP resource with the URI docs://<filename> (percent-encoded). Clients that support resources, such as Claude Code with @docs://report.pdf, can pull a document into the conversation without calling a tool. The list is rebuilt on every resources/list, so files added after startup show up.
list_documents, list_formats, get_document_metadata, get_document_outline and extract_tables declare an output schema and return structuredContent next to the JSON text they always returned, so older clients see no change.
Register the server from the terminal:
claude mcp add docs -e DOCS_MCP_DIR=/path/to/your/documents -- go-docs-mcp
Or add it to the .mcp.json of the project you want it in:
{
"mcpServers": {
"docs": {
"command": "go-docs-mcp",
"env": {
"DOCS_MCP_DIR": "/path/to/your/documents"
}
}
}
}
Claude Desktop needs the full path of the binary, and finds poppler, tesseract and pandoc only in some folders. The config and what to do when they are elsewhere are in doc/install.md.
The server communicates over stdio using JSON-RPC 2.0:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | go-docs-mcp
list_documentsLists all documents in the configured directory with format detection.
Parameters: None
Example output:
[
{
"filename": "architecture-guide.pdf",
"title": "architecture-guide",
"type": "pdf",
"pages": 42,
"size_bytes": 1048576
},
{
"filename": "notes.md",
"title": "notes",
"type": "markdown",
"pages": 0,
"size_bytes": 4096
},
{
"filename": "receipt.png",
"title": "receipt",
"type": "image",
"pages": 0,
"size_bytes": 220144
}
]
list_formatsLists all supported document formats and their dependency status.
Parameters: None
read_documentReads the extracted text content of a document. Automatically falls back to OCR if the document is image-based/scanned and pdftotext returns empty text.
Long texts come in pages. A page that does not reach the end finishes with [truncated: showing chars 0-50000 of 123456; call again with offset=50000], and the structured result carries text, next_offset (absent on the last page) and total_chars. Offsets count characters, not bytes.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to read |
page | number | No | Single page number (1-based). Omit for full text. |
pages | string | No | Page ranges, e.g. "1-5", "10", "1-3,7,10-12". Overrides page. |
offset | number | No | Character offset to start from (default 0). |
max_chars | number | No | Characters to return (default 50000, at most 200000). |
convert_to_markdown and ocr_document take the same two parameters.
Example input:
{
"filename": "architecture-guide.pdf",
"pages": "1-3,10-12"
}
search_documentSearches within a document for lines matching a query. Returns matches with 2 lines of context and approximate page numbers.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to search |
query | string | Yes | Search query (case-insensitive) |
max_results | number | No | Matches to show (default 50, at most 500). The header still counts all of them. |
Example output:
Found 3 matches for 'microservice' in architecture-guide.pdf:
--- Match 1 (page ~2, line 45) ---
The system is composed of several
> microservice components that communicate
via gRPC and message queues.
get_document_summaryReturns the text from the first 3 pages of a document as a quick summary.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to summarize |
get_document_metadataReturns full document metadata.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to get metadata for |
Example output:
{
"title": "Architecture Guide",
"author": "Jane Doe",
"subject": "System Design",
"creator": "LaTeX",
"producer": "pdfTeX",
"creation_date": "Thu May 15 10:30:00 2025",
"modification_date": "Thu May 15 10:30:00 2025",
"pages": 42,
"file_size_bytes": 1048576,
"pdf_version": "1.5"
}
get_document_outlineExtracts the heading structure of a document as a structured list. For PDFs the outline is deduced from the extracted text (short lines that look like headings), not read from the PDF bookmarks; for Markdown and text files it comes from # headings.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to extract outline from |
extract_tablesExtracts tables from a document as structured data.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to extract tables from |
page | number | No | Specific page to extract from. Omit for all pages. |
extract_imagesExtracts the images of a PDF and returns each one as MCP image content (image/png), so clients that render images show them. Alpha masks and stencil masks are skipped, images are scaled down to 1600 px on the longer side, an image still over 4 MB after scaling is shrunk until it fits, and the images of one answer stay under 8 MB. A text item before the images describes them and says why any was left out.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The document filename to extract images from |
page | number | No | Specific page to extract from. Omit for all pages. |
max_images | number | No | Images to return (default 10, at most 50). |
Example output: a text item that describes the images, then one image/png item per image.
{
"images": [
{
"page": 1,
"index": 0,
"format": "png",
"mime_type": "image/png",
"width": 1600,
"height": 1200,
"original_width": 2048,
"original_height": 1536
}
],
"found": 3,
"notes": ["returned the first 1 of 3 images; raise max_images or ask for one page to see the others"]
}
read_urlDownloads a document from a URL and extracts its text content. Accepts application/pdf and text/* responses, up to 50MB. Set DOCS_MCP_DISABLE_URL=1 to remove this tool entirely.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL of the document to download and read |
pages | string | No | Page ranges to extract, e.g. "1-5". Omit for full text. |
Example input:
{
"url": "https://example.com/report.pdf",
"pages": "1-3"
}
ocr_documentForces OCR on a PDF document using tesseract. Useful for scanned/image-based PDFs or when pdftotext returns garbled text. Requires tesseract and pdftoppm.
Note:
read_documentalready auto-detects image-based PDFs and falls back to OCR. Useocr_documentwhen you want to force OCR regardless, or need to specify a non-English language.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The PDF filename to OCR |
page | number | No | Specific page to OCR (1-based). Omit for all pages. |
language | string | No | Tesseract language code (default: DOCS_MCP_OCR_LANG, then eng). Use spa, fra, etc. |
offset, max_chars | number | No | Same paging as read_document. |
Example input:
{
"filename": "scanned-contract.pdf",
"page": 1,
"language": "spa"
}
read_imageExtracts text from an image file using OCR. Supports PNG, JPG, WebP, TIFF and BMP. Requires tesseract.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
filename | string | Yes | The image filename to read (PNG, JPG, WebP, TIFF, BMP) |
language | string | No | Tesseract language code (default: DOCS_MCP_OCR_LANG, then eng). |
Example input:
{
"filename": "receipt.png",
"language": "eng"
}
DOCS_MCP_DIR. A symlink that points outside is not listed and cannot be read. Filenames with path separators or ../ are rejected before that.DOCS_MCP_DIR, and every tool is announced to clients as read-only, non-destructive and idempotent.read_url: 60 s timeout, 50MB limit, application/pdf or text/* only, temp files removed right after reading. Hosts that resolve to private, loopback, link-local or cloud metadata addresses are refused, on the first request and on every redirect. Set DOCS_MCP_DISABLE_URL=1 to drop the tool from the server if your documents may contain untrusted instructions. Environment proxies are ignored unless DOCS_MCP_URL_PROXY=1, because behind a proxy the connect-time check would judge the proxy, not the target.DOCS_MCP_CACHE_MB.How to report a problem is in SECURITY.md.
make build # Build the binary
make test # Run tests with race detector
make clean # Remove build artifacts
CI runs gofmt, vet, the race tests with poppler, tesseract and pandoc installed, and govulncheck on every push. A tag v* builds the release archives with goreleaser. See CONTRIBUTING.md.
How the binary serves both MCP protocol eras (the initialize handshake and the stateless 2026-07-28 revision) and how that is tested: doc/MCP-2026-07-28.md.
go-docs-mcp/
main.go # MCP server setup, 13 tool registrations
resources.go # docs:// resources
internal/
pdf/
reader.go # Document extraction, caching, search, metadata, images, OCR
doc/
formats.md # What each format supports, limits of a call
install.md # Install paths, Claude Desktop, env vars
MCP-2026-07-28.md # Both protocol eras and how they are tested
WHY-MCP.md # Why an MCP server and not a direct tool
Makefile # Build targets
go.mod # Module definition
MIT - Copyright 2026 Drolosoft
Drolosoft: Tools we wish existed
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Go-Docs MCP: a document-access MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/go-docs-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.