fern
Model Context Protocol (MCP) server for the Fern API.
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:
- Clone the repository
git clone https://github.com/your-org/fern-mcp-server.git
cd fern-mcp-server
- Install dependencies
npm install
- Start the development server locally
npm run dev:local
- 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
iterm
A Model Context Protocol server that executes commands in the current iTerm session - useful for REPL and CLI assistance
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
editor
MCP Server for Phaser Editor
DoorDash
MCP server from JordanDalton/DoorDash-MCP-Server
mcp
MCP сервер для автоматического создания и развертывания приложений в Timeweb Cloud