[Home](/index.md) › [MCP servers](/mcp.md) › Fern docs MCP

# Fern docs MCP

MCP server

- 2 callable tools
- Read only
- 3 capabilities

[Installation guide](https://buildwithfern.com/learn/_mcp/server)

## Overview

Fern publishes this MCP server for its documentation site at buildwithfern.com/learn. It lets AI clients search and read Fern's documentation.

### Capabilities

- Search Fern documentation by keyword
- Read Fern documentation pages as Markdown
- Look up Fern product documentation from an AI client

## Works with

The products your agent can work with through this server.

- [Fern](/tools/fern.md): API docs and SDK generator

## Tools

The callable functions your agent uses to work with this server.

### `searchDocs`

Search the documentation at https://buildwithfern.com/learn.

### `fetchPage`

Read one page of the documentation at https://buildwithfern.com/learn as markdown.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Fern docs MCP to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http fern-docs https://buildwithfern.com/learn/_mcp/server
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Fern docs MCP to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=fern-docs&config=eyJ1cmwiOiJodHRwczovL2J1aWxkd2l0aGZlcm4uY29tL2xlYXJuL19tY3Avc2VydmVyIn0%3D)

```json
{
  "mcpServers": {
    "fern-docs": {
      "url": "https://buildwithfern.com/learn/_mcp/server"
    }
  }
}
```

### Add Fern docs MCP to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "fern-docs": {
      "type": "http",
      "url": "https://buildwithfern.com/learn/_mcp/server"
    }
  }
}
```

### Add Fern docs MCP to Codex

Run this in your terminal:

```sh
codex mcp add fern-docs --url https://buildwithfern.com/learn/_mcp/server
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.fern-docs]
url = "https://buildwithfern.com/learn/_mcp/server"
```

If the server uses OAuth, sign in with `codex mcp login fern-docs`.

### Add Fern docs MCP to Claude

Add it as a custom connector with this URL:

```
https://buildwithfern.com/learn/_mcp/server
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Fern docs MCP to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://buildwithfern.com/learn/_mcp/server
```

[Read the installation guide](https://buildwithfern.com/learn/_mcp/server)

## Related MCP servers

Other servers for the same products, or from the same vendor.

- [Fern's MCP server](/mcp/fern-s.md)

## Sources

Documentation and source code reviewed on 17 November 2026.

- [buildwithfern.com/learn/_mcp/server](https://buildwithfern.com/learn/_mcp/server)
- [buildwithfern.com/learn/docs/ai-features/mcp-server.md](https://buildwithfern.com/learn/docs/ai-features/mcp-server.md)
