mcpdoc
MCP LLMS-TXT Documentation Server
An MCP server from LangChain that serves docs from the llms.txt files you choose, with auditable tool calls
Install
{
"mcpServers": {
"langgraph-docs-mcp": {
"command": "uvx",
"args": [
"--from",
"mcpdoc",
"mcpdoc",
"--urls",
"LangGraph:https://langchain-ai.github.io/langgraph/llms.txt LangChain:https://python.langchain.com/llms.txt",
"--transport",
"stdio"
]
}
}
}For Cursor, Windsurf and Claude Desktop. Replace URLs with the llms.txt files you need.
This is third-party code. Review the repository files before installing.
What it does
The server takes a list of llms.txt files and gives the agent two tools: listing documentation sources and fetching pages linked from those files. You can see exactly which pages the agent read and what it got, unlike a client's built-in web search. Access is restricted by domain: a remote llms.txt allows only its own domain, and a local file needs domains listed explicitly. It runs over stdio or SSE and starts via uvx without installation.
Who it is for. For developers who want the agent to take library docs only from chosen sources.
Good fit when
- A library publishes llms.txt and the agent confuses its API
- You need control over where the agent gets documentation
- You want to audit every call and the returned context
Not a fit when
- The library has no llms.txt
- You need general web search
Example request
What types of memory does LangGraph have? Check the docs through llms.txtLimitations
Works only with sources that publish llms.txt. Requires uv. Claude Desktop may hit Python version issues, in which case you pass the interpreter path explicitly. The global rules the authors suggest are not supported by every client. The server is local; access from Russia depends only on the documentation sites.
How to disable. Remove the server block, for example langgraph-docs-mcp, from the MCP config and delete related rules from client settings.
MCP
- Transport
- stdio, sse
- Authentication
- not required
Security check
- Fetches web pages linked from llms.txt
README in short
The README explains why a dedicated llms.txt server helps and links LangGraph and LangChain files. It then covers installing uv, domain access rules, local testing with MCP Inspector, and connecting Cursor, Windsurf, Claude Desktop and Claude Code with sample agent rules. MIT licensed.
FAQ
Can I allow fetching from other domains?
Yes, with --allowed-domains and a domain list. The value '*' allows all domains, which the authors advise using with caution.
Does it work for libraries other than LangChain?
Yes, --urls accepts any llms.txt, remote or local.
Related
A skills library that gives coding agents a development process: brainstorming, planning, TDD, subagents and code review
Skills for real engineers by Matt Pocock
Skills For Real Engineers
Small composable skills for engineering with agents: plan grilling, TDD, bug diagnosis, code review and architecture
GitHub toolkit for spec-driven development: the specify CLI adds agent commands and skills to a project, from principles to implementation
Reference MCP servers
Model Context Protocol servers
Official reference MCP servers: Filesystem, Fetch, Git, Memory, Sequential Thinking, Time and Everything