Fern automatically generates and hosts a production-ready Model Context Protocol (MCP) server for every documentation site with Ask Fern enabled. The server connects AI clients like Claude Code, Cursor, and Windsurf to your documentation as an external data source, so developers can get instant answers about your product directly within their development environment.
Your MCP server is available at your-documentation-site.com/_mcp/server. For example, the MCP server for this site is at https://buildwithfern.com/learn/_mcp/server.
Page action buttons let users connect to your MCP server in one click:
claude mcp add command to the clipboard to register the server.Both buttons are enabled by default on sites with Ask Fern. For other clients (Claude Desktop, Windsurf, etc.), users can add your-documentation-site.com/_mcp/server to their MCP configuration.
In addition to MCP, agents can fetch documentation directly over HTTP. Fern serves clean Markdown via per-page URLs, llms.txt, and llms-full.txt — including on authenticated sites.