Skip to main content
Glama
docs2prompt MCP Server

docs2prompt MCP Server

MCP Server for docs2prompt

License

docs2prompt is a python library and line tool developed by Reza Tabrizi that turns documentation in github repositories or hosted on dedicated websites into LLM-friendly prompts.

This repository contains an MCP server that wraps docs2prompt for use by any MCP client (Cursor, Claude, Windsurf, etc).

Run Server (Development)

  1. Install UV

curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Clone the repository:

git clone https://github.com/Melbourneandrew/docs2prompt-mcp
  1. Put this in your MCP client config (Add your path and github access token):

{
    "mcpServers": {
        "docs2prompt": {
            "command": "uv",
            "args": [
                "--directory",
                "/YOUR/LOCAL/PATH/docs2prompt-mcp/src",
                "run",
                "main.py"
            ],
            "env": {
                "GITHUB_TOKEN": ""
            }
        }
    }
}

If you need, here are guides to set up MCP for common clients:

Available Tools

2 tools
get_docs2prompt_docsA
Use this tool to get the documentation from a GitHub repository.

Args:
    github_repo: The GitHub repository to get the documentation for.

Inputs: github_repo (required).

get_url_docsB
Use this tool to get the documentation at a URL.

Args:
    url: The URL to get the documentation for.

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one retrieves documentation from a GitHub repository, the other from a generic URL. There is no ambiguity between them.

    Naming Consistency5/5

    Both tools follow a consistent 'get_<source>_docs' pattern, making their purpose immediately clear and predictable.

    Tool Count4/5

    With only two tools, the server is minimal but focused. The count is slightly low for broad usefulness, but it may be appropriate for a narrowly scoped documentation retrieval service.

    Completeness3/5

    The tools cover retrieval from two common sources, but the server name 'docs2prompt' suggests conversion to prompts, which is missing. The current surface is incomplete for the implied purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Generic MCP server that exposes Markdown documentation to LLMs, enabling them to search and answer questions about any software documentation.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      This MCP server provides access to resources and prompts from GitHub repositories or the local filesystem, enabling teams to share coding standards, documentation, and reusable prompts with AI tools like Claude.
      1
      ISC