For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Connect from your docs site
  • Other ways agents can access your docs
AI features

MCP server

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Analytics and integration

Next

API catalog discovery

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 add command 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.