Unix Manual Server
Unix 手册服务器 (MCP)
MCP 服务器直接在 Claude 对话中提供 Unix 命令文档。
特征
获取命令文档:检索 Unix 命令的帮助页、手册页和使用信息
列出常用命令:发现系统上可用的命令,按功能分类
检查命令存在:验证特定命令是否可用并获取其版本信息
Related MCP server: DevDocs MCP Server
安装
先决条件
Python 3.13+
Claude Desktop或任何与 MCP 兼容的客户端
设置
克隆此存储库
安装软件包:
pip install -e .
# or
uv install -e .在 Claude Desktop 中安装服务器:
mcp install unix_manual_server.py
# uv
uv run mcp install unix_manual_server.py用法
安装完成后,您可以直接在 Claude 中使用服务器的工具:
获取命令文档
I need help with the grep command. Can you show me the documentation?列出常用命令
What Unix commands are available on my system?检查命令是否存在
Is the awk command available on my system?发展
要在本地测试服务器而不将其安装在 Claude 中:
mcp dev unix_manual_server.py安全
服务器采取预防措施来防止命令注入:
根据正则表达式模式验证命令名称
不使用shell直接执行命令
设置所有命令执行的超时
仅检查文档,从不执行任意命令
日志记录
日志保存到与脚本同一目录中的unix-manual-server.log ,对于调试很有用。
在后台使用带有
npx的@modelcontextprotocol/inspector。
uv run mcp dev unix_manual_server.pynpx @modelcontextprotocol/inspector uv run unix_manual_server.py执照
麻省理工学院
使用 MCP Python SDK 创建。如需了解更多关于 MCP 的信息,请访问modelcontextprotocol.io 。
Available Tools
3 toolscheck_command_existsC
Check if a command exists on the system.
Args: command: The command to check
Returns: Information about whether the command exists
Inputs: command (required).
get_command_documentationC
Get documentation for a command in Unix-like system.
Args: command: The command to get documentation for (no arguments) prefer_economic: Whether to prefer the economic approach (--help/-h/help) [default: True] man_section: Specific manual section to look in (1-9) [optional]
Returns: The command documentation as a string
Inputs: command (required), prefer_economic, man_section.
list_common_commandsB
List common Unix commands available on the system.
Returns: A list of common Unix commands
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: checking command existence, retrieving documentation, and listing common commands. There is no overlap in functionality, making it easy for an agent to select the appropriate tool without confusion.
The tools follow a consistent verb_noun pattern (check_command_exists, get_command_documentation, list_common_commands), with minor deviations in verb choice ('check', 'get', 'list'). The naming is predictable and readable, though not perfectly uniform in verb style.
With only 3 tools, the server feels thin for a Unix manual domain, which might include operations like searching commands, filtering by category, or managing documentation. While the core functions are covered, the toolset could benefit from additional utilities to enhance completeness.
The tools cover the essential operations for a Unix manual server: verifying command availability, fetching documentation, and listing commands. Minor gaps exist, such as the inability to search or filter commands, but agents can work around these limitations with the provided tools.
Maintenance
Related MCP Connectors
Search and read the Claude Platform documentation and API reference.
Your docs site. No editor to open. Just ask Claude.
Search and read Linux manual pages with version-aware lookup and exact package provenance.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive access to documentation for 600+ Kali Linux penetration testing and security tools through Claude Desktop, enabling users to search, explore, and get detailed information about security tools by category or functionality.1-
- AlicenseAqualityDmaintenanceProvides access to 600+ documentation libraries from DevDocs.io including Python, JavaScript, React, Django, and more. Enables searching, browsing, and retrieving documentation content directly through Claude Desktop.56MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to Linux man pages for searching, retrieving, and exploring system documentation.16MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants like Claude to search and retrieve technical documentation from a local DevDocs instance for hundreds of programming languages and frameworks.1MIT