Skip to main content

Turn any GraphQL schema into beautiful docs

One CLI to generate Markdown + MDX documentation for any MDX framework. Zero boilerplate.

$npm install @graphql-markdown/cli graphql
GraphQL-Markdown output: Markdown documentation generated from a GraphQL schema
Trusted by teams at
MozillaIOTABitqueryBrowserless.ioAragonSablierMONEICivicEngineepilotCoral+20 more →

How it works

1

Install

Add GraphQL-Markdown to your project with a single npm command.

2

Configure

Point it at your schema — SDL file, introspection endpoint, or GraphQL config.

3

Generate

Run the CLI and get human-readable MDX docs, ready to publish. See the guide →

Why GraphQL-Markdown?

Schema-to-docs in seconds

Supports SDL files, introspection endpoints, and GraphQL config. Type cross-linking, deprecation notices, and custom directive badges — included out of the box. Get started →

MDX

MDX output, any framework

Output is plain MDX — keep your existing theme, navigation, and search. Works with Docusaurus, Astro, Next.js, and any MDX framework. Zero framework lock-in.

Free and open-source

MIT licensed and actively maintained. Used in production by teams worldwide. If it saves you time, consider planting a tree to support the project.

Thanks to our contributors

contributors