title | description |
---|---|
Quickstart |
Generate an MCP server to help connect your product to AI apps |
Mintlify's MCP Generator is a CLI tool that generates an MCP server based on your company's documentation & OpenAPI specification (if available). The MCP Generator is delivered via npm package.
Your MCP server can then be used with any MCP client for these key scenarios:
-
Docs Q&A, similar to our AI Chat. This is automatically enabled for your docs, no setup required.
-
Real-time API querying, if you have an OpenAPI spec, head to the
By enabling the OpenAPI toggle, you are allowing the MCP server to access **all** endpoints in your OpenAPI spec.Mintlify Dashboard > Products > MCP Server
and hit the toggle to enable your OpenAPI spec.
To use the Mintlify MCP server you will need an API key from your Mintlify account. If you don't have one, navigate to Settings > API Keys > Chat API Key
and create a new key.
```bash
npx @mintlify/mcp@latest add mintlify
```
```
> What is the Authorization (basic token)?
```
Using your API chat key, copy the authentication token and paste it into the CLI.
```bash
npm --prefix ~/.mcp/mintlify start
```
Once you have the Claude Desktop App installed, follow these steps:
Add the following to the `claude_desktop_config.json`:```json
{
"mcpServers": {
"mintlify": {
"command": "npm",
"args": [
"--prefix",
"~/.mcp/mintlify",
"start"
]
}
}
}
```
<Frame>

</Frame>