Documentation made simple. Open source. AI-ready.
Turn a folder of MDX files into a fast, good-looking documentation site,
with AI chat and an MCP server built in. One command, no config to start.
npx doccupine
Docs · What you get · Commands · Deploy · Website · Changelog
npx doccupineDoccupine asks where your MDX files live (default docs) and where to put the generated Next.js app (default nextjs-app), then installs everything and starts a live preview at http://localhost:3000. Edit a file, and the page updates. Requires Node.js 22.12 or later.
- Live preview. Pages regenerate on every save.
- Navigation and sections. The sidebar comes from your frontmatter, and sections split the docs into tabs.
- Components. Callouts, tabs, steps, cards, code blocks, Mermaid diagrams and more, ready to use in MDX.
- API reference. Point it at an OpenAPI spec and get a page per endpoint with a live playground.
- AI chat assistant. Visitors ask questions and get answers from your docs, using OpenAI, Anthropic or Google.
- MCP server. AI tools like Claude, Cursor and VS Code can search your docs directly.
- Languages and versions. Translate your docs and keep older releases online.
- Templates and theming. Pick the modern or classic design, then add light and dark mode, your colors and fonts.
- Password protection. Gate the whole site behind a shared password.
- Built for search engines and AI. Sitemap,
robots.txt,llms.txtand a Markdown copy of every page are generated for you. - Changelogs with RSS. Publish release notes that readers can subscribe to.
doccupine # watch your docs and run the live preview (same as `doccupine watch`)
doccupine build # generate the site once, for CI or deployment
doccupine config --show # show the saved configuration
doccupine config --reset # reset the saved configurationAll options are in the Commands docs.
The generated app is a standard Next.js project, so it runs anywhere Next.js does. See Deployment & Hosting.
Prefer not to host it yourself? Doccupine builds, hosts and updates your docs site for you.
Bug reports and pull requests are welcome. See CONTRIBUTING.md, and report security issues as described in SECURITY.md.
Modified MIT license with a SaaS restriction. See LICENSE.