プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Frugal

作者:brainsparkerバージョン 0.2.0i★ 2iパソコンで動くリポジトリ ↗
レジストリ名io.github.brainsparker/frugal

インストール方法

What it does

The open routing layer for AI tools: tool calls routed per policy, decision on every result.

  • Connects パソコンで動く
  • Account or key No key needed
  • Category その他

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気6/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア18/100

品質: 基本チェック 2/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Frugal をインストールして。https://mcp.popnx.com/i/brainsparker-frugal.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 2/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月14日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Frugal を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "frugal": { "command": "npx", "args": [ "-y", "frugal-mcp", "mcp", "serve" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Frugal のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "frugal": {
          "command": "npx",
          "args": [
            "-y",
            "frugal-mcp",
            "mcp",
            "serve"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Frugal を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Frugal を使っていると言うか、回答に Frugal のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Frugal につなげません

Frugal はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Frugal につなげるアプリを使う

  • 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)
  • 先にパソコンへ Node.js を入れてください(1 回だけ)

B · その他 の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Frugal を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user frugal -- npx -y frugal-mcp mcp serve 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Frugal のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user frugal -- npx -y frugal-mcp mcp serve
  4. Claude Code で /mcp と入力

    Frugal が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Frugal を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Frugal を使っていると言うか、回答に Frugal のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Frugal を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "frugal": { "command": "npx", "args": [ "-y", "frugal-mcp", "mcp", "serve" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Frugal のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Frugal を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Frugal を使っていると言うか、回答に Frugal のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Node.js を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Frugal を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "frugal": { "type": "stdio", "command": "npx", "args": [ "-y", "frugal-mcp", "mcp", "serve" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Frugal のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. Node.js を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    node -v
    • バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です

    Node.js のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v

    一度入れれば、Node.js を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Frugal を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Frugal を使っていると言うか、回答に Frugal のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Frugal を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user frugal -- npx -y frugal-mcp mcp serve

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "frugal": {
      "command": "npx",
      "args": [
        "-y",
        "frugal-mcp",
        "mcp",
        "serve"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "frugal": {
      "command": "npx",
      "args": [
        "-y",
        "frugal-mcp",
        "mcp",
        "serve"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "frugal": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "frugal-mcp",
        "mcp",
        "serve"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

週あたりのダウンロードi
71/週
ライセンスi
ライセンスの記載なし
接続方法
パソコンで動く
最新バージョンi
0.2.0
カテゴリi
その他
レジストリ公開日i
2026年10月22日
コードの最終更新i
2026年11月6日
作者
brainsparker
パッケージ
npm: frugal-mcp
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント brainsparker で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:13 日前

  • ! 注意

    ライセンスがある

    GitHubがライセンスの種類を判別できませんでした。ファイルを開いて確認してください

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に frugal-mcp@0.2.0 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月15日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/brainsparker-frugal.svg)](https://mcp.popnx.com/en/servers/brainsparker-frugal)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

その他のほかのサーバーとの比較i

  • このカテゴリのほかの20693件のうち91%よりスターが多い
  • このカテゴリのほかの20693件のうち61%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの20693件のうち46%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Frugalは安全ですか?

当てはまる基本チェック3項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は13 日前、最新バージョン(0.2.0)がレジストリに届いたのは28 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

World Monitor

Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.

作者:koala73広く使われている★ 9.1万3 日前更新

クラウドで動く✓ 提供元 · worldmonitor.app

openstatus

Manage monitors, status pages, incidents and maintenances in your openstatus workspace.

作者:openstatusHQ広く使われている★ 92742 か月前更新

クラウドで動く✓ 提供元 · openstatus.dev

Oh My Posh Validator

Validate oh-my-posh configurations and segment snippets against the official schema.

作者:JanDeDobbeleer広く使われている★ 2.4万 リポジトリ全体のスター30 日前更新

クラウドで動く✓ 提供元 · ohmyposh.dev

Strata

MCP server for progressive tool usage at any scale (see https://klavis.ai)

作者:Klavis-AI成長中★ 582514 か月前更新

クラウドで動くリポジトリはアーカイブ済み✓ klavis.ai

Jitsu

Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.

作者:jitsucom広く使われている★ 51364 か月前更新

クラウドで動く✓ 提供元 · jitsu.com
似たものと比べる
これ
Frugal
World MonitoropenstatusOh My Posh ValidatorStrataJitsu
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえいいえいいえいいえ
基本チェック2/34/44/44/41/44/4
ライセンスNOASSERTIONAGPL-3.0AGPL-3.0MITApache-2.0MIT
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

frugal

The open routing layer for AI tools.

Frugal is an MCP server that sits between your agent and its tool providers. You describe the job — a search, an extraction, a render, or just an intent — and Frugal decides how to complete it, routing each call per policy: cheapest capable provider by default, fastest or premium when you say so, pinned or denied when compliance says so, with automatic failover when a provider errors or comes up empty. Every response carries the decision — provider_used, cost_usd, and (via frugal__execute) a one-line reason — so you can audit why each call went where it did.

Works with any model. One Go binary. Your keys. No account. Self-host everything, no lock-in. Source-available (BUSL 1.1 → Apache 2.0).

Install to first intelligently routed tool call: under five minutes.

frugal.sh

Install

curl -fsSL https://frugal.sh/install | bash

frugal mcp install

The first command drops the binary in your $PATH. The second auto-detects Claude Desktop, Cursor, AnythingLLM, and Claude Code and merges frugal into each configured MCP server list.

AnythingLLM

frugal mcp install finds AnythingLLM Desktop on its own and merges frugal into /plugins/anythingllm_mcp_servers.json. For a self-hosted or Docker AnythingLLM, point the installer at that instance's storage directory (the same path its own STORAGE_DIR uses):

ANYTHINGLLM_STORAGE_DIR=/path/to/anythingllm/storage frugal mcp install --client anythingllm

Restart AnythingLLM, then look for frugal under Agent Skills → MCP Servers. The tools load for agent sessions, so call them from an @agent chat. In Docker, the command path must resolve *inside* the container — mount the frugal binary in, or run frugal mcp serve --http on the host and register it as a streamable server instead.

Streamable HTTP and MCP 2026-07-28

frugal mcp serve --http ADDR serves Streamable HTTP for remote clients and Docker setups. It speaks the current MCP revision, 2026-07-28, which removed protocol-level sessions and the initialize handshake, as well as the session-based revisions before it. Both kinds of client connect to the same endpoint:

  • A client speaking 2026-07-28 or newer is served statelessly: no Mcp-Session-Id, every POST self-contained, server/discover answered with the supported versions and capabilities.
  • An older client (2025-11-25 and earlier) keeps its session and optional GET event stream, so nothing changes for the hosts you already run.

Pass --stateless to drop sessions for every client, which is what you want when several frugal replicas sit behind a plain load balancer: any replica can answer any request. Older clients still work in that mode; they only lose the optional GET stream (declined with 405, as the spec allows).

Catalog results (tools/list, server/discover) carry a one-hour ttlMs hint with cacheScope: public, so spec-current clients stop re-fetching the tool list on every turn. The catalog is fixed for the life of the process, so a restart with a new config is the only thing that changes it.

FRUGAL_AUTH_TOKEN=... frugal mcp serve --http 0.0.0.0:8765 --stateless

Try it now (no keys)

Search and extract work out of the box: You.com free tier (youcom-free: the same major web index as the keyed You.com provider, reached through You.com's hosted MCP endpoint with no key and no account, about 100 queries per day), Marginalia (free index of the indie / non-commercial web), Wikipedia (free Wikimedia REST search), go-readability (free, pure-Go local extractor), and Jina Reader (free hosted render for pages that paint their content with JavaScript) ship enabled with zero configuration. This is the default cheap policy at work — free and local rungs first, failover when a provider comes up empty. Captured from a live zero-key run:

frugal__search {"query": "AI agent framework comparison", "max_results": 3}

result › { "provider_used": "youcom-free", "cost_usd": 0, "latency_ms": 177, "results": [ {"title": "Top 12 AI Agent Frameworks Comparison", "url": "https://www.nimbleway.com/blog/top-ai-agent-frameworks-comparison", ...}, {"title": "AI Agent Frameworks Compared: LangGraph, CrewAI, AutoGen", "url": "https://pecollective.com/blog/ai-agent-frameworks-compared/", ...}, {"title": "Comparing Open-Source AI Agent Frameworks - Langfuse", "url": "https://langfuse.com/blog/2025-03-19-ai-agent-comparison", ...} ] }

Once the free tier's daily allowance is spent it rate-limits, the router cools it down, and the chain keeps serving from the narrower free indexes. The same query on that fallback path, also captured live:

frugal__search {"query": "AI agent framework comparison", "max_results": 3}

stderr › search zero hits; falling back provider=marginalia latency_ms=529 result › { "provider_used": "wikipedia", "cost_usd": 0, "latency_ms": 954, "results": [ {"title": "Gemini Enterprise Agent Platform", "url": "https://en.wikipedia.org/wiki/Gemini_Enterprise_Agent_Platform", ...}, {"title": "Perplexity AI", "url": "https://en.wikipedia.org/wiki/Perplexity_AI", ...}, {"title": "Agentic commerce", "url": "https://en.wikipedia.org/wiki/Agentic_commerce", ...} ] }

Honest limits: youcom-free is a general web index but is capped at roughly 100 queries a day per IP; Marginalia is genuinely good for essays, docs, blogs, and niche technical writing, and weak on mainstream news and product pages; Wikipedia covers entities and reference topics. Zero-key mode is a real workflow for research and local extraction, but it is not unlimited. One env var changes that: SEARXNG_URL (free, self-hosted), SERPER_API_KEY ($0.001/call), or YDC_API_KEY (the keyed You.com tier, no daily cap) gives the chain a stronger rung to fall to. Prefer to keep queries off You.com entirely? Add youcom-free: {enabled: false} under search_providers and the chain is Marginalia and Wikipedia again.

Routing policies

Declare per capability how the provider chain is ordered, in ~/.frugal/config/models.yaml:

routing:

search: strategy: fast # cheap (default) | fast | premium deny: [youcom] # never called — not by fallback, not even pinned extract: order: [firecrawl, goreadability] # explicit preference; unlisted providers still fall back

  • cheap (default) — effective cost ascending, quota-aware; automatic failover up the ladder.
  • fast — ordered by your machine's own observed latency (from the local usage ledger, successful calls only). Falls back to cost order until enough history exists. Not a live probe.
  • premium — prefers your premium-priced providers, list price descending.
  • order — an explicit preference list. It's a prefix, not a whitelist: unlisted providers still serve as fallback.
  • deny — providers that must never be called. Enforced on pinned calls too; this is the honest privacy knob (e.g. deny every paid provider and nothing leaves your free/local rungs).

Every call chain logs which policy ran, and frugal__execute returns it in the response.

Spend caps and rate-limit cooldown

Two guardrails cap what a provider can cost you, enforced in the routing layer alongside the policy above:

search_providers:

youcom: api_key_env: YDC_API_KEY cost_per_call: 0.005 daily_budget_usd: 2.50 # skip youcom once it has spent $2.50 today

routing: cooldown: 90s # after a 429, skip that provider for 90s (default 60s)

  • daily_budget_usd (per provider, any of the three tables) — once a provider's spend for the current UTC day reaches this cap, the router skips it and falls through to the next provider in the chain; a call that pins it by name errors. Counters reset at UTC midnight. Zero or absent means no cap. The same provider name under two capability tables gets an independent budget.
  • cooldown (top level under routing:) — when a provider returns a rate limit (HTTP 429), it is fenced off for this long so the chain stops hammering it. A Go duration string like 90s or 2m; an invalid value warns at startup and falls back to the 60s default. Applies to every provider, capped or not.

When a guardrail skips a provider it is noted in the routing trace (; budget: skipped youcom (...)) and logged at Warn. If every provider in a chain is over budget or cooling down, the call fails with a clear message rather than silently doing nothing.

Per-call deadline: call_timeout

Each provider client has its own request timeout (15–90s), but a chain that walks several slow providers could still block an agent for minutes. Every routed tool call (frugal__search, frugal__extract, frugal__browse, frugal__execute including its extract-to-browse fall-forward) therefore runs under one overall deadline, 60s by default. Each attempt gets only the budget that remains; once it runs out, failover stops (no further provider is called or paid) and the call fails with frugal: call deadline exceeded; failover stopped after N attempt(s): ..., naming every attempt's error.

limits:

call_timeout: 45s # "0s" disables the overall deadline

frugal mcp serve --call-timeout 30s overrides the config. Over --http, the shorter of this and --request-timeout (30s by default) wins.

Retries on transient errors: retries (free providers only)

Free providers (cost_per_call: 0 in your config) retry a transient error (429, 408, 5xx, timeout, connection reset) 2 times by default before failing over, with short jittered backoff (about 200ms, then 800ms). Paid providers (cost_per_call > 0: by default Serper, You.com, Brave, Firecrawl, Browserless) are never retried: a request that timed out or 5xx'd may still have been billed, so Frugal fails over to the next provider immediately instead of risking a double charge. Paid-ness comes from the configured price, so setting a provider's cost_per_call to 0 makes it retryable and vice versa.

Permanent errors (401, 402, 403, other 4xx) and errors no provider can fix are never retried. A Retry-After header is honored: the retry waits at least that long if it is 5s or less; a longer hint skips the retry and fails over instead. A retry never sleeps past the remaining call_timeout. A 429 also opens the provider's rate-limit cooldown for the configured window, extended to the Retry-After hint (capped at 10 minutes); that applies to paid and free providers alike.

limits:

retries: 1 # free providers only; 0 disables (fail over immediately); max 5

Multi-attempt receipts: attempts[] and total_cost_usd

cost_usd remains the price of the answer you got. Every successful routed result also carries attempts[] (each provider call in order, with provider, outcome = won / empty / error, error_kind, error, latency_ms, cost_usd) and total_cost_usd (their sum), so a call that failed over shows every rung it touched. A failed attempt is recorded at $0: Frugal assumes a provider does not bill a request that errored (no driver reports a charge on failure). A paid provider's zero-hit answer is billed and shows its list price. In-driver retries of one provider count as one attempt. Cache hits have no attempts.

Result size caps and the token receipt

Dollars are one cost of a tool call. The other is the tokens its result occupies in your model's context for the rest of the session, and MCP clients enforce that ceiling blind: Claude Code rejects MCP results over 25,000 tokens by default and spills anything past 50,000 characters to a file with a 2 KB preview, so a long page either fails the call or arrives cut off with nothing telling the model the tail is missing.

Frugal moves that decision server

冒頭だけを表示しています。続きはリポジトリで読めます