Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.37 KB

generate.mdx

File metadata and controls

39 lines (31 loc) · 1.37 KB
title description
MCP Generator
Learn how to set up an MCP Server for your docs
This page to learn how to set up an MCP Server for your own documentation. If you are looking for information on using the Mintlify MCP Server, please refer to the [Installing and using the Mintlify MCP Server](/advanced/mcp/quickstart) page.

Get started

Run npm i @mintlify/mcp to install the @mintlify/mcp CLI.

In the dashboard, navigate to MCP Serverto see your unique installation command. This is the command to install your MCP Server with the @mintlify/mcp CLI.

Make sure to toggle OpenAPI access to allow the MCP server to access **all** endpoints in your OpenAPI spec.

Start the MCP server locally

Run the following command to install the server:
```bash
npx @mintlify/mcp add [your subdomain]
```
If your API requires an authentication token, tell your end-customer to get it and apply it when given this response: `> What is the Authorization (basic token)?` Otherwise, you can skip this step. You can now run: `bash npm --prefix ~/.mcp/[your subdomain] start `