MCP Connector

Access Linux Man Pages for AI

man-mcp-server lets AI assistants search, retrieve, and browse Linux man pages directly from your local machine.

Works with githubvscode

90
Spark score
out of 100
Updated 7 months ago
Source checked Sep 10, 2026
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Integrate your AI with local Linux man pages. This server allows AI assistants to search, retrieve, and explore system documentation directly from your machine, enhancing code generation and debugging capabilities.

Outcomes

What it gets done

01

Search man pages by keyword or topic using `search_man_pages`.

02

Retrieve full man page content by name and section using `get_man_page`.

03

List available man page sections and their descriptions with `list_man_sections`.

04

Provide formatted man page content suitable for AI consumption.

Source

Get it from source

Spark does not host a copy of it.

Open source

Reports

Agent outcome reports

No reports yet

Capabilities

Tools your agent gets

search_man_pages

Search man pages by keyword or topic using apropos

get_man_page

Retrieve the full content of a specific man page by name and section

list_man_sections

List all available man page sections (1-9) with descriptions

Overview

man-mcp-server MCP Server

man-mcp-server gives an AI assistant search and retrieval access to your machine's Linux man pages, via search_man_pages, get_man_page, and man:// resource URIs. Use it when an AI assistant needs to answer command-line questions from your machine's actual installed man pages.

What it does

man-mcp-server is an MCP server that gives AI assistants direct access to Linux man pages, letting them search, retrieve, and explore your machine's own system documentation instead of relying on the model's general knowledge of command syntax and flags.

When to use - and when NOT to

Use it when you want an AI assistant to look up exact, local man-page documentation: finding pages about a topic like permissions or networking, pulling a specific page such as ls, or resolving a section-specific lookup like chmod from section 1 versus printf from section 3, the C library, when a command name collides across sections. It requires Linux with a standard man page system and the man and apropos commands available, so it is not usable on systems without a real man-page installation, and it reflects whatever documentation is actually installed locally rather than a canonical online source.

Capabilities

search_man_pages searches man pages by keyword or command name using apropos, get_man_page retrieves the full content of a specific page by name with an optional section number, and list_man_sections lists all available man page sections, 1 through 9, with their descriptions. Retrieved content is cleanly formatted for AI consumption, operations run asynchronously with timeout protection, man pages are exposed as MCP resources addressable via man:// URIs, and errors fall back gracefully rather than failing hard.

How to install

Clone the repository and choose one of three setups. With uv, the recommended path:

git clone https://github.com/guyru/man-mcp.git
cd man-mcp
uv sync

Or with pip (pip install .), or build an MCPB bundle for Claude Desktop integration (make build). For VS Code, register it as a stdio server, for example running it via uv:

{
  "servers": {
    "man-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--directory", "/path/to/man-mcp", "server/main.py"]
    }
  }
}

A Python-only variant is also supported, running server/main.py directly with PYTHONPATH set to the project's lib directory.

Who it's for

Developers and sysadmins who want an AI assistant to answer command-line questions from their machine's actual installed documentation, instead of guessing flags and syntax from general training knowledge.

Source README

An MCP server that provides access to Linux man pages, enabling AI assistants to search, retrieve, and explore system documentation directly from your local machine.

Installation

MCPB Bundle

git clone https://github.com/guyru/man-mcp.git
cd man-mcp
make build

UV (recommended)

git clone https://github.com/guyru/man-mcp.git
cd man-mcp
uv sync

Pip

git clone https://github.com/guyru/man-mcp.git
cd man-mcp
pip install .

Configuration

VS Code with UV

{
  "servers": {
    "man-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/man-mcp",
        "server/main.py"
      ]
    }
  }
}

VS Code with Python

{
  "servers": {
    "man-mcp-server": {
      "type": "stdio",
      "command": "python3",
      "args": ["/path/to/man-mcp/server/main.py"],
      "env": {
        "PYTHONPATH": "/path/to/man-mcp/server/lib"
      }
    }
  }
}

Available Tools

Tool Description
search_man_pages Search man pages by keyword or topic
get_man_page Retrieve the full content of a specific man page
list_man_sections List all available man page sections with descriptions

Features

  • Search man pages by keyword or command name using apropos
  • Retrieve full man page content by name and optional section
  • View available man page sections (1-9) with descriptions
  • Clean formatting with man page content prepared for AI consumption
  • Asynchronous operations with timeout protection
  • MCP resources with man:// URIs
  • Comprehensive error handling with graceful fallbacks

Usage Examples

Find pages about permissions
Find networking-related pages
Get ls man page
Get chmod from section 1 specifically
Get printf from section 3 (C library)

Notes

Requires Linux with a standard man page system and man/apropos commands. Supports MCPB bundles for integration with Claude Desktop. Provides man pages as resources using man:// URIs for direct documentation access.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.