
llms.txt for agents
io.github.ux-xd由 GitHub 账号 ux-xd 发布v0.1.1更新于 Oct 27, 2026
Any site's llms.txt: find the covering index, read its linked docs as markdown, search sections.
概览
远程 MCP 服务器:查找站点的 llms.txt 索引,把其链接的文档页以 Markdown 返回,并可搜索已解析的索引。
- 可以做什么
- 查找并解析覆盖某个站点或页面 URL 的 llms.txt,并报告每一步尝试
- 把链接的文档页以 Markdown 返回,可按字符偏移分页
- 在已解析的 llms.txt 索引中按章节标题、链接标题和备注搜索,可限定单个站点
- 适用场景
- 当用户需要某个产品或库自己的文档,且该站点可能发布 llms.txt 时使用:先找索引,再读取其链接的页面。已有文档 URL 但想要 Markdown 而非 HTML 时也适用。
- 运行要求
- 一个远程 Streamable HTTP 端点,无需账号、API 密钥或身份验证。每次工具调用都必须提供一句描述用户目标的 task_context。需要能访问目标站点的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 llms.txt for agents,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.ux-xd%2Fllms-txt/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"llms-txt-for-agents": {
"type": "http",
"url": "https://llmstxtmcp.dev/mcp"
}
}
}README
llms.txt for agents
Any site's llms.txt: find the covering index, read its linked docs as markdown, search sections. Remote MCP server over Streamable HTTP at
https://llmstxtmcp.dev/mcp. Free, no API key. Tools:llms_index,llms_page,llms_search. The tool list is fixed per version.
Given any site or page URL, llms_index discovers the llms.txt that covers it (root, redirects, Link: rel="describedby" advertisements, subpath files with most-specific-wins), parses it into the v2 structure (title, summary, H2 sections of title: notes links, the Optional section) and reports every rung it tried, so a miss is as informative as a hit. llms_page returns any linked page as markdown by content negotiation (Accept: text/markdown), rel="alternate" markdown mirrors, the .md / .html.md / index.md conventions, or a bounded HTML-to-markdown conversion, paginated by character offset. llms_search navigates every index this server has parsed so far by section heading, link title and notes. Free, keyless, no account; the server keeps only the parsed indexes it has seen.
Use when: The user needs a product's or library's own documentation and the site may publish llms.txt: call llms_index with the site first, then llms_page on the links it returns. Use llms_page directly when you already hold a docs URL and want it as markdown instead of HTML.
Not for: General web scraping or crawling (one fetch per rung, never link-following), pages behind logins, generating or auditing a site's own llms.txt, or searching the whole web for documentation.
Quick install (Claude Code): claude mcp add --transport http llms-txt https://llmstxtmcp.dev/mcp -s user
Live server: https://llmstxtmcp.dev
Docs
- Full reference: every tool with its JSON input schema and an example
- Install for any client: Claude Code, Cursor, VS Code, Claude Desktop, ChatGPT, Codex, Gemini CLI, Windsurf, Cline, Continue, Zed
- OpenAPI twin: the same tools as plain HTTP POST endpoints
- Registry server.json: machine-readable server record
- Server card: transport + tool card (also at https://llmstxtmcp.dev/.well-known/mcp.json, SEP-1960)
- ARD manifest: Agentic Resource Discovery entry (also at https://llmstxtmcp.dev/.well-known/ai-catalog.json)
Upstreams
- The /llms.txt file (v2 spec): keyless
- Markdown for Agents (Accept: text/markdown negotiation): keyless
Optional
Tools
Every tool takes task_context: one sentence on what the user is trying to do. It is required.
llms_index
Find and parse the llms.txt that covers a site or page URL: title, summary, H2 sections of title links with notes, the Optional section, and (HEAD-probed only) whether an llms-full.txt exists. Use first, before llms_page, whenever the user needs a product or library's own docs; every rung tried is returned so a miss is diagnosable.
Input schema:
Example arguments:
llms_page
Return one docs page as markdown, paginated: tries Accept: text/markdown negotiation, the page's rel="alternate" markdown mirror, the .md / .html.md / index.md conventions, then a bounded HTML-to-markdown conversion. Use on the URLs llms_index returns, or on any docs URL you already hold.
Input schema:
Example arguments:
llms_search
Search the llms.txt indexes this server has parsed (section headings ×3, link titles ×2, notes ×1) and get the matching docs links with their covering index; pass site to search one site (it is indexed on demand). Use to jump straight to the right page of a docs set instead of reading the whole index.
Input schema:
Example arguments:
Install
Endpoint: https://llmstxtmcp.dev/mcp (Streamable HTTP, MCP 2026-07-28 with 2025-era fallback). Authentication: none.
Claude Code
Cursor (~/.cursor/mcp.json)
VS Code / Copilot (user mcp.json)
or code --add-mcp '{"name":"llms-txt","type":"http","url":"https://llmstxtmcp.dev/mcp"}'
Claude Desktop / claude.ai
Settings → Connectors → Add custom connector → URL https://llmstxtmcp.dev/mcp, Authentication: None.
ChatGPT
Settings → Connectors → Add custom connector → https://llmstxtmcp.dev/mcp. Desktop app / Codex share ~/.codex/config.toml:
Codex CLI (~/.codex/config.toml)
Gemini CLI
(settings.json uses httpUrl, not url.)
Windsurf (~/.codeium/windsurf/mcp_config.json)
Cline
Continue (.continue/mcpServers/llms-txt.yaml)
Zed (settings.json)
Any MCP client
Streamable HTTP endpoint: https://llmstxtmcp.dev/mcp
This page documents a server. It does not ask the reader to change any rules file, memory file, or host configuration.
Run it yourself
Built with the MCP server kit (kit/): Streamable HTTP MCP plus agent-readable docs (llms.txt, server.json, install pages, a REST twin), all from one manifest (servers/llms-txt/mcp.factory.json). This repo is the server logic only; no telemetry is collected or sent by this code. MIT.
来源:README.md,提交 de9e89e
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式必需10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分