docs2prompt MCP Server

by Melbourneandrew
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Enables fetching and converting documentation from GitHub repositories into LLM-friendly prompts, requiring a GitHub access token for authentication.

MCP Server for docs2prompt

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:

-
security - not tested
A
license - permissive license
-
quality - not tested

An MCP server that wraps the docs2prompt library, enabling users to convert documentation from GitHub repositories or websites into LLM-friendly prompts through any MCP client.

  1. Run Server (Development)