# llms.txt generator

> Read a public sitemap and write an llms.txt index, plus an optional llms-full.txt.

Generate a spec-compliant llms.txt and an optional llms-full.txt from a public sitemap, with an editable preview.

- Page: https://benchline.fabwaseem.com/t/llms-txt-generator
- Runs: in the browser, plus one server fetch of the public URL you give it.
- Price: free, no account
- Input: A public site URL, or up to 30 page URLs pasted by hand.
- Output: An editable llms.txt index and an llms-full.txt file with short excerpts.
- Keywords: llms.txt, llms.txt generator, llms-full.txt, llmstxt, AI crawlers
- Updated: 2026-10-16
- Built by: Waseem Anjum (https://fabwaseem.com)

## How to use it

1. **Enter a site or paste URLs.** Submit one public site URL, or switch to manual mode and paste up to 30 page URLs.
2. **Read the sitemap.** The server fetches robots.txt and sitemap.xml, including Sitemap entries in robots.txt. If those are missing, it collects links from the homepage.
3. **Review and download.** Titles and meta descriptions are grouped into sections. Edit the preview, then copy or download llms.txt and the optional llms-full.txt.

## Use it from an AI agent

MCP tool name: `generate_llms_txt`
MCP endpoint: https://benchline.fabwaseem.com/mcp (Streamable HTTP, no key)
HTTP: POST https://benchline.fabwaseem.com/api/v1/tools/llms-txt-generator with the input as the JSON body
This call does not fetch anything. It runs on the arguments you send.

Render llms.txt and llms-full.txt from a site name, a summary, and a list of pages. It does not crawl. Grouping follows the page URLs.

### Input schema

```json
{
  "type": "object",
  "properties": {
    "siteName": {
      "type": "string",
      "minLength": 1
    },
    "summary": {
      "type": "string",
      "minLength": 1
    },
    "pages": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "default": "",
            "type": "string"
          },
          "excerpt": {
            "default": "",
            "type": "string"
          }
        },
        "required": [
          "url",
          "title",
          "description",
          "excerpt"
        ],
        "additionalProperties": false
      },
      "description": "Pages you already know. This tool does not fetch them."
    }
  },
  "required": [
    "siteName",
    "summary",
    "pages"
  ],
  "additionalProperties": false
}
```

### Example tools/call

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_llms_txt",
    "arguments": {
      "siteName": "example",
      "summary": "example",
      "pages": [
        {
          "url": "https://example.com/file",
          "title": "example",
          "description": "",
          "excerpt": ""
        }
      ]
    }
  }
}
```

Setup for Claude, Cursor, and VS Code: https://benchline.fabwaseem.com/mcp/guide

## Questions

### What is llms.txt?

llms.txt is a markdown file, usually at /llms.txt, that gives agents a short index of a site. The format at llmstxt.org asks for an H1, a blockquote summary, then H2 sections of markdown links. An Optional section holds links an agent can skip.

### What is llms-full.txt?

llms-full.txt is an expanded companion. This generator fills it with the same pages plus a short plain-text excerpt of each one. The short index stays in llms.txt.

### How are the sections chosen?

Pages are grouped from the URL path: docs, blog, API, product, and about each get a section. Privacy, terms, and account pages go under Optional, which the spec treats as secondary.

### Can I edit the file before downloading it?

Yes. The preview is a text area. Change the copy, then copy it or download llms.txt and llms-full.txt.

### Which pages get left out?

Only public http and https URLs are fetched. Private, loopback, and link-local addresses are refused. The generator keeps at most 30 pages, and it skips files that are not HTML pages.

## Related tools

- [AI SEO checker](https://benchline.fabwaseem.com/t/ai-seo-checker): Score crawler access, llms.txt, structured data, and the on-page signals AI search uses.
- [robots.txt checker](https://benchline.fabwaseem.com/t/robots-txt-checker): Read allow and disallow rules, sitemap links, and the mistakes that make a robots.txt file lie.
- [OG image generator](https://benchline.fabwaseem.com/t/og-image-generator): Pick a template, watch the card update, then download the PNG or copy the Next.js file.
- [JSON-LD schema generator](https://benchline.fabwaseem.com/t/schema-generator): Fill a form, get valid schema.org JSON-LD for Article, FAQ, Product, Organization, and more.
