Skip to main content
Glama
Melbourneandrew

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.
ParametersJSON Schema
NameRequiredDescriptionDefault
github_repoYes

TDQS

A3.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral traits. It only describes a read operation but lacks details on rate limits, output format, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the purpose, and every word is useful with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema and annotations, the description fails to specify what the tool returns, leaving the agent without crucial context for a tool that fetches documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaning to the 'github_repo' parameter beyond the schema, explaining it is the repository to fetch documentation from. Since schema coverage is 0%, this provides necessary context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'get' and resource 'documentation from a GitHub repository', distinguishing it from the sibling 'get_url_docs' which likely targets URLs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use (to get documentation from a GitHub repo), but does not mention when not to use or provide comparisons with the sibling tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

Args:
    url: The URL to get the documentation for.
ParametersJSON Schema
NameRequiredDescriptionDefault
urlYes

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must disclose behavioral traits. It only states the basic function, omitting any details about error handling, authentication, or side effects. For a simple tool, this is insufficient to fully inform an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with two sentences, front-loading the purpose. Every word earns its place, no wasted text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 param, no output schema), the description is minimally adequate. It explains what the tool does and the parameter, but lacks contextual guidance about when to prefer this tool over its sibling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, so the description must compensate. It identifies the parameter as a URL, adding meaning beyond the bare schema. However, it does not specify URL format or constraints, providing minimal added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves documentation from a URL, using specific verb+resource. However, it does not differentiate from the sibling tool 'get_docs2prompt_docs', so it loses a point for lack of distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description tells when to use the tool ('get the documentation at a URL'), but provides no guidance on when not to use it or alternatives (e.g., the sibling tool). It is implied usage without exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.7/5.0
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.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

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.
    225
    1
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Melbourneandrew/docs2prompt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server