Get the FREE Ultimate OpenClaw Setup Guide →

fern

Model Context Protocol (MCP) server for the Fern API.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio fern-api-fern-mcp-server node <PATH_TO_PROJECT>/fern-mcp-server/dist/index.js

How to use

The Fern MCP server enables AI clients to interact with Fern's knowledge base, documentation platform, and SDK generation tools through the Model Context Protocol. Once the server is running, clients can connect and use the ask_fern_ai command to query Fern's knowledge base for contextual assistance related to Fern features, documentation topics, and SDK usage. The server acts as a bridge between your AI client and Fern's capabilities, allowing you to request information, generate SDK scaffolds, or retrieve documentation snippets within your development environment. To use it, ensure your AI client is configured to load the Fern MCP endpoint, then start asking questions such as requests for Fern documentation, how-to guides, or code examples that demonstrate Fern-related workflows.

How to install

Prerequisites:

  • Node.js (LTS) and npm installed on your machine
  • Git installed
  • A supported MCP client configured to connect to your Fern MCP server

Installation steps:

  1. Clone the repository
git clone https://github.com/your-org/fern-mcp-server.git
cd fern-mcp-server
  1. Install dependencies
npm install
  1. Start the development server locally
npm run dev:local
  1. Update your MCP client configuration to point at the Fern MCP server:
{
  "mcpServers": {
    "fern": {
      "command": "node",
      "args": ["<PATH_TO_PROJECT>/fern-mcp-server/dist/index.js"]
    }
  }
}

Replace PATH_TO_PROJECT with the local path to the fern-mcp-server project. Finally, restart your MCP client to establish the connection.

Additional notes

Tips:

  • Ensure the dist/index.js file exists after building; if you modify source, build steps may be required before running.
  • If you encounter connectivity issues, verify that the MCP client is allowed to reach the server process and that any firewalls permit the required communication.
  • The server expects a standard Node.js entrypoint at dist/index.js; if your build process outputs to a different path, update the args accordingly.
  • Use the provided example in the README to add the fern mcpServer entry to your MCP configuration file and restart your MCP client to apply changes.

Common issues:

  • Module not found errors: run npm install to ensure dependencies are installed.
  • Server not starting: check Node.js version compatibility and that there are no port conflicts with other MCP servers.

Environment variables (optional):

  • You may expose debug or log levels via environment variables in your hosting environment if supported by your MCP client or Node.js app; refer to your deployment environment documentation for specifics.

Related MCP Servers

Sponsor this space

Reach thousands of developers