Skip to Content
Fetlar
AI agents

Set up your client

Connect Fetlar to Claude Code, Claude Desktop, Cursor, Codex or any MCP client.

First install Fetlar and check that fetlar --version works.

The server command is always the same: fetlar mcp. It talks over standard input and output.

claude mcp add --scope user fetlar -- fetlar mcp

Use the full path if the client cannot find fetlar

Some clients do not inherit your shell's PATH. If you see "command not found", use the full path, for example ~/.local/bin/fetlar (where the install script puts it). which fetlar prints it.

Choose where the assistant may write

By default the assistant may write only inside the server's working directory. Set FETLAR_MCP_WRITE_ROOTS in the server entry to choose folders:

{
  "mcpServers": {
    "fetlar": {
      "command": "fetlar",
      "args": ["mcp"],
      "env": { "FETLAR_MCP_WRITE_ROOTS": "/Users/me/Documents/reports" }
    }
  }
}

Separate several folders with : (; on Windows). An empty or relative value means nothing is writable. More settings are in Environment variables.

Allow search folders

If you want the assistant to add folders to your search index, allow a folder first:

fetlar index mcp-allow ~/Documents/Contracts

Without this, index_add_folder is refused and tells the assistant how to ask you. See Safety.

Check it works

Ask the assistant: "What Fetlar tools do you have?" You should see the nine tools listed in MCP tools. Then ask it to read a small file.

You can also test the server by hand. This sends the start-up message and prints the beginning of the reply:

printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | fetlar mcp | head -c 300

On this page