MCP Server for local document analysis: PDF text extraction, table detection, DOCX parsing, language detection and keyword search — no cloud API required
Server provides 10 tools with basic descriptions and parameter schemas. All tools are READ_ONLY and follow verb_noun naming (extract_, get_, search_, analyze_, detect_, count_). However, descriptions are minimal (avg ~80 chars, well below the 194-char baseline), lack WHEN-to-use guidance, and omit error recovery hints. Parameter descriptions exist but are sparse. Output schemas are documented in docstrings but not formally in JSON Schema. No tool annotations (readOnlyHint, idempotentHint). Error handling is absent, no guidance on what to do if a file is not found, corrupted, or unsupported. Security: file_path parameters accept arbitrary paths with no validation visible, risking path traversal. Composition is sound (each tool does one thing), but no pagination for large results (e.g., extract_text_from_pdf with max_pages=50 could still return massive text).
Analyzes the structure of a PDF: detects headings, font sizes, and section organization.
Analyzes the structure of a Word document: headings, paragraph styles, and document outline.
Counts words, sentences, characters, and estimates reading time for a PDF or DOCX file.
Detects the language of a PDF or DOCX document using langdetect.
Extracts all tables from a Microsoft Word (.docx) document.
Detects and extracts all tables from a PDF file.
Extracts all text from a Microsoft Word (.docx) document.
No error handling or recovery guidance. Tools lack descriptions of what happens on file not found, corrupted PDF, unsupported format, or permission denied. LLMs receive no actionable next steps.
Descriptions are too brief (avg ~80 chars vs 194-char baseline). Missing WHEN-to-use context. E.g., 'Extracts all text from a PDF file, page by page' does not explain when to call this vs tool_search_in_pdf, or what 'page by page' means for the output structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 48 | 2026-07-28+ | v2 |
Extracts all text from a PDF file, page by page.
Reads metadata from a PDF file: title, author, creation date, page count, outline.
Searches for a keyword in a PDF and returns all matches with context.
No input validation or path traversal protection visible. file_path parameters accept arbitrary strings with no sanitization. An LLM could be tricked into passing '../../etc/passwd' or similar malicious paths.
No tool annotations (readOnlyHint, idempotentHint). All tools are read-only and idempotent, but this is not declared in the schema. LLMs cannot infer safety properties without explicit hints.
Output schemas documented in docstrings but not formally in JSON Schema. LLMs cannot parse docstring descriptions of return types. Formal schema definitions (e.g., 'returns object with fields: full_text (string), pages (array of objects), total_pages (integer)') are needed.