Skip to main content
Glama

cheap-llm-mcp

日本語 | English

Claude Code の使用量を減らすための MCP サーバー。Web ページ・ファイル・画像を読む仕事や、要約・言い換えなどの簡単な仕事を、無料の LLM API(Groq / Gemini / NVIDIA)に任せて、Claude には短い結果だけを返す。

Claude Code ──(道具を呼ぶ)──> cheap-llm-mcp ──> Groq / Gemini / NVIDIA(無料枠)
            <──(短い結果だけ)──

Claude がページや画像を丸ごと読むと使用量が大きい。そこを無料のモデルに読ませ、Claude は結果だけを読んで判断する。

使用量は llm-usage-watch(デスクトップの小窓)で、Claude のプランの使用量と一緒に見られる。

道具

名前

すること

先に試す順

cheap_ask

要約・言い換え・分類・翻訳・JSON の整形

Groq → Gemini → NVIDIA(長い文章は Gemini から)

cheap_fetch_summarize

Web ページを取ってきて、知りたいことだけを、根拠の原文の引用つきで返す。Shift_JIS などの古い日本語のページも読める

Gemini → NVIDIA → Groq

cheap_image_describe

画像(ファイルか URL)に何が写っているかを返す。グラフの崩れの確認にも使える

Gemini → NVIDIA

cheap_read_file

PC のファイル(文章・Markdown・PDF・ログ・CSV など)を読ませて、知りたいことだけを引用つきで返す

Gemini → NVIDIA → Groq

  • 失敗したら(混雑・回数の上限など)、次の API・モデルに自動で移る

  • 答えの最後に [via 使った API / モデル] が付く

  • 1回ごとに usage.jsonl に記録する(Groq は返事に付いてくる上限と残り回数も)

Related MCP server: io.github.bdbais/routeai

使っているモデル(2026-12 時点)

API

モデル

無料枠(目安)

Groq

openai/gpt-oss-120b

1日1000回。とても速い。1分あたりのトークンが小さいので、長い文章は渡さない

Gemini

gemini-3.1-flash-lite、だめなら gemini-3.8-flash

1日に数百〜千回。長いページ・画像が得意

NVIDIA

nvidia/nemotron-3.5-super-vl-120b-a12b

1分あたりの回数で決まる(目安40回)。文章も画像も読める

モデルは server.mjs の PROVIDERS で変えられる。使わない API はキーを空にしておけば飛ばされる。

必要なもの

インストール

git clone https://github.com/Takuyuki-Hasegawa/cheap-llm-mcp.git
cd cheap-llm-mcp
npm install
copy .env.example .env

.env にキーを書く(使わないものは空でよい)。

GROQ_API_KEY=gsk_...
GEMINI_API_KEY=AIza...
NVIDIA_API_KEY=nvapi-...

Claude Code に登録する(どのフォルダで開いても使えるように user スコープで。パスは自分の置き場所に合わせる)。

claude mcp add cheap-llm --scope user -- node C:/path/to/cheap-llm-mcp/server.mjs
claude mcp list

cheap-llm: ... ✔ Connected と出ればよい。新しく開いた Claude Code のセッションから使える。

動作確認:npm test(4つの道具を1回ずつ呼ぶ)

使い方

ふつうに頼めば、Claude が道具の説明を読んで選ぶ。確実に使わせたいときは「cheap-llm で」と言う。

  • 「このページから、開業した年を調べて(cheap-llm で)」

  • 「この PDF の結論だけ教えて」

  • 「このグラフ、文字が重なったり切れたりしていない?」

Claude に毎回使わせたいときは、~/.claude/CLAUDE.md に書いておく。

- Web ページの読み取り・画像の説明・要約や言い換え・長い文章や PDF から探すことは、まず MCP の cheap-llm を使う
- 事実が正しいかの判断は自分でする。cheap-llm が返した引用は、必要なら元のページで確かめる

気をつけること

  • 無料枠の API は、送った内容が学習に使われることがある。 個人情報・外に出せない資料・自分の計測データなどは送らない

  • 正しさの判断は任せない。 無料のモデルは事実や数字をまちがえやすい。ページやファイルの読み取りは、返ってきた引用を元で確かめる

  • 数字の集計・計算は、AI ではなくスクリプトでやる

License

MIT

Available Tools

4 tools
cheap_askA

無料の LLM に簡単な仕事(要約・言い換え・分類・翻訳・JSON 整形など)を頼む。正しさの判断が要る仕事には使わない。無料枠の API に送るので、個人情報・外に出せない内容は送らないこと。

Inputs: task (required), text, model, provider, +1 more.

cheap_fetch_summarizeA

Web ページを取ってきて、無料の LLM に読ませ、知りたいことだけを短く返す。Claude がページ全体を読まずに済む。出典の確認など正確さが要るときは、返ってきた引用を元のページで確かめること。無料枠の API に送るので、個人情報・外に出せない内容は送らないこと。

Inputs: url (required), question (required), quote, provider, +1 more.

cheap_image_describeA

画像(ローカルのファイルか URL)に何が写っているかを、無料の LLM に答えさせる。無料枠の API に送るので、個人情報・外に出せない内容は送らないこと。

Inputs: image (required), provider, question, max_tokens.

cheap_read_fileA

PC のファイル(文章・Markdown・PDF・ログ・CSV など)を無料の LLM に読ませ、知りたいことだけを根拠の引用つきで返す。Claude がファイルを丸ごと読まずに済む。数字の集計・計算はスクリプトでやり、これには任せない。無料枠の API に送るので、個人情報・外に出せない内容は送らないこと。 自分の計測データ・未公開の資料も送らない。

Inputs: path (required), question (required), quote, provider, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool is anchored to a distinct input source: raw text (cheap_ask), URL (cheap_fetch_summarize), image (cheap_image_describe), and local file (cheap_read_file), so selection is mostly obvious. The only mild overlap is between cheap_ask and cheap_read_file/cheap_fetch_summarize, since a user could paste text instead of pointing at a file, but the descriptions clarify input type and framing.

    Naming Consistency4/5

    All four tools share a clear cheap_ prefix in snake_case, following a predictable pattern (cheap_<verb>_<noun> or cheap_<noun>_<verb>). The internal ordering varies slightly (fetch_summarize, image_describe, read_file), but this is a minor deviation and names remain easy to read and predict.

    Tool Count5/5

    Four tools is well-scoped for a narrow delegation server covering text, web, image, and file inputs, with no redundant or filler entries. Each tool earns its place and covers a distinct input type.

    Completeness4/5

    The toolset covers the core offload modes (free-form text tasks, web content, images, and local documents) and matches its stated purpose well. Minor gaps exist, such as audio/transcription or a batch/multi-input mode, but these are reasonable omissions for a lightweight server.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Lets Claude Code offload cheap, mechanical tasks to opencode's free models for codebase summaries, exploration, web research, and bulk edits, saving paid tokens.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude Code to offload small coding tasks to local Ollama machines and free or paid AI providers, choosing the cheapest available option while enforcing quotas, budgets, and Claude's final review.
      11
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables Claude to delegate web search, page reading, text drafting, and parallel multi-model image generation to cheaper helper models on any OpenAI-compatible backend. Claude stays in charge of planning and final decisions while consuming fewer of its own tokens.
      5
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables Claude Code to offload mechanical development work—tests, git operations, pull requests, summaries, project search, code review, and browser or screen control—to local Ollama models with optional free cloud fallbacks. It returns concise results to reduce token usage while keeping execution on the user's own machine.
      37
      MIT