docs2prompt MCP Server
Provides access to documentation in GitHub repositories, converting them into LLM-friendly prompts through the docs2prompt library
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docs2prompt MCP Serverextract prompts from the React documentation on GitHub"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)
curl -LsSf https://astral.sh/uv/install.sh | shClone the repository:
git clone https://github.com/Melbourneandrew/docs2prompt-mcpPut 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 toolsget_docs2prompt_docsA
Use this tool to get the documentation from a GitHub repository.
Args:
github_repo: The GitHub repository to get the documentation for.
| Name | Required | Description | Default |
|---|---|---|---|
| github_repo | Yes |
TDQS
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
TDQS
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.
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.
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.
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.
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.
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
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.
Both tools follow a consistent 'get_<source>_docs' pattern, making their purpose immediately clear and predictable.
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.
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
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
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for generating rough-draft project plans from natural-language prompts.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- FlicenseAqualityFmaintenanceAn enhanced MCP server that fetches prompts from GitHub repositories with intelligent discovery, composition, and management features.712
- AlicenseNot gradedqualityDmaintenanceGeneric MCP server that exposes Markdown documentation to LLMs, enabling them to search and answer questions about any software documentation.MIT
- AlicenseNot gradedqualityDmaintenanceThis 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.2251MIT
- FlicenseAqualityCmaintenanceAn MCP server that provides AI clients with access to developer documentation via llms.txt files. Exposes tools, resources, and prompts.31
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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