claude-additional-models-mcpのロゴ

claude-additional-models-mcp

コミュニティ
Arkya-AI

Reduce Claude Desktop consumption by 10x - Integrate Google's Gemini or Z.ai's GLM-5 (744B params) with Claude via MCP for intelligent task delegation

公開者Arkya-AI
リポジトリclaude-additional-models-mcp
言語JavaScript
フォーク
8
スター
46
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    claude-additional-models-mcpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには46件のスターと8件のフォークがあります。

claude-additional-models-mcp

MCP Compatible MIT License Version PRs Welcome

Break the Claude Pro wall. Offload heavy lifting to Gemini 3.x and GLM-5 via MCP while Claude orchestrates. Reduce consumption by 10x.


The Problem: The "Claude Pro Wall"

Claude Pro users paying $20/month and even those paying $ 100 per month frequently encounter a frustrating reality:

The 28% Availability Math

Most power users exhaust their weekly message limits in approximately 2 days. This leaves them blocked for the remaining 5 days of the week. You are effectively paying for a service that is unavailable 71% of the time -- $100/month for 28% availability unable to do heavy work. This creates a scarcity mindset where users hesitate to use Claude for complex tasks, fearing they will run out of limits before the week resets.

The Sonnet 4.5 Degradation

Since the release of Claude 4.6, multiple users have reported noticeable performance degradation in Sonnet 4.5. When Sonnet 4.5 is forced to handle orchestration, file I/O, and heavy code generation simultaneously, reasoning quality drops. It begins to lose track of project structure, hallucinate file paths, or forget earlier instructions mid-session.

This MCP approach specifically helps Sonnet 4.5 users by offloading heavy analysis and code generation to capable external models, letting Sonnet focus on what it does best: orchestration and file I/O. The result is superior work output from Sonnet 4.5 compared to making it do everything itself.

The Opus 4.6 Cost Barrier

Opus 4.6 remains the gold standard for intelligence, but its consumption rate is punishing -- 3-5x higher than Sonnet. On the Pro plan, using Opus for documentation reading, boilerplate generation, or routine analysis burns through your weekly allocation at an alarming rate.

By delegating heavy work to external models, you get Opus-quality orchestration and Parallel Agents with 80% to 90%+ reduction in consumption.


The Solution

claude-additional-models-mcp is a production-ready Model Context Protocol (MCP) server that integrates external AI models directly into Claude Desktop. Instead of Claude doing everything itself, it delegates heavy computational work to specialized external models and focuses on what it does best: orchestration, file management, and final synthesis.

The result:

User TypeBenefitImprovement
Sonnet 4.5Superior output quality via offloading10x consumption reduction
Opus 4.6Cost control with full capability80%+ consumption reduction
All UsersExtended Pro subscription value18-30x ROI

What's New in v2.0: Gemini Integration

While the original GLM-5 (Z.ai) integration offers a massive 744B parameter model with strong reasoning, we observed frequent interruptions and timeouts during long-running delegated tasks. Sessions would break mid-generation, forcing users to retry and wasting both time and tokens.

v2.0 introduces Google Gemini 3.x as the recommended integration:

FeatureGLM-5 (Z.ai)Gemini 3.x (Google)
StabilityOccasional interruptionsRock-solid uptime
Context WindowStandard1M tokens
Max Output4,000 tokens65,000 tokens
Free TierNoYes (generous limits)
Search GroundingVia separate APINative (google_search)
StatusOriginal (v1.0)Recommended (v2.0)

Both integrations remain fully supported. Choose based on your needs.


How It Works

The MCP Protocol

The Model Context Protocol allows Claude Desktop to discover and execute tools provided by a local server. This MCP server acts as a bridge: Claude calls a tool (e.g., ask_gemini_pro), the server forwards the request to the external model's API, and returns the result to Claude.

Claude never needs to "think through" the heavy content. It sends the task, receives the output, and writes it to disk.

Hybrid API Architecture (Gemini)

The Gemini integration uses a dual-path communication strategy for maximum capability:

  1. OpenAI-Compatible Path (generativelanguage.googleapis.com/v1beta/openai/): Used for standard chat completions -- ask_gemini and ask_gemini_pro tool calls.
  2. Native Google API Path (generativelanguage.googleapis.com/v1beta): Used for advanced features like search grounding (web_search) and URL context (web_reader). These features are not available through the OpenAI-compatible interface.

Tool Discovery

When Claude Desktop starts, it reads claude_desktop_config.json, launches the MCP server as a child process, and queries it for available tools. The tools then appear in Claude's interface alongside its built-in capabilities.


Quick Start: Gemini (Recommended)

1. Get a Google API Key

  1. Visit Google AI Studio
  2. Click "Create API Key"
  3. Copy your key -- the free tier provides generous rate limits

2. Clone and Install

bash
git clone https://github.com/Arkya-AI/claude-additional-models-mcp.git
cd claude-additional-models-mcp/gemini
npm install

3. Configure Claude Desktop

Open your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the Gemini MCP server:

json
{
  "mcpServers": {
    "gemini": {
      "command": "node",
      "args": ["/absolute/path/to/claude-additional-models-mcp/gemini/index.js"],
      "env": {
        "GOOGLE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Important: Replace /absolute/path/to/ with the actual path where you cloned the repo.

4. Restart Claude Desktop

Quit Claude Desktop completely (from the menu bar, not just closing the window) and relaunch it.

5. Verify It Works

  1. Look for the tools icon in the bottom-right of the Claude input box
  2. Ask Claude: "What tools do you have access to?" -- it should list ask_gemini, ask_gemini_pro, web_search, web_reader, and parse_document
  3. Test: "Use Gemini to explain the difference between TCP and UDP" -- you should see a tool call animation followed by the response

Quick Start: GLM-5 (Z.ai)

1. Get a Z.ai API Key

  1. Visit Z.ai and create an account
  2. Navigate to API Keys
  3. Create and copy your API key

2. Install

bash
git clone https://github.com/Arkya-AI/claude-additional-models-mcp.git
cd claude-additional-models-mcp
npm install

3. Configure Claude Desktop

json
{
  "mcpServers": {
    "glm5": {
      "command": "node",
      "args": ["/absolute/path/to/claude-additional-models-mcp/index.js"],
      "env": {
        "ZAI_API_KEY": "your-api-key-here"
      }
    }
  }
}

4. Restart and Verify

Same process as Gemini above. Tools will be named ask_glm5, ask_glm5_pro, etc.


Available Tools

Both integrations expose the same 5-tool interface. The tool names differ by prefix (ask_gemini vs ask_glm5).

Core AI Tools

ToolDescriptionKey ParametersDefault Max Tokens
ask_gemini / ask_glm5General analysis, synthesis, summarizationprompt (required), system_prompt, temperature, max_tokens8192 / 4000
ask_gemini_pro / ask_glm5_proCode generation, complex reasoning, architectureprompt (required), system_prompt, temperature, max_tokens16384 / 4000

Research and Intelligence Tools

ToolDescriptionKey Parameters
web_searchReal-time web search with groundingsearch_query (required), count (1-50), search_recency_filter, search_domain_filter
web_readerFetch and parse full web page contenturl (required), return_format (markdown/text), with_images_summary, with_links_summary
parse_documentExtract text from PDFs and images via OCRfile_url (required), return_format (markdown/text), parse_mode (auto/ocr/layout)

Usage Strategy: The 3-Tier Execution Priority

To maximize efficiency, Claude is instructed (via CLAUDE.md) to follow this execution hierarchy for every task:

Priority 1: Spawn Parallel Sub-Agents (Fastest Path)

When facing a task with multiple independent parts, Claude spawns sub-agents that each independently call the external model. This is the fastest execution path and must be preferred over sequential calls.

Example: Writing a full-stack feature -- Sub-agent A generates the backend via ask_gemini_pro, Sub-agent B generates the frontend, Sub-agent C generates the tests. All run in parallel.

Priority 2: Direct Delegation (Single-Unit Tasks)

For tasks that cannot be parallelized, Claude sends the entire prompt directly to the external model.

Example: "Analyze this codebase and explain the authentication flow" -- a single ask_gemini_pro call.

Priority 3: Claude Does It Itself (Last Resort)

Claude should only perform work internally when:

  • Orchestrating tool calls and sub-agents
  • Performing file I/O (reading/writing to disk)
  • Providing responses under 100 words
  • Applying final client-facing polish to delegated content

Orchestration Model

Claude (Parent)
    |-- Planning & coordination (stays in Claude)
    |-- File operations & disk I/O (stays in Claude)
    |-- Quick responses <100 words (stays in Claude)
    |
    |-- PRIORITY 1: Spawn parallel sub-agents (for multi-part tasks)
    |    \-- Each sub-agent uses external model for code/analysis
    |         |-- ask_[model]_pro for code generation
    |         |-- ask_[model] for analysis/docs
    |         \-- Sub-agent writes output to disk
    |
    \-- PRIORITY 2: Delegate to external model directly (for single-unit tasks)
         |-- Analysis >300 words
         |-- Code generation >50 lines
         |-- Research synthesis from multiple sources
         \-- Document processing & OCR

Sub-Agent Enforcement

The CLAUDE.md file in this repository acts as a "constitution" for all Claude sessions. It enforces that sub-agents must also delegate to the external model -- they cannot generate large content blocks themselves.

The pattern: External model generates content -> Claude/sub-agent writes output to disk.

Any sub-agent that generates >50 lines of code or >300 words of content without delegating to the external model is violating the delegation rules.


Model-Specific Strategies

Sonnet 4.5: The Orchestrator

Sonnet 4.5 excels at following complex instructions, managing project structure, and coordinating multi-step workflows. Its degradation occurs when it is forced to also do the heavy lifting.

TaskSonnet HandlesExternal Model Handles
Project structure decisionsYes--
File read/write operationsYes--
Final code integrationYes--
Code generation (>50 lines)--ask_[model]_pro
Analysis and documentation (>300 words)--ask_[model]
Web research--web_search + web_reader
Document processing--parse_document

Result: Sonnet becomes a lean orchestrator. Output quality increases because it is no longer context-overloaded.

Opus 4.6: The Architect

Opus should function as the strategic decision-maker, not the laborer.

TaskOpus HandlesExternal Model Handles
Architectural decisionsYes--
Complex multi-step coordinationYes--
Security and logic reviewYes--
Boilerplate and CRUD code--ask_[model]_pro
First drafts of any content--ask_[model]
Data processing and comparison--ask_[model]
Research and intelligence--web_search + web_reader + ask_[model]

Result: 90%+ reduction in Opus consumption. You get Opus-level orchestration at Sonnet-level cost.


Consumption Optimization Rules

Four critical rules to ensure delegation is working:

1. Never Synthesize in Claude What the External Model Can Do

  • Bad: Claude reads 5 competitor websites and writes a 2,000-word analysis
  • Good: web_search -> web_reader -> ask_gemini synthesizes -> Claude presents the result

2. Delegate All Multi-Document Analysis

  • Bad: Claude analyzes 3 PDFs and compares them
  • Good: parse_document x3 -> ask_gemini comparison -> Claude formats output

3. Use External Model for First Drafts, Claude for Polish

  • Bad: Claude generates an entire proposal section from scratch
  • Good: ask_gemini generates the content -> Claude adapts to the project voice -> writes to disk

4. Parallel Delegation When Possible

  • Parse multiple documents simultaneously
  • Read multiple web sources in parallel
  • Then aggregate with a single ask_gemini call

Expected Savings

Before vs. After: Token Consumption

Competitive Analysis Task

StepClaude-OnlyWith MCP
Research3,000 Claude tokens200 tokens (web_search)
Read sources10,000 Claude tokens1,500 tokens (web_reader)
Analysis8,000 Claude tokens6,000 tokens (ask_gemini)
Claude total21,000 tokens800 tokens
Reduction--96%

Code Generation Task

StepClaude-OnlyWith MCP
Architecture design2,000 Claude tokens300 Claude tokens (orchestration)
Implementation8,000 Claude tokens5,000 tokens (ask_gemini_pro)
Tests4,000 Claude tokens3,000 tokens (ask_gemini_pro)
Claude total14,000 tokens500 tokens
Reduction--96%

Document Analysis Task

StepClaude-OnlyWith MCP
Read PDF5,000 Claude tokens0 (parse_document)
Extract key terms3,000 Claude tokens4,000 tokens (ask_gemini)
Summary2,000 Claude tokens--
Claude total10,000 tokens300 tokens
Reduction--97%

Overall Impact

MetricBefore MCPAfter MCP
Claude Pro exhaustion~2 days14+ days
Sonnet 4.5 output qualityDegraded under loadSuperior (orchestration-only)
Opus 4.6 consumption100%<10%
Effective ROI on Pro subscription1x18-30x

Real-World Workflows

Research Pipeline

1. Claude receives: "Research the current state of edge AI deployment"
2. Claude calls web_search("edge AI deployment trends 2025", count=30)
3. Claude calls web_reader() on the top 5 URLs (parallel)
4. Claude calls ask_gemini("Synthesize these sources into a 2000-word report
   covering: key trends, major players, deployment challenges, and outlook")
5. Claude writes the report to research-output.md
6. Claude presents a 3-sentence summary to the user

Total Claude consumption: ~800 tokens (orchestration + file I/O)

Code Generation Pipeline

1. Claude receives: "Build a FastAPI backend with user auth and CRUD endpoints"
2. Claude calls ask_gemini_pro("Generate SQLAlchemy models and Pydantic schemas
   for a user authentication system with roles and permissions")
3. Claude writes models.py to disk
4. Claude calls ask_gemini_pro("Generate FastAPI CRUD routes for these models: [models]")
5. Claude writes routes.py to disk
6. Claude runs tests locally

Total Claude consumption: ~500 tokens (orchestration + file I/O)

Project Structure

claude-additional-models-mcp/
├── index.js              # GLM-5 MCP server (Z.ai 744B model)
├── package.json          # Root dependencies (@modelcontextprotocol/sdk, node-fetch)
├── gemini/
│   ├── index.js          # Gemini 3.x MCP server (hybrid API approach)
│   └── package.json      # Gemini dependencies (@modelcontextprotocol/sdk, openai)
├── CLAUDE.md             # GLM-5 delegation rules (root-level)
├── gemini/CLAUDE.md      # Gemini delegation rules
├── EXAMPLES.md           # Real-world usage examples and templates
├── CONTRIBUTING.md       # Contribution guidelines
├── LICENSE               # MIT License
├── .github/              # GitHub issue/PR templates
└── .gitignore

npm scripts:

bash
npm run start:glm5    # Start GLM-5 server
npm run start:gemini  # Start Gemini server

Troubleshooting

Tools Not Appearing in Claude Desktop

  1. Check config syntax: Validate claude_desktop_config.json with a JSON linter. A single trailing comma will break it.
  2. Verify absolute path: The path to index.js must be absolute, not relative.
  3. Full restart: Quit Claude Desktop from the menu bar (not just closing the window) and relaunch.
  4. Check server manually: Run node /path/to/gemini/index.js in a terminal. If it errors, the issue is in the server setup.

Empty Responses

  1. Verify API key: Ensure your GOOGLE_API_KEY or ZAI_API_KEY is valid and active.
  2. Increase max_tokens: Try setting max_tokens to 16384 for Gemini or 4000 for GLM-5.
  3. Lower temperature: For analytical tasks, use temperature 0.3-0.5 for more deterministic output.

Rate Limit Errors (429)

  1. Free tier limits (Gemini): 15 RPM for Flash, 5 RPM for Pro. Wait and retry.
  2. Upgrade for higher limits: Visit Google AI Studio to check your tier.
  3. GLM-5 limits: Check your Z.ai dashboard for remaining credits.

Model Not Found Errors

  1. Ensure you are using the correct environment variable names: GOOGLE_API_KEY for Gemini, ZAI_API_KEY for GLM-5.
  2. The server handles model selection internally. Do not override model names in the config.

GLM-5 Interruptions

GLM-5 can experience timeouts during peak hours or with very long prompts. If reliability is critical, switch to the Gemini integration.

High Claude Consumption Despite Delegation

Audit checklist:

  • Are you letting Claude do analysis that should go to ask_gemini?
  • Are you reading web content in Claude instead of using web_reader?
  • Are you generating code in Claude instead of ask_gemini_pro?
  • Are you processing PDFs in Claude instead of parse_document?
  • Are sub-agents generating content themselves instead of delegating?

Expected token patterns per task:

  • Research task: Claude 800-2,000 tokens
  • Code generation: Claude 500-1,000 tokens
  • Proposal writing: Claude 1,500-3,000 tokens

If Claude consumption exceeds 3,000 tokens on analytical work, delegation is not optimized.


Roadmap

  • DeepSeek-V3 integration
  • Local LLM fallback via Ollama for offline delegation
  • Streaming support for real-time tool outputs
  • Image/vision delegation support
  • Automated cost-tracking dashboard
  • Response caching for repeated queries
  • Configuration UI for managing multiple model backends
  • Pre-built prompt templates for common workflows

Contributing

Contributions are welcome! Whether it is adding a new model provider, optimizing the sub-agent delegation prompts, or improving error handling, please see CONTRIBUTING.md for guidelines.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Acknowledgments

  • Anthropic for Claude and the Model Context Protocol
  • Z.ai for GLM-5 API access
  • Google for the Gemini 3.x API and generous developer tiers
  • The MCP community for the protocol specification

Links


Built by Arkya AI to make Claude truly limitless.

インストール

TypingMind
{
  "mcpServers": {
    "claude-additional-models-mcp": {
      "command": "node",
      "args": [
        "gemini/index.js"
      ],
      "env": {
        "GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
      }
    }
  }
}

claude-additional-models-mcpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度claude-additional-models-mcpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

claude-additional-models-mcpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. claude-additional-models-mcpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "claude-additional-models-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "claude-additional-models-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてclaude-additional-models-mcpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. claude-additional-models-mcpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
claude-additional-models-mcpを使ってこのタスクを手伝ってもらえますか?
claude-additional-models-mcp
はい、読みました。
claude-additional-models-mcpで調べた結果をお伝えします。

よくある質問

claude-additional-models-mcp MCPサーバーは何に使いますか?

claude-additional-models-mcpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでclaude-additional-models-mcp MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでclaude-additional-models-mcpを利用できます。

TypingMindでclaude-additional-models-mcp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。claude-additional-models-mcpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

claude-additional-models-mcp MCPをTypingMindに接続するにはどうすればよいですか?

claude-additional-models-mcpはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでclaude-additional-models-mcp MCPのどのようなツールを利用できますか?

claude-additional-models-mcpはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

claude-additional-models-mcp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。claude-additional-models-mcpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇