The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Fable listing page.
An MCP (Model Context Protocol) server for Anthropic Claude Fable 5 — Anthropic's most capable, most expensive model ($10 / $50 per 1M input / output tokens, ~2× Opus). Built in Rust, it exposes Fable as specialized MCP tools (plan, critique, ask) so any MCP client can use them.
Fable is not a day-to-day chat model here. This server is built for the one thing that justifies the price: using Fable to plan and critique, then handing the result to a cheaper model (Sonnet / Haiku / Opus) to execute. It works in Claude Code, Claude Desktop, Cursor, custom agents, and any other environment that supports MCP servers over stdio.
Communicates via stdio using JSON-RPC 2.0. Structurally it mirrors mcp-server-claude-chat, but is deliberately adapted to Fable's API surface and purpose-built for the plan-then-execute pattern.
Claude Code has a powerful native advisor feature (/advisor fable or the advisor tool). It lets a fast executor model (typically Sonnet or Haiku) dynamically ask Fable for guidance on hard decisions inside a single session.
This MCP server takes a complementary approach that is useful in more situations:
plan and critique use fixed, carefully written system prompts designed so the output can be passed verbatim to a cheaper model. Plans are numbered, unambiguous, include exact paths/signatures, edge cases, acceptance criteria, and out-of-scope notes. Critiques are deliberately coverage-first (report everything; filter downstream).effort levels, refusal handling (no silent fallback), long timeouts, and accurate per-call cost reporting at Fable rates.Many teams are converging on the same pattern the community discovered: use Fable narrowly for architecture, planning, and review, then execute with cheaper models. This server gives you first-class, portable tools for the "Fable parts" of that pattern.
See the "Technical details" section below for the specific Fable API differences that also required a dedicated implementation.
This server uses the Anthropic API with an API key (API credits) — the only supported, terms-compliant way to drive Claude from a third-party tool. A Claude Pro/Max subscription is not usable here. Point base_url at an Anthropic-compatible gateway if you run one.
Fable's Messages API differs from the Opus-era shape (this is why a dedicated server was needed rather than reusing a general Claude chat wrapper):
temperature / top_p / top_k are rejected with a 400. There is no temperature tool argument.effort (low / medium / high / xhigh / max), not a token budget. The raw chain of thought is never returned; ask can request a readable summary via show_reasoning.stop_reason: "refusal", surfaced with its category and explanation rather than as an answer. It is never silently retried on a different model.Every response also prints an estimated USD cost (at Fable's sticker rates), since cost-consciousness is the whole point.
| Tool | Description |
|---|---|
plan | Flagship. Turn a goal (+ optional context) into an executor-ready implementation plan: numbered steps, exact paths/signatures, edge cases, acceptance criteria, out-of-scope notes — written to be handed to a cheaper model and executed verbatim. |
critique | Coverage-first review of code, a diff, or a design. Reports every finding with severity + confidence for downstream filtering. Optional focus. |
ask | Raw one-shot query to Fable. Multi-turn history, system prompt, effort, optional reasoning summary. |
| Name | Type | Required | Description |
|---|---|---|---|
goal | string | yes | What to build or fix |
context | string | no | Relevant code, file tree, constraints, error output, prior attempts |
effort | string | no | low/medium/high/xhigh/max (default high) |
max_tokens | integer | no | Max tokens to generate (server default otherwise) |
| Name | Type | Required | Description |
|---|---|---|---|
content | string | yes | Code, diff, or design to review |
focus | string | no | Area to weight, e.g. security, concurrency |
effort | string | no | low/medium/high/xhigh/max (default high) |
max_tokens | integer | no | Max tokens to generate |
| Name | Type | Required | Description |
|---|---|---|---|
prompt | string | yes | The user message |
system_prompt | string | no | System prompt |
messages | string | no | History as a JSON array of {role, content} (roles user/assistant only) |
effort | string | no | low/medium/high/xhigh/max (default medium) |
max_tokens | integer | no | Max tokens to generate |
show_reasoning | boolean | no | Return a summary of Fable's reasoning in a [thinking] block |
The server expects a config file at ~/.config/mcp-server-fable/config.toml containing at minimum your api_key. See config.toml.example.
The server fails fast at startup if the config is missing, api_key is empty, or default_effort (if set) is invalid.
Use the full absolute path to target/release/fable in all configuration below.
Copy the block below and paste it directly to your AI coding assistant (Claude Code, Cursor, Grok, etc.). The AI will handle cloning (if needed), building, path resolution, and registration for you.
Claude Desktop or any MCP client (~/.config/Claude/claude_desktop_config.json or equivalent):
Claude Code (one-liner):
Replace the path with your actual absolute path to the release binary.
Once it's registered, an MCP client calls the tools by name — the flagship is plan.
Ask the model to use it, handing over the goal plus whatever context the executor will need:
Use the fable plan tool. goal: "Add a
--jsonflag to the CLI that prints results as JSON". context: "Rustclapapp; output currently goes throughprintln!insrc/main.rs". effort: high
Claude Code issues a tools/call for plan; Fable returns a numbered, executor-ready plan — exact paths, signatures, edge cases, acceptance criteria — which you then hand to a cheaper model (Sonnet / Haiku) to implement verbatim.
The same call without a client — a tools/call request the server reads on stdin:
plan and critique return their content followed by a token + estimated-cost footer. Here is an actual response (from a tiny ask probe) showing that footer:
Because the server only ever calls Fable, that cost line is always at Fable's $10 / $50 per-1M rates — accurate by construction, not by convention.
MIT