loading…
Search for a command to run...
loading…
MCP server that allows AI agents to fetch and process llms.txt documentation from various sources. Fetch documentation from any HTTPS URL and automatically conv
MCP server that allows AI agents to fetch and process llms.txt documentation from various sources. Fetch documentation from any HTTPS URL and automatically convert HTML content to readable markdown.
A Model Context Protocol (MCP) server that provides access to LLMS.TXT documentation files. This server allows AI agents to fetch and process documentation from various sources.
npm install -g @pinkpixel/llmstxt-mcp
The server starts automatically and provides two tools:
list_doc_sources - Lists all configured documentation sourcesfetch_docs - Fetches documentation from a URL and converts to MarkdownBy default, the server is configured with:
https://react.dev/llms.txthttps://nextjs.org/llms.txthttps://nodejs.org/llms.txthttps://directory.llmstxt.cloud/ - Curated directory of companies using llms.txthttps://llmstxt.site/ - Comprehensive list with token counts and statsThe two directory sources provide access to thousands of websites that have adopted the llms.txt standard:
These directories are invaluable for discovering documentation from the growing ecosystem of companies adopting the llms.txt standard.
Customize behavior with these environment variables:
LLMSTXT_CONFIG: Path to custom configuration file (not implemented yet)LLMSTXT_FOLLOW_REDIRECTS: Whether to follow HTTP redirects (true/false)LLMSTXT_TIMEOUT: Request timeout in seconds (default: 10)LLMSTXT_ALLOWED_DOMAINS: Comma-separated list of allowed domains (default: * for all)Example:
export LLMSTXT_FOLLOW_REDIRECTS=true
export LLMSTXT_TIMEOUT=30
export LLMSTXT_ALLOWED_DOMAINS="react.dev,nextjs.org,nodejs.org"
You can install globally with npm i -g @pinkpixel/llmstxt-mcp and then it can be ran with "llmstxt-mcp"
Add to your mcp_config.json:
{
"mcpServers": {
"llmstxt": {
"command": "llmstxt-mcp",
"env": {
"LLMSTXT_FOLLOW_REDIRECTS": "true",
"LLMSTXT_TIMEOUT": "30"
}
}
}
}
OR use with npx
{
"mcpServers": {
"llmstxt": {
"command": "npx",
"args": ["-y", "@pinkpixel/llmstxt-mcp", "llmstxt-mcp"],
"env": {
"LLMSTXT_FOLLOW_REDIRECTS": "true",
"LLMSTXT_TIMEOUT": "30"
}
}
}
}
# Build first
npm run build
# Test with inspector
npm run inspector
# Or directly
npx @modelcontextprotocol/inspector ./build/index.js
# List available tools
npx @modelcontextprotocol/inspector --cli ./build/index.js --method tools/list
# List doc sources
npx @modelcontextprotocol/inspector --cli ./build/index.js --method tools/call --tool-name list_doc_sources
# Fetch documentation
npx @modelcontextprotocol/inspector --cli ./build/index.js --method tools/call --tool-name fetch_docs --tool-arg url="https://example.com"
# Clone the repository
git clone https://github.com/pinkpixel-dev/llmstxt-mcp.git
cd llmstxt-mcp
# Install dependencies
npm install
# Build the server
npm run build
# Test with inspector
npm run inspector
The server provides detailed error messages for:
MIT License - see LICENSE file for details.
Made with ❤️ by Pink Pixel
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"llmstxt-mcp-server": {
"command": "npx",
"args": []
}
}
}