llms.txt and files for AI agents
Every published docs site serves three files that AI tools and agents can read, and runs an MCP server at /mcp. There is nothing to turn on. They are served from your docs domain, including your custom domain if you have one, and they disappear if you unpublish the site.
| File | Example URL |
|------|-------------|
| llms.txt | https://yourname.docs.specway.com/llms.txt |
| openapi.json | https://yourname.docs.specway.com/openapi.json |
| mcp.json | https://yourname.docs.specway.com/mcp.json |
All three are built from the APIs published on your site, so they change when your docs change.
llms.txt
A plain-text summary of your API, written for large language models. It contains:
- Your site name and description
- For each API: its name, description and Base URL
- A list of endpoints, one per line, with the method, path and description
- A link to your
openapi.json
Point an AI assistant at this URL when you want it to understand your API quickly.
openapi.json
An OpenAPI 3 file covering every API on your site. When a site has more than one API, each API's paths are prefixed with that API's identifier so they do not collide.
mcp.json
A list of your endpoints written as MCP (Model Context Protocol) tool definitions. Each tool has a name, a description and a JSON Schema for its path, query and body parameters. Tools are named after the API and the endpoint.
mcp.json describes the tools. It does not run them: an agent still calls your API directly, using its own credentials.
The MCP server at /mcp
Every published docs site is also an MCP server, at your docs address plus /mcp (for example https://yourname.docs.specway.com/mcp). Developers add it to Claude, Claude Code or Cursor, and the assistant can list and search your endpoints, read one endpoint with its schemas and authentication, and read your guides while it writes code. Each docs site shows a Use these docs in your AI assistant panel with the address and one-step install for each client.
The server is read-only: it returns documentation and never calls your API. Endpoints you hide never reach it, and private docs need the same sign-in as the pages.
Your public docs are also searchable from the Specway API library at https://specway.com/mcp, which anyone can add to their assistant without an account.
Access from other sites
All three files can be fetched from any origin (they send Access-Control-Allow-Origin: *). They are cached for a few minutes, so a change may take a short time to show up.