Skip to content
DocsLit
New DocsLit 0.2.2: Lit ships with your site

Docs for people. And for their agents.

DocsLit is a free, open-source docs platform. Write Markdown, drop in web components and ship plain static HTML anywhere. Your AI tools get an MCP server and a JSON-first CLI, so they write pages without guessing.

Star on GitHub
  • Apache-2.0
  • No account needed
  • Self-host anywhere
  • Works offline
A DocsLit documentation site in the Peppermint theme: sidebar navigation, a warning callout, and a tabbed code block showing a webhook signature check in Node.js and Python.
A sample API site built with docslit build. The callout, code tabs and field list are plain Markdown plus wc-* tags.

DocsLit turns a folder of Markdown into a fast docs site that you own. There is no framework to maintain and no vendor to leave, and every page is as easy for an AI agent to read as it is for a person.

66
built-in web components, listed by docslit components
14
MCP tools for agents to write, check and preview pages
6×13
themes times colour palettes, all combinable
$0
to build and self-host. Apache-2.0, no account, no seat fees

The toolchain

One open-source CLI, from first page to production.

Write in Markdown

Callouts, tabs, steps, cards, code groups, file trees and API fields are wc-* tags you drop into a .md file. No imports, no JSX, no React runtime.

Browse components
## Verify the signature

<wc-callout type="warning">
Reject requests older than five minutes.
</wc-callout>

<wc-tabs>
  <wc-tab label="Node.js">...</wc-tab>
  <wc-tab label="Python">...</wc-tab>
</wc-tabs>

Check before you ship

validate checks links, assets, components and attributes. lint applies 16 quality rules. Both return JSON with stable issue codes and exit non-zero in CI.

Validation reference
check_markupreal output
← 1 warning, 0 errors
{
  "code": "missing-required-attribute",
  "line": 2,
  "tag": "wc-tab",
  "fix": "Add label=\"...\" to <wc-tab>."
}

Hand it to your agent

docslit mcp runs a local MCP server over stdio. It only reads and writes files in your project, and it works with any MCP client.

MCP server guide
  • create_page
  • update_page
  • check_markup
  • validate
  • get_component
  • list_components
  • convert_mdx
  • preview_page
  • read_page
  • list_pages
  • search_docs
  • get_schema
  • get_project_info
  • get_authoring_guide

Host it anywhere

docslit build writes plain static files: HTML and Markdown for every page, llms.txt, a search index and an agent manifest. Put the folder on any host.

Deployment guides
$ docslit build
dist/
├─ index.html
├─ guides/webhooks.html
├─ guides/webhooks.md     # for agents
├─ llms.txt
├─ llms-full.txt
├─ search-index.json
└─ .well-known/agent.json

Built for the agent era

Give your agent a docs toolchain, not a guess.

DocsLit does not call a language model. It gives yours accurate reference data and strict, machine-readable feedback. The loop is simple: look up a component, write the page, check it, fix what the checks report.

  1. 01
    Discover

    docslit components wc-tabs --json returns attributes, nesting rules and a working example.

  2. 02
    Write

    docslit new never prompts. Or the agent calls create_page over MCP.

  3. 03
    Check

    check_markup, validate and lint return JSON with issue codes, line numbers and a suggested fix.

  4. 04
    Fix and repeat

    Exit code 1 on errors makes the same loop scriptable in CI.

Connect your client
$ npx docslit agents init            # AGENTS.md + tool files
$ npx docslit mcp --print-config claude
MCP session · docslit-author 0.2.0real output
// agent → docslit mcp
tools/call check_markup
markdown: "<wc-tabs>
<wc-tab>One</wc-tab>
</wc-tabs>"

// docslit → agent
{
  "ok": true,
  "summary": { "errors": 0, "warnings": 1 },
  "issues": [{
    "level": "warning",
    "code": "missing-required-attribute",
    "message": "<wc-tab> requires the \"label\" attribute.",
    "line": 2,
    "fix": "Add label=\"...\" to <wc-tab>."
  }]
}

// agent applies the fix and checks again
tools/call check_markup
markdown: "<wc-tabs>
<wc-tab label=\"One\">First</wc-tab>
</wc-tabs>"

{ "ok": true, "summary": { "errors": 0, "warnings": 0 }, "issues": [] }
Captured from docslit mcp v0.2.0. Result trimmed: the componentsUsed field is left out.
  • One command sets up your tools

    docslit agents init writes AGENTS.md plus Claude Code, Cursor, Copilot, Windsurf and Gemini files and MCP config, without overwriting your edits.

  • Read any published site

    docslit mcp https://your-docs.example switches to reader mode: overview, page list, search and page Markdown for any DocsLit site.

  • A CLI that speaks JSON

    JSON output on the commands agents use, JSON Schemas for docslit.json and frontmatter, and stable issue codes.

Migration

Bring your docs over in one command.

docslit import detects the source, converts pages, components, snippets, links and assets, maps navigation and site config, validates the result and writes a MIGRATION.md report.

  • Mintlify
  • Fern
  • GitBook
  • MkDocs
  • Material for MkDocs
  • Zensical
  • Docusaurus
  • VitePress
  • Starlight
docslit importreal output, trimmed
$ docslit import ./my-docs --out ./my-docs-site
  DocsLit — importing from .
  Detected: Mintlify (docs.json)

  ✓ Pages converted: 3   Snippets: 0   Assets: 0

  Components converted:
    <Card>                     → wc-card                ×2
    <Tab>                      → wc-tab                 ×2
    <Accordion>                → wc-accordion           ×1
    <CardGroup>                → wc-tiles               ×1
    <CodeGroup>                → wc-code-group          ×1
    <Note>                     → wc-callout             ×1
    <ParamField>               → wc-field               ×1
    <MadeUpWidget>             → (replaced)             ×1
    …

  Config keys mapped: 3   not converted: 0

  Needs attention: 1 errors, 0 warnings, 0 notes
    ✗ quickstart.mdx:17 Component <MadeUpWidget> is not a known
      Mintlify/Fern component and has no DocsLit equivalent.

  Validation of the result: 0 errors, 0 warnings

  Next steps
    1.  cd my-docs-site
    2.  Read MIGRATION.md (everything that needs a human, with file:line and how to fix it)
    3.  docslit dev
Run on a small sample Mintlify project that includes one component with no equivalent, to show how those are reported. Paths shortened.

Nothing disappears quietly.

Anything without a DocsLit equivalent becomes a visible callout and is listed in MIGRATION.md with the file, line and how to fix it. Add --dry-run to see the full report without writing a file.

How common source components map to DocsLit
You haveYou get
<Note> !!! note :::tipwc-callout
<Tabs> === "Tab" TabItemwc-tabs
<Card> <CardGroup> grid cardswc-card, wc-tiles
<CodeGroup> ::: code-groupwc-code-group
<ParamField> <ResponseField>wc-field
::: package.Object (mkdocstrings)Python API reference
mkdocs.yml, docs.json nav and themedocslit.json

Themes

Six themes. Thirteen palettes. Same Markdown.

Pick a look with one line in docslit.json, or try them live with docslit dev --theme-picker. Every theme has light and dark modes, and every palette works with every theme.

The same webhooks page rendered in the Folio theme: a narrow reading column with serif headings.
docslit theme use folio --palette ocean

Palettes: teal, ocean, forest, slate, violet, rose, amber, graphite, mint, ink, paper, steel, iris.

Choose a theme to preview

Everything in the box

The docs features you expect, without a framework to maintain.

  • Search

    Full-text search with a prebuilt index. It keeps working in offline builds opened straight from disk.

  • Versioning and i18n

    Ship several versions side by side and translate them into locales, all set in docslit.json.

  • OpenAPI playground

    docslit openapi scaffold generates reference pages from a spec, with a live "Try it" panel.

  • Python API reference

    mkdocstrings-style ::: pkg.Obj pages rendered from a Griffe dump, with no Python at build time.

  • Math and real code

    KaTeX at build time. Code tabs, annotations and copy buttons, and imports from real source files.

  • Checks in CI

    validate and lint exit non-zero and can print GitHub annotations.

  • Hosting recipes

    docslit deploy writes setups for GitHub Pages, Netlify and Cloudflare.

  • Offline builds

    --offline inlines page data so the site opens by double-clicking index.html.

  • PDF export

    --pdf produces chapter, page and manual PDFs from the same source, using Playwright.

Open source

Free. Open source.
Yours to keep.

The CLI, the site generator, the web components, the importer and the MCP server are Apache-2.0 on GitHub. Your content is Markdown in your own repo, and the output is a folder of static files. Nothing to export when you leave, because nothing was locked in.

What you own with DocsLit, compared with proprietary hosted platforms as a category. Capabilities vary by vendor.
QuestionDocsLitProprietary hosted platform
Can you read and fork the source?Yes. Apache-2.0 on GitHub.No. Closed source by definition.
What does it cost?Nothing. No seats, no page limits, no tiers.Usually a subscription, often per seat.
Where can the docs run?Any static host, your own CDN or file://.On the vendor's platform.
What is your content stored as?Plain Markdown in your repo, with wc-* tags.Depends on the platform.
Can an agent author pages with checks?Yes. Local MCP server and JSON CLI, no account.Varies by vendor.

For everyone

Self-host for free.

Install the CLI, build your site and put it on GitHub Pages, Netlify, Cloudflare, S3 or your own server. Every feature, no account.

DocsLit Cloud · early access

Prefer we host it?

Managed hosting for sites built with the CLI: one docslit publish from CI, atomic releases, rollback and a hosted MCP endpoint.

Learn about Cloud

Questions, answered.

Is DocsLit really free?

Yes. The CLI, the site generator, the web components, the importer and the MCP server are open source under Apache-2.0. Build and host your docs anywhere at no cost beyond your own hosting.

Do I need React or MDX?

No. Pages are plain Markdown. Interactive pieces are web components you write as wc-* tags, which the browser upgrades natively. The build output is static HTML.

Do I need an account?

No. init, dev, build, validate, lint, import and mcp all run locally with no login.

Does DocsLit call an AI model?

No. DocsLit gives your own agent accurate component reference data and strict, machine-readable checks. The agent you choose does the writing.

Which AI tools does it work with?

Any MCP client can run docslit mcp. docslit agents init also writes instruction files for Claude Code, Cursor, GitHub Copilot, Windsurf and Gemini CLI, and Codex reads AGENTS.md directly.

What happens to content that does not convert during a migration?

docslit import replaces it with a visible callout and lists it in MIGRATION.md with the file, line and how to fix it. Use --dry-run to see the report without writing any files.

Where can I host the site?

Anywhere that serves static files, such as GitHub Pages, Netlify, Cloudflare or S3. docslit deploy writes hosting recipes. If you would rather not run hosting yourself, DocsLit Cloud is available in early access.

Which Node.js version do I need?

Node.js 22.22 or later.

Start in two commands.

Scaffold a project with an AGENTS.md already in it, then preview it with hot reload.

Read the quickstart