Library
Mintlify answers/5 minutes read

Do agents and MCP respect docs authentication in Mintlify?

Published November 21, 2026
HC

Harkirat Chahal

Growth

Share this article


Do agents and MCP respect docs authentication in Mintlify?
SUMMARY

Yes. On a Mintlify site with authentication, the search MCP server, llms.txt, Markdown pages, search and the assistant all follow the site's sign-in rules. On a fully authenticated site a user must sign in before connecting to the MCP server at /authed/mcp, and the server searches only the content that user's groups allow.

Yes. On a Mintlify site with authentication, the search MCP server, llms.txt, Markdown pages, search and the assistant all follow the site's sign-in rules. On a fully authenticated site a user must sign in before connecting to the MCP server at /authed/mcp, and the server searches only the content that user's groups allow.

What each agent surface exposes when gated

Each surface behaves one way under full authentication, where every page is protected, and another under partial authentication, where some pages are public.

SurfaceFully authenticated sitePartially authenticated site
Search MCP serverRequires authentication to connectAvailable without authentication for public pages, and with authentication for protected pages
llms.txt and llms-full.txtBehind authentication, so AI tools that cannot authenticate cannot access the filesPublicly accessible, listing public pages only
Markdown pages (.md URLs)Every .md URL requires authentication and respects user groups.md URLs for public pages are public. .md URLs for protected pages require authentication and respect user groups
SearchFully supported, respects user groupsFully supported, respects user groups
AssistantFully supported, respects user groupsFully supported, respects user groups

The assistant answers each signed-in user only from the pages and visibility sections that user can access. To set up the sign-in methods and groups these rules depend on, see Can Mintlify host private or gated docs? and Can Mintlify show different docs to partners, customers and internal teams?

How MCP works in a gated model

Mintlify hosts a search MCP server for every site at the /mcp path. When a site has authentication configured, Mintlify enables a second, authenticated server at /authed/mcp automatically.

  • /mcp does not require authentication and returns only public content.
  • /authed/mcp always requires authentication and returns content scoped to each user's permissions, based on their user groups.

A site with partial authentication has both endpoints. On a site where every page requires authentication, users must sign in before connecting.

Connecting takes three steps for a user:

  1. Add the MCP server URL to an AI tool.
  2. Sign in with their existing credentials.
  3. Follow the redirect back to the tool.

The /authed/mcp endpoint runs its own OAuth flow at /authed/mcp/oauth/*. Claude, ChatGPT, Cursor and Devin are always allowed to complete authentication. To let other web-based tools connect, add their redirect domains in the MCP settings of the dashboard.

How a backend agent connects without login

For server-side integrations, CI/CD pipelines and automated jobs, use MCP client credentials. You generate a client ID and client secret in the Docs MCP section of your site settings, which appears only when the site uses authentication. The agent exchanges them for an access token at /authed/mcp/oauth/token and sends that token as a bearer token to /authed/mcp.

By default, a client credential returns content from public pages and from authenticated pages that are not restricted to specific groups. To reach group-restricted pages, assign groups when you create the credential. Groups cannot be edited later, so changing them means creating a new credential and deleting the old one. Mintlify API keys are separate and cannot authenticate to the MCP server.

Mintlify rate-limits authenticated MCP traffic at 5,000 search requests and 5,000 query docs filesystem requests per hour per site.

What agents without a login can read

An agent that cannot sign in reads only what a signed-out visitor could read. Two details go beyond the table above:

  • A custom llms.txt that links to any non-public page is served only to authenticated users. Anonymous visitors get the generated file with public links only.
  • Content gated inside a page with the visibility component is removed from Markdown page views and llms-full.txt, which are the same for every reader.

Frequently Asked Questions

Does Mintlify docs auth also get respected by agents?

Yes. The Mintlify MCP server, llms.txt, Markdown pages, search and the assistant apply the same authentication and user group rules as the pages. An agent sees protected content only after a user signs in through /authed/mcp or a client credential is issued for it.

How does MCP work in a gated model?

Mintlify serves public content at /mcp and protected content at /authed/mcp. A user adds the /authed/mcp URL to an AI tool, signs in with their existing credentials, and the server returns only the pages their groups can access.

Can agents read llms.txt on a private Mintlify site?

On a fully authenticated Mintlify site, llms.txt and llms-full.txt sit behind authentication, so a tool that cannot authenticate cannot fetch them. On a partially authenticated site, both files are public and list public pages only.

Which plans include MCP on authenticated docs?

The Mintlify MCP server is on Free, Pro and Enterprise, and Mintlify enables the authenticated endpoint when the site has authentication configured. Private authentication is on every plan, password authentication is on Pro and Enterprise, and group-scoped access needs OAuth 2.0, JWT or emails authentication on Enterprise.

Can we see which user made an MCP call?

Yes. When your OAuth user info or JWT includes a sub value, Mintlify reports it as user_id on analytics events for tool calls to the authenticated MCP server.

Where to start

The search MCP server docs cover /authed/mcp and client credentials, and the feature availability table in authentication setup lists every surface. For the setup walkthrough, read how to give AI coding assistants access to your docs. Start for free, or book a demo to see group-scoped access on Enterprise.

More to read