Mastra llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/mastra/llms-txt)

# Mastra llms.txt

Browse Mastra documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

www.mastra.ai/llms.txt

[Raw llms.txt](https://www.mastra.ai/llms.txt) [Raw llms-full.txt](https://www.mastra.ai/llms-full.txt)

Copy Markdown [](https://www.mastra.ai/llms.txt)

llms.txt

Docs

Get Started

Models

Overview

Embeddings

Environment Variables

Gateways

Providers

Guides

Overview

Reference

Overview

Configuration

Project Structure

## What is Mastra's llms.txt?

Mastra publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Mastra offers and where to find details.

Pass

Spec

4

Sections

10

Links

49.7 KB

Size

~12.7k

Tokens

Sections: Docs · Models · Guides · Reference

## Add Mastra Docs to Your AI Assistant

Select your tool to see how to add Mastra's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://www.mastra.ai/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Mastra

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 46 notes

## Frequently Asked Questions

Where is Mastra's llms.txt file?

Mastra publishes its llms.txt at https://www.mastra.ai/llms.txt. This file provides a structured, markdown-formatted index of Mastra's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Mastra's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Mastra's documentation so it can provide better code suggestions and answers about Mastra.

What does Mastra's llms.txt contain?

Mastra's llms.txt contains 4 sections and 10 documentation links in 49.7 KB (~12.7k tokens). Key sections include Docs, Models, Guides, Reference.

How many tokens does Mastra's llms.txt use?

The concise llms.txt index is approximately 12.7k tokens (49.7 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Mastra?

The TypeScript AI agent framework. Mastra's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Mastra.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Prisma Next-generation Node.js and TypeScript ORM](https://mdream.dev/llms-txt/mastra/llms-txt/prisma) [NativeWind Tailwind CSS for React Native](https://mdream.dev/llms-txt/mastra/llms-txt/nativewind) [Turso SQLite for production](https://mdream.dev/llms-txt/mastra/llms-txt/turso) [Tiptap The headless rich text editor framework](https://mdream.dev/llms-txt/mastra/llms-txt/tiptap) [Neon Serverless Postgres](https://mdream.dev/llms-txt/mastra/llms-txt/neon) [Remotion Make videos programmatically with React](https://mdream.dev/llms-txt/mastra/llms-txt/remotion) [PlanetScale The database for developers](https://mdream.dev/llms-txt/mastra/llms-txt/planetscale) [Wagmi React Hooks for Ethereum](https://mdream.dev/llms-txt/mastra/llms-txt/wagmi)

[View all 99 projects ](https://mdream.dev/llms-txt/mastra/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/mastra/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/mastra/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)