MCP server
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.
Connect from your docs site
Page action buttons let users connect to your MCP server in one click:
- Connect to Claude Code copies a
claude mcp addcommand to the clipboard to register the server. - Connect to Cursor opens Cursor with the server URL pre-filled for one-click install.
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.
Other ways agents can access your docs
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.