---
name: mintlify
description: Set up, publish, maintain, and query documentation with Mintlify from https://www.mintlify.com
---

# Mintlify skill

> [llms.txt](https://www.mintlify.com/llms.txt)

Use this skill when a user asks to set up, create, edit, deploy, or query documentation with Mintlify, or references mintlify.com.

## Discover content

- Site index: https://www.mintlify.com/llms.txt
- Full corpus: https://www.mintlify.com/llms-full.txt
- Documentation index: https://www.mintlify.com/docs/llms.txt
- Any page as markdown: append `.md` to its URL (e.g. https://www.mintlify.com/pricing.md), or request it with `Accept: text/markdown`.

## Connect an agent or create a base

To connect this agent to the Mintlify admin MCP (`https://mcp.mintlify.com`), create a knowledge base for the user's team (a Mintlify base), or set up Mintlify in Claude.ai or ChatGPT, follow https://www.mintlify.com/docs/setup.md. It covers Claude Code, Codex, Cursor, other MCP clients, and hosted assistants, and it starts with the one question that decides which steps apply.

## Set up a new docs site

Run the setup from the terminal yourself. No account is needed to publish. The user only needs the browser to open a claim link, approve the CLI login, or connect GitHub.

```bash
npm i -g mint                                 # install the CLI (or mint update)
mint instructions new-site                    # current setup steps; follow them
mint status                                   # signed in with an organization? push to its connected repository instead of mint deploy
mint new <dir> --name <name> --theme <theme>  # new, empty directory; port the user's existing Markdown docs into it
mint dev --no-open                            # preview locally at localhost:3000
mint deploy --subdomain <name>                # no account: create the site, then run the Git push steps it prints
mint claim --email <email>                    # from the mint deploy directory: send the user a claim link, then mint claim --code <code>
```

Don't run `mint signup`: publish with `mint deploy`, and the user creates their account when they claim the site. Ask the user which email should own it; never invent one. Run both `mint claim` commands from the same directory as `mint deploy` (or pass `--directory`), not from the cloned hosted repository. Confirm `https://<subdomain>.mintlify.site` loads before you report the URL.

To deploy on every push from a GitHub repository, run `mint deploy --github --subdomain <name>` before claiming and commit the workflow it writes.

Moving docs from Docusaurus, GitBook, ReadMe, Fern, or another platform? Run `mint migrate` to list supported platforms, then `mint migrate --from <platform>` (e.g. `docusaurus`). For anything else, follow https://www.mintlify.com/docs/migration/manual.md.

- Agent setup guide (connect, docs site, or base): https://www.mintlify.com/docs/setup.md
- Quickstart: https://www.mintlify.com/docs/quickstart.md
- Plans and pricing: https://www.mintlify.com/pricing.md

## Work with a Mintlify docs project

Documentation is a Git repo of MDX files plus a `docs.json` config (schema: https://www.mintlify.com/docs.json). Run `mint instructions <topic>` for current guidance on a task, and `mint broken-links` and `mint validate` before committing.

## Query documentation programmatically

- Every Mintlify-hosted docs site serves `/llms.txt` and per-page `.md` variants.
- Hosted MCP servers expose docs search as tools; see https://www.mintlify.com/docs/ai/model-context-protocol.md
- To edit a Mintlify project from an agent, connect the admin MCP at `https://mcp.mintlify.com` (server name `mintlify-admin`); per-client steps are in https://www.mintlify.com/docs/setup.md

## Constraints

- `docs.json` must match the published schema; validate before committing.
- MDX pages need frontmatter with at least `title`.
- A site created with `mint deploy` expires unless someone claims it with `mint claim`.
- Preview deployments and the web editor need an account: claim the site first.
