MCP LLMS-TXT Documentation Server
Servidor de documentación MCP LLMS-TXT
Descripción general
llms.txt es un índice de sitios web para LLM, que proporciona información general, orientación y enlaces a archivos Markdown detallados. IDEs como Cursor y Windsurf, o aplicaciones como Claude Code/Desktop, pueden usar llms.txt para recuperar el contexto de las tareas. Sin embargo, estas aplicaciones utilizan diferentes herramientas integradas para leer y procesar archivos como llms.txt . El proceso de recuperación puede ser opaco y no siempre es posible auditar las llamadas a las herramientas ni el contexto devuelto.
MCP ofrece a los desarrolladores un control total sobre las herramientas que utilizan estas aplicaciones. En este trabajo, creamos un servidor MCP de código abierto para proporcionar a las aplicaciones host MCP (p. ej., Cursor, Windsurf, Claude Code/Desktop) (1) una lista de archivos llms.txt definida por el usuario y (2) una herramienta fetch_docs sencilla que lee las URL dentro de cualquiera de los archivos llms.txt proporcionados. Esto permite al usuario auditar cada llamada a la herramienta, así como el contexto devuelto.
Related MCP server: Library Docs MCP Server
Inicio rápido
Instalar uv
Consulte la documentación oficial de uv para conocer otras formas de instalar
uv.
curl -LsSf https://astral.sh/uv/install.sh | shElija un archivo llms.txt para utilizar.
Por ejemplo, aquí está el archivo
llms.txtde LangGraph.
(Opcional) Pruebe el servidor MCP localmente con el archivo llms.txt de su elección:
uvx --from mcpdoc mcpdoc \
--urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txt \
--transport sse \
--port 8082 \
--host localhostEsto debería ejecutarse en: http://localhost:8082
Ejecute el inspector MCP y conéctese al servidor en ejecución:
npx @modelcontextprotocol/inspectorAquí puedes probar las llamadas
tool.
Conectarse al cursor
Abra
Cursor Settingsy la pestañaMCP.Esto abrirá el archivo
~/.cursor/mcp.json.
Pegue lo siguiente en el archivo (usamos el nombre
langgraph-docs-mcpy el enlace a LangGraphllms.txt).
{
"mcpServers": {
"langgraph-docs-mcp": {
"command": "uvx",
"args": [
"--from",
"mcpdoc",
"mcpdoc",
"--urls",
"LangGraph:https://langchain-ai.github.io/langgraph/llms.txt",
"--transport",
"stdio",
"--port",
"8081",
"--host",
"localhost"
]
}
}
}Confirme que el servidor se esté ejecutando en la pestaña
Cursor Settings/MCP.CMD+L(en Mac) para abrir el chat.Asegúrese de que
agentesté seleccionado.
A continuación, prueba con un ejemplo de solicitud, como por ejemplo:
use the langgraph-docs-mcp server to answer any LangGraph questions --
+ call list_doc_sources tool to get the available llms.txt file
+ call fetch_docs tool to read it
+ reflect on the urls in llms.txt
+ reflect on the input question
+ call fetch_docs on any urls relevant to the question
+ use this to answer the question
what are types of memory in LangGraph?Conéctate a Windsurf
Abra Cascade con
CMD+L(en Mac).Haga clic en
Configure MCPpara abrir el archivo de configuración,~/.codeium/windsurf/mcp_config.json.Actualice con
langgraph-docs-mcpcomo se indicó anteriormente.
CMD+L(en Mac) para abrir Cascade y actualizar los servidores MCP.Se enumerarán los servidores MCP disponibles, mostrando
langgraph-docs-mcpcomo conectado.
A continuación, prueba el ejemplo:
Realizará sus llamadas de herramientas.
Conectarse a Claude Desktop
Abra
Settings/Developerpara actualizar~/Library/Application\ Support/Claude/claude_desktop_config.json.Actualice con
langgraph-docs-mcpcomo se indicó anteriormente.Reinicie la aplicación Claude Desktop.
Verás tus herramientas visibles en la parte inferior derecha de tu entrada de chat.
A continuación, prueba el ejemplo:
Le solicitará que apruebe las llamadas de herramientas mientras procesa su solicitud.
Conectarse a Claude Code
En una terminal después de instalar Claude Code , ejecute este comando para agregar el servidor MCP a su proyecto:
claude mcp add-json langgraph-docs '{"type":"stdio","command":"uvx" ,"args":["--from", "mcpdoc", "mcpdoc", "--urls", "langgraph:https://langchain-ai.github.io/langgraph/llms.txt"]}' -s localVerá
~/.claude.jsonactualizado.Pruebe iniciando Claude Code y ejecutándolo para ver sus herramientas:
$ Claude
$ /mcp A continuación, prueba el ejemplo:
Solicitará aprobar llamadas de herramientas.
Interfaz de línea de comandos
El comando mcpdoc proporciona una CLI simple para iniciar el servidor de documentación.
Puede especificar fuentes de documentación de tres maneras, que pueden combinarse:
Usando un archivo de configuración YAML:
Esto cargará la documentación de Python de LangGraph desde el archivo
sample_config.yamlen este repositorio.
mcpdoc --yaml sample_config.yamlUsando un archivo de configuración JSON:
Esto cargará la documentación de Python de LangGraph desde el archivo
sample_config.jsonen este repositorio.
mcpdoc --json sample_config.jsonEspecificar directamente las URL de llms.txt con nombres opcionales:
Las URL se pueden especificar como URL simples o con nombres opcionales utilizando el formato
name:url.Así es como cargamos
llms.txtpara el servidor MCP anterior.
mcpdoc --urls LangGraph:https://langchain-ai.github.io/langgraph/llms.txtTambién puede combinar estos métodos para fusionar fuentes de documentación:
mcpdoc --yaml sample_config.yaml --json sample_config.json --urls https://langchain-ai.github.io/langgraph/llms.txtOpciones adicionales
--follow-redirects: Seguir redirecciones HTTP (predeterminado en Falso)--timeout SECONDS: tiempo de espera de la solicitud HTTP en segundos (predeterminado 10.0)
Ejemplo con opciones adicionales:
mcpdoc --yaml sample_config.yaml --follow-redirects --timeout 15Esto cargará la documentación de Python de LangGraph con un tiempo de espera de 15 segundos y seguirá cualquier redirección HTTP si es necesario.
Formato de configuración
Los archivos de configuración YAML y JSON deben contener una lista de fuentes de documentación.
Cada fuente debe incluir una URL llms_txt y, opcionalmente, puede incluir un name :
Ejemplo de configuración de YAML (sample_config.yaml)
# Sample configuration for mcp-mcpdoc server
# Each entry must have a llms_txt URL and optionally a name
- name: LangGraph Python
llms_txt: https://langchain-ai.github.io/langgraph/llms.txtEjemplo de configuración JSON (sample_config.json)
[
{
"name": "LangGraph Python",
"llms_txt": "https://langchain-ai.github.io/langgraph/llms.txt"
}
]Uso programático
from mcpdoc.main import create_server
# Create a server with documentation sources
server = create_server(
[
{
"name": "LangGraph Python",
"llms_txt": "https://langchain-ai.github.io/langgraph/llms.txt",
},
# You can add multiple documentation sources
# {
# "name": "Another Documentation",
# "llms_txt": "https://example.com/llms.txt",
# },
],
follow_redirects=True,
timeout=15.0,
)
# Run the server
server.run(transport="stdio")This server cannot be installed
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 Servers
- Alicense-qualityBmaintenanceAn MCP server that provides tools to load and fetch documentation from any llms.txt source, giving users full control over context retrieval for LLMs in IDE agents and applications.1,029MIT
- FlicenseBqualityDmaintenanceAn MCP server that fetches real-time documentation for popular libraries like Langchain, Llama-Index, MCP, and OpenAI, allowing LLMs to access updated library information beyond their knowledge cut-off dates.13
- Flicense-qualityDmaintenanceA customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.
- Alicense-qualityDmaintenanceAn MCP server that enables users to fetch and audit documentation from user-defined llms.txt index files. It provides tools to list documentation sources and retrieve content from specific URLs with built-in domain access controls for secure context retrieval.MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
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/teddylee777/mcpdoc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server