LLM Support
Provide AI-friendly endpoints to assist large language models
Introduction
Large language models waste tokens crawling HTML, JS, and site chrome. These endpoints expose clean, text-only snapshots of your docs so agents can ingest them efficiently without scraping.
/llms.txt: a concise sitemap with titles, URLs, and summaries/llms-full.txt: a Markdown dump of every document except the API reference/llms.mdx/*: the raw MDX/Markdown content of a requested page withtext/markdown
/llms.txt
- Lists each section and page in your documentation (grouped by top-level category names)
- Includes optional one-line descriptions from frontmatter
- No boilerplate or styling, just the outline
# Docs
## API Reference
- [Get museum hours](/docs/api-reference/operations/getMuseumHours): Get upcoming museum operating hours.
- [Buy museum tickets](/docs/api-reference/tickets/buyMuseumTickets): Purchase museum tickets for general entry or special events.
## Home
- [Quickstart](/docs/quickstart): Start building awesome documentation in under 5 minutesThis file is generated at the root of your deployed site, enabling agents to discover it at https://<your-domain>/llms.txt.
/llms-full.txt
- Concatenates the raw MDX/Markdown of every page except
content/docs/api-reference/**/*to keep the payload reasonable - Preserves headings, paragraphs, code samples, and frontmatter
- Lets an LLM ingest your entire documentation corpus in a single fetch
# API Reference: Get museum hours
URL: /docs/api-reference/operations/getMuseumHours
Source: https://raw.githubusercontent.com/techwithanirudh/fumadocs-starter/refs/heads/main/content/docs/api-reference/(generated)/operations/getMuseumHours.mdx
Get upcoming museum operating hours.
...full MDX content...The route (src/app/llms-full.txt/route.ts) streams the latest content on request—no extra build step is required.
/llms.mdx/*
- Provides the raw MDX/Markdown content of a requested page
- Preserves headings, paragraphs, code samples, and frontmatter
- Returns
404for unknown slugs and setsContent-Type: text/markdown
Example: /llms.mdx/quickstart
# Home: Quickstart
URL: /docs/quickstart
Source: https://raw.githubusercontent.com/techwithanirudh/fumadocs-starter/refs/heads/main/content/docs/(index)/quickstart.mdx
Start building awesome documentation in under 5 minutes
## Setup your development environment
A minimum version of Node.js 22 is required...All three endpoints read directly from the same source used by the site, so updates to content/docs automatically flow into the LLM feeds without additional configuration.