Generate MCP servers from your documentation or OpenAPI specs
The Model Context Protocol (MCP) is an open protocol that connects your functions to LLMs and AI applications. With Mintlify’s integration, you can automatically generate an MCP server from your existing documentation or OpenAPI specifications, enabling seamless AI-powered interactions with your product.
MCP servers can only be generated for public documentation. Documentation behind end-user authentication cannot be accessed for server generation.
Public documentation hosted on Mintlify can be extracted as an MCP server using the following command:
Examples:
When you run the command, you’ll need to provide two API keys, External Admin Key
and Assistant API Key
.
These can be found in your dashboard under Settings > API Keys.
After authentication, you’ll choose which MCP clients to enable for your server:
Once configured, your MCP server is ready to use with the command provided in the terminal.
Now let’s take a look at how to configure your MCP server.
All MCP servers include the search
tool by default, allowing users to query information across your entire documentation.
If you have an OpenAPI specification, you can expose specific endpoints as MCP tools by using the x-mcp
extension at either the file or endpoint level.
Enable MCP for all endpoints in a specification file:
Enable MCP for specific endpoints only:
If your OpenAPI spec defines authentication using securitySchemes
, these authentication methods will be automatically applied to your MCP server.
After publishing your changes, you can view all available MCP tools in the Available Tools section on the MCP server page in your dashboard.
Your users can install and use your MCP server with:
This provides them with a ready-to-use MCP server that connects your documented functions to AI applications.