> This page is for Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## Disable MCP server endpoint

ai, docs.yml

You can now fully disable the MCP server on your docs site by setting `page-actions.options.mcp: false` in `docs.yml`. When disabled, the `/_mcp/server` endpoint returns 404, the MCP URL is omitted from `llms.txt` and agent prompts, and the "Connect to Claude Code" / "Connect to Cursor" buttons are hidden.

This is particularly useful for authenticated docs sites where unauthenticated AI agents discover the endpoint but can't use it.

**`docs.yml`**

```yaml docs.yml
page-actions:
  options:
    mcp: false
```

Read the docs