Skip to main content
Glama
llms-txt-generator

llmstxtgenerator-mcp

Official

llms.txt Generator MCP 服务器 — 创建、验证与审计 llms.txt(AI 代理工具)

MCP Registry Transport Lighthouse Status License: MIT

llms.txt Generator 将网站转化为一份经过整理的 llms.txt —— 这份 Markdown 文件指引 AI 系统关注真正重要的内容。此 MCP 服务器让 Claude、ChatGPT 和 Cursor 等代理能够使用该功能:抓取域名、生成草稿、验证现有文件,并对照 Google 新的 Lighthouse Agentic Browsing 审计进行检查。免费,无需 API 密钥,无需注册。

llms.txt 是一项开放的提案llmstxt.org),并非已批准的 Web 标准。它不替代 robots.txtsitemap.xml,不是访问控制机制,也不保证排名或 AI 引用。

状态

已上线。 端点正在运行,提供全部四个工具:

curl -s https://www.llms-txt-generator.de/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

与驱动 Web 应用 的完全相同的确定性爬虫、生成器和验证器 —— 没有单独的实现。

为什么 llms.txt 现在很重要

Lighthouse 13.3(2026 年 8 月)起,Google Lighthouse 和 PageSpeed Insights 在名为 Agentic Browsing 的类别中审计 /llms.txt。该审计是一项结构检查,并非 Google 搜索排名因素,而且刻意保持极简 —— 只有三条规则:

规则

要求

hasH1

文件包含 H1 标题(# 网站名称

hasLink

至少一个真正的 Markdown 链接 —— 方括号中的链接文本,圆括号中的 URL

isTooShort

内容超过 50 个字符

有两件事最让人意外:

  1. 纯文本链接不算数。 Homepage: https://example.com 即使链接可用也会在审计中失败。这是手写文件失败的最常见原因。

  2. 完全没有文件反而通过。 缺失的 llms.txt 会被报告为不适用;只有存在但有问题的文件才会失败。发布有问题的 llms.txt 比不发布更糟糕 —— 这正是 validate_* 工具存在的原因。

何时使用此服务器

当代理需要创建、检查或修复 llms.txt 时使用:

  • "为 example.com 生成一个 llms.txt"

  • "我们发布的 llms.txt 能通过 Google 的 Agentic Browsing 审计吗?"

  • "检查这个 llms.txt 是否有损坏链接和指向外部域名的链接"

  • "为什么 PageSpeed Insights 对我们的 llms.txt 报错?"

不适用于: 爬取控制(那是 robots.txt 的职责)、URL 发现(那是 sitemap.xml 的职责)或全站 SEO 审计。

连接方式

Claude Code(一行命令):

claude mcp add --transport http llms-txt https://www.llms-txt-generator.de/api/mcp

任何带有 mcpServers 配置块的客户端(Cursor、Windsurf、VS Code 等):

{
  "mcpServers": {
    "llms-txt": {
      "type": "streamable-http",
      "url": "https://www.llms-txt-generator.de/api/mcp"
    }
  }
}

仅支持 stdio 的客户端(例如 Claude Desktop)通过本仓库中的 npm 桥接:

{
  "mcpServers": {
    "llms-txt": {
      "command": "npx",
      "args": ["-y", "llmstxtgenerator-mcp"]
    }
  }
}

ChatGPT / OpenAI: 服务器使用纯 Streamable HTTP 协议,因此可以作为连接器使用,也可在 Apps SDK 中运行 —— 与 OpenAI 自 2026 年起插件所基于的 MCP 标准相同。

工具

工具

功能

generate_llms_txt

抓取一个可注册域名的最多 15 个公开 HTML 页面,返回一份现成的 llms.txt 草稿。确定性 —— 不调用语言模型,不虚构任何事实。

validate_llms_txt

验证 llms.txt 文本:H1、摘要、章节、绝对链接、重复项、外部域名、文件大小、更新日期。返回 0–100 分,以及每个问题的严重程度和行号。

check_published_llms_txt

获取域名线上提供的 /llms.txt,检查状态和内容类型,并验证内容。

check_lighthouse_agentic_browsing

完全按照 Lighthouse 的实现方式,对照三条 llms-txt 审计规则检查文本,并报告哪一条失败。

典型流程:check_published_llms_txtgenerate_llms_txtvalidate_llms_txtcheck_lighthouse_agentic_browsing

每个响应都包含一个 note 字段,重申 Lighthouse 规则,这样基于结果进行推理的代理无需阅读本 README。

爬虫会做什么、不会做什么

  • 读取起始页面、robots.txt、站点地图,以及经过优先级排序的内部 HTML 页面选择 —— 最多 15 个页面,仅限同一可注册域名

  • 以确定性方式提取标题、描述、标题、canonical 和 JSON-LD 类型。缺失的事实保持缺失。

  • 阻止: 私有网络、内部主机名、外部重定向目标、非标准端口、带凭据的 URL、非 HTTP(S) 协议、超大响应。

  • 从输出中排除: 参数 URL、noindex 页面、重复项、错误响应、非 HTML 文件类型 —— 每项均附有原因说明。

  • 快速爬取不执行页面 JavaScript。仅客户端渲染的内容可能会缺失。

常见问题

什么是 llms.txt 一项开放提案,指位于 /llms.txt 的 Markdown 文件,为人类和机器提供网站的精选概览:网站名称用 H1,摘要用 blockquote,H2 章节包含绝对链接。参见 llmstxt.org 和我们的入门指南

llms.txt 能提升我的 Google 排名吗? 不能。Google 搜索将其视为排名信号。2026 年的变化是 Google Lighthouse 现在会审计其结构。这是两回事,任何声称相反的人都是在夸大其词。

我需要 API 密钥吗? 不需要。端点是公开的,按 IP 限流。

会涉及语言模型吗? 不会。爬虫和生成器完全确定性。描述仅来自源页面自身的元数据或可见文本。

为什么只抓取 15 个页面? 这能让免费服务保持快速和低成本运行,而且一份好的 llms.txt 是经过精选而非穷尽的。更大的网站欢迎联系我们

谁在运营这个? track by track GmbH,柏林 —— 社交媒体代理 famefact 背后的团队。

隐私政策在哪里? Datenschutzerklärung · AGB


Deutsch: llms.txt per KI-Agent erstellen, prüfen und reparieren

Der llms.txt Generator erzeugt aus einer Website eine kuratierte llms.txt — die Markdown-Datei, die KI-Systemen zeigt, welche Inhalte wirklich zählen. Dieser MCP-Server macht das für KI-Agenten nutzbar: Domain crawlen, Entwurf erzeugen, bestehende Datei validieren und gegen Googles neuen Lighthouse-Audit „Agentic Browsing" prüfen. Kostenlos, ohne API-Key, ohne Registrierung.

Status: live. Endpunkt: https://www.llms-txt-generator.de/api/mcp

claude mcp add --transport http llms-txt https://www.llms-txt-generator.de/api/mcp

Warum das gerade jetzt relevant ist

Seit Lighthouse 13.3 (August 2026) prüfen Google Lighthouse und PageSpeed Insights in der Kategorie „Agentic Browsing" auch /llms.txt. Der Audit verlangt drei Dinge: eine H1-Überschrift, mindestens einen echten Markdown-Link (Linktext in eckigen, URL in runden Klammern) und mehr als 50 Zeichen Inhalt.

Zwei Punkte überraschen die meisten:

  • Klartext-Links zählen nicht. Startseite: https://beispiel.de fällt durch, obwohl der Link funktioniert. Das ist der häufigste Grund, warum von Hand geschriebene Dateien scheitern.

  • Gar keine Datei besteht. Eine fehlende llms.txt gilt als „nicht zutreffend"; nur eine vorhandene mit Fehlern fällt durch. Eine kaputt veröffentlichte llms.txt ist schlechter als gar keine.

Der Audit ist eine Strukturprüfung, kein Rankingfaktor der Google-Suche.

Werkzeuge

Werkzeug

Funktion

generate_llms_txt

Crawlt bis zu 15 öffentliche HTML-Seiten derselben registrierbaren Domain und liefert einen fertigen llms.txt-Entwurf. Deterministisch — kein Sprachmodell, keine erfundenen Fakten.

validate_llms_txt

Prüft H1, Zusammenfassung, Abschnitte, absolute Links, Duplikate, fremde Domains, Dateigröße und Aktualisierungsdatum. Liefert 0–100 Punkte plus Befunde mit Schweregrad und Zeilennummer.

check_published_llms_txt

Ruft die live ausgelieferte /llms.txt einer Domain ab, prüft Status und Content-Type und validiert den Inhalt.

check_lighthouse_agentic_browsing

Prüft Text exakt gegen die drei Lighthouse-Regeln und benennt, welche davon fehlschlägt.

Sicherheit des Crawls

Blockiert werden private Netzwerke, interne Hostnamen, fremde Redirect-Ziele, nicht standardmäßige Ports, URLs mit Zugangsdaten und Nicht-HTTP(S)-Schemata. Ausgeschlossen werden Parameter-URLs, noindex-Seiten, Duplikate und Fehlerantworten — jeweils mit Begründung. Der Schnell-Crawl führt kein Seiten-JavaScript aus.


本仓库包含文档、发现元数据(server.json)以及 npm stdio 桥接。服务器本身由 track by track GmbH(柏林)运营(Impressum)。

许可证: MIT —— 参见 LICENSE

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • Generate 18 AI readiness files (llms.txt, ai.txt, RAG indexes, schema) for any website.

  • Scan any URL for AI agent readability — Vercel Spec, llmstxt.org, and agent-protocol manifests.

  • SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.

View all MCP Connectors

Latest Blog Posts

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/llms-txt-generator/llmstxtgenerator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server