> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> [MCP](https://modelcontextprotocol.io/introduction) simplifies how you provide tools to LLMs

## Introduction

The MCP Generator is a CLI tool that generates an MCP server based on your company's documentation & OpenAPI specification if available. It takes in your documentation and a OpenAPI spec and outputs an MCP server that can be used with any MCP client. The MCP Generator is delivered via [npm package](https://www.npmjs.com/package/mcp) and generates an MCP server that can be used with any MCP client.

Mintlify enables you to create an MCP server that allows AI tools to interact with your docs in these key scenarios:

1. **Docs Q\&A**, similar to our AI Chat. This is automatically enabled for your docs, no setup required.
2. **Real-time API querying**, if you have an OpenAPI spec, head to the `Mintlify Dashboard > Products > MCP Server` and hit the toggle to enable your OpenAPI spec.
   <Note>
     By enabling the OpenAPI toggle, you are allowing the MCP server to access
     **all** endpoints in your OpenAPI spec.
   </Note>

## Install the MCP server

<Tip>
  This page is dedicated to the Mintlify MCP Server. If you are looking for information on generating your MCP, please refer to the [MCP Generator](/advanced/mcp/generate) page.
</Tip>

## Example installation with the Mintlify MCP server

To use the Mintlify MCP server you will need an [API key](https://mintlify.com/docs/advanced/rest-api/overview#authentication) from your Mintlify account. If you don't have one, navigate to `Settings > API Keys > Chat API Key` and create a new key.

## Start the MCP server locally

<Steps>
  <Step title="Install the server through the CLI">
    Run the following command to install the server:

    ```bash theme={null}
    npx @mintlify/mcp add mintlify
    ```
  </Step>

  <Step title="Add the authentication token">
    The following response will be given after running the previous command:

    ```
    > What is the Authorization (basic token)?
    ```

    Using your API chat key, copy the authentication token and paste it into the CLI.
  </Step>

  <Step title="Start your MCP server">
    You can now run:

    ```bash theme={null}
    npm --prefix ~/.mcp/mintlify start
    ```
  </Step>
</Steps>

## Use your server with Claude

<Note>
  Download the [Claude Desktop App](https://claude.ai/download)
</Note>

Once you have the Claude Desktop App installed, follow these steps:

<Steps>
  <Step title="Navigate to the Settings > Developer" />

  <Step title="Click on Edit Config">
    Add the following to the `claude_desktop_config.json`:

    ```json theme={null}
    {
     "mcpServers": {
         "mintlify": {
             "command": "npm",
             "args": [
                 "--prefix",
                 "~/.mcp/mintlify",
                 "start"
             ]
         }
     }
    }
    ```
  </Step>

  <Step title="If you see the hammer icon, you're all set!">
    If you click on it, you should see the available MCP Tools in your server.

    <Frame>
      <img src="https://mintcdn.com/aihubmix/5MPjueL0pHVMS1sd/images/mcp-with-claude.png?fit=max&auto=format&n=5MPjueL0pHVMS1sd&q=85&s=a2ea442d0d633089f50effe25eb7cf3e" alt="Claude MCP" width="1086" height="1080" data-path="images/mcp-with-claude.png" />
    </Frame>
  </Step>
</Steps>
