MCP server for accessing Linux man pages using FastMCP. Allows searching man pages, retrieving content, and listing available sections.
This server provides three well-named, read-only tools for accessing Linux man pages. Tool names are action-oriented (search_man_pages, get_man_page, list_man_sections) and clearly convey intent. However, parameter descriptions are generic, output schemas are not explicitly documented in the code, and there is no error handling guidance for LLMs. The server relies on subprocess calls to system man commands (man, apropos) but does not document expected error conditions, timeouts, or recovery paths. Parameter validation exists (timeout=10s) but is not surfaced to the LLM. Overall, the tools are simple and safe (all READ_ONLY), but fall short of production-grade quality due to incomplete parameter context and missing output documentation.
Get the full content of a specific man page
List available man page sections
Search for man pages by keyword or topic
Output schemas not documented. Tools return results but LLMs have no visibility into returned fields (e.g., does search_man_pages return [name, section, description] or just [name]?). This forces LLMs to guess at downstream field availability and risks failed follow-up calls.
Parameter descriptions are minimal and lack format/constraint guidance. 'keyword' has no length bounds, regex, or examples. 'section' is optional but does not explain fallback behavior ('returns the first available section' is buried in the tool description, not in the parameter docs). LLMs may pass invalid sections or oversized keywords.
No error handling or recovery guidance in tool descriptions. Subprocess calls can fail (man page not found, man utility missing, command timeout). LLMs receive raw errors with no actionable next steps (e.g., 'man: No entry for ....' gives no hint to try search_man_pages or check_available_sections).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 60 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 57 | - | v1 |
'section' parameter in get_man_page is optional and defaults to 'first available', but the code suggests using section numbers 1-9. No enum is declared, and no description of valid range. This invites LLMs to pass invalid sections like 'user' or '10'.
Tools lack pagination or result limits. search_man_pages may return hundreds of matches (e.g., apropos -r 'file.*' on a full Linux system). No limit parameter, no offset/cursor, no total count returned. Large results risk context window exhaustion.
get_man_page returns raw, unstructured man page text. LLMs must parse plain ASCII for structure (SYNOPSIS, DESCRIPTION, OPTIONS, etc.). No structured output (e.g., JSON with typed sections) or markdown conversion. High token overhead and error-prone parsing.