Token导航 LogoToken导航

MCP Server · 运维云端

multi model MCP

一个智能模型上下文协议(MCP)服务器,根据任务需求、成本约束和性能特征自动将查询路由到最合适的AI模型。

stdio官方级别未说明来源级核验工具 5
成本优化PythonClaudeClaude DesktopVS Code

快速开始

作者 / 组织
Pakawat-Dev
提供方
Pakawat-Dev

工具数量

5

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

multi model MCP 属于运维云端类 MCP Server,公开资料标注 5 个工具,通过stdio 本地进程接入,适配 Claude Desktop、Claude、VS Code,有可以直接复制的安装命令;接入前要先准备 访问 Token。

分类

运维云端

传输方式

stdio

认证方式

访问 Token

部署方式

公开资料未说明

安装与配置

安装命令

pip install -r requirements.txt

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 对应的运行时,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 5 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

Multi-Model Orchestrator MCP Server

An intelligent Model Context Protocol (MCP) server that automatically routes queries to the most suitable AI model based on task requirements, cost constraints, and performance characteristics.

Features

  • Intelligent Routing: Automatically analyzes queries to determine task type (coding, analysis, creative writing, etc.)
  • Cost Optimization: Recommends models based on budget constraints and cost-per-token
  • Performance Tiers: Supports premium, standard, fast, and budget model tiers
  • Multi-Provider: Includes models from OpenAI, Anthropic, Google, and open-source options
  • Flexible Priorities: Optimize for cost, performance, speed, or balanced approach
  • Model Comparison: Side-by-side comparison of different models
  • Cost Estimation: Calculate estimated costs before running queries

Supported Models

Latest Generation Models (2024-2025)

ModelProviderTierCost/1K TokensStrengthsVisionFunctions
GPT-5OpenAIPremium$0.050Reasoning, coding, analysis, math, creative✅✅
Claude Opus 4.1AnthropicPremium$0.015Reasoning, analysis, creative, coding, math✅✅
Claude Sonnet 4.5AnthropicPremium$0.003Coding, reasoning, analysis, creative, chat✅✅
Gemini 2.5 ProGooglePremium$0.00375Reasoning, coding, analysis, math, creative✅✅

Previous Generation Models

ModelProviderTierCost/1K TokensStrengthsVisionFunctions
GPT-4OpenAIPremium$0.030Reasoning, coding, analysis, math❌✅
GPT-3.5 TurboOpenAIFast$0.002Chat, summarization, translation❌✅
Claude 3 OpusAnthropicPremium$0.015Reasoning, analysis, creative, coding✅❌
Claude 3 SonnetAnthropicStandard$0.003Coding, analysis, chat✅❌
Claude 3 HaikuAnthropicFast$0.00025Chat, summarization, fast responses❌❌
Gemini ProGoogleStandard$0.00125Reasoning, coding, analysis❌❌
Llama 2 70BMetaBudget$0.0008Chat, coding, summarization❌❌

Installation

  1. Install dependencies:
pip install -r requirements.txt
  1. Make the script executable:
chmod +x multi_model_orchestrator.py

Configuration

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "multi-model-orchestrator": {
      "command": "python",
      "args": [
        "/path/to/multi_model_orchestrator.py"
      ]
    }
  }
}

VS Code Configuration

Add to your MCP settings:

{
  "mcp.servers": {
    "multi-model-orchestrator": {
      "command": "python",
      "args": ["/path/to/multi_model_orchestrator.py"]
    }
  }
}

Available Tools

1. recommend_model

Get AI model recommendations based on your query and requirements.

Parameters:

  • query (required): The user query or task description
  • priority (optional): What to optimize for - "balanced", "cost", "performance", or "speed" (default: "balanced")
  • max_cost_per_1k (optional): Maximum acceptable cost per 1k tokens

Example:

{
  "query": "Write a complex Python function to optimize database queries",
  "priority": "performance"
}

Response:

{
  "analysis": {
    "task_type": "coding",
    "estimated_tokens": 150,
    "complexity": "high",
    "requires_vision": false,
    "requires_function_calling": false
  },
  "recommendation": {
    "recommended_model": "claude-3-opus",
    "provider": "Anthropic",
    "tier": "premium",
    "estimated_cost_per_1k": 0.015,
    "strengths": ["reasoning", "analysis", "creative", "coding"],
    "reason": "optimized for coding, premium tier performance",
    "alternatives": [...]
  }
}

2. compare_models

Compare multiple AI models side by side.

Parameters:

  • models (required): Array of model names to compare

Example:

{
  "models": ["gpt-4", "claude-3-opus", "claude-3-sonnet"]
}

3. analyze_task

Analyze a query without making a recommendation.

Parameters:

  • query (required): The query to analyze

Example:

{
  "query": "Translate this document from English to Spanish"
}

4. list_models_by_criteria

Filter models by specific criteria.

Parameters:

  • task_type (optional): Filter by task type
  • tier (optional): Filter by performance tier
  • max_cost (optional): Maximum cost per 1k tokens
  • requires_vision (optional): Requires vision capabilities

Example:

{
  "task_type": "coding",
  "max_cost": 0.01,
  "tier": "standard"
}

5. estimate_cost

Calculate the estimated cost for running a query.

Parameters:

  • model (required): Model name
  • input_tokens (required): Estimated input tokens
  • output_tokens (required): Estimated output tokens

Example:

{
  "model": "claude-3-sonnet",
  "input_tokens": 500,
  "output_tokens": 1000
}

Usage Examples

Example 1: Cost-Optimized Query

# Query: "Summarize this article in 3 bullet points"
# Priority: cost
# Result: claude-3-haiku (lowest cost, optimized for summarization)

Example 2: Performance-Optimized Complex Task

# Query: "Analyze this codebase and suggest architectural improvements"
# Priority: performance
# Result: gpt-4 or claude-3-opus (premium tier, strong reasoning)

Example 3: Speed-Optimized Simple Chat

# Query: "What's the weather like?"
# Priority: speed
# Result: gpt-3.5-turbo or claude-3-haiku (fast response)

Example 4: Budget Constraint

# Query: "Write a blog post about AI"
# Priority: balanced
# max_cost_per_1k: 0.005
# Result: claude-3-sonnet or gemini-pro (within budget, good quality)

Task Type Detection

The orchestrator automatically detects task types:

  • Coding: Keywords like "code", "function", "debug", "programming"
  • Analysis: Keywords like "analyze", "compare", "evaluate"
  • Creative: Keywords like "write", "story", "poem", "creative"
  • Math: Keywords like "calculate", "math", "solve"
  • Translation: Keywords like "translate", "translation"
  • Summarization: Keywords like "summarize", "summary", "brief"
  • Reasoning: Keywords like "reasoning", "logic", "explain why"
  • Chat: Default for general conversation

Resources

The server provides two resources:

  1. models://catalog - Complete model catalog with capabilities
  2. models://routing-rules - Current routing rules and logic

Customization

Adding New Models

Edit the MODELS dictionary in multi_model_orchestrator.py:

MODELS = {
    "your-model-name": ModelInfo(
        name="your-model-name",
        provider="YourProvider",
        tier=ModelTier.STANDARD,
        cost_per_1k_tokens=0.005,
        strengths=["coding", "analysis"],
        max_tokens=8192,
        supports_vision=False,
        supports_function_calling=True
    )
}

Adjusting Routing Logic

Modify the recommend_model() method to adjust scoring:

# Increase weight for task type matching
if task_type.value in model_info.strengths:
    score += 50  # Adjust this value

Architecture

┌─────────────────────────────────────────────────┐
│           MCP Client (Claude Desktop)           │
└────────────────────┬────────────────────────────┘
                     │
                     │ MCP Protocol
                     │
┌────────────────────▼────────────────────────────┐
│         Multi-Model Orchestrator Server         │
│                                                  │
│  ┌────────────────────────────────────────┐    │
│  │       Query Analysis Engine             │    │
│  │  - Task type detection                  │    │
│  │  - Complexity assessment                │    │
│  │  - Requirement extraction               │    │
│  └────────────────────────────────────────┘    │
│                                                  │
│  ┌────────────────────────────────────────┐    │
│  │       Model Recommendation Engine       │    │
│  │  - Score-based selection                │    │
│  │  - Cost optimization                    │    │
│  │  - Performance matching                 │    │
│  └────────────────────────────────────────┘    │
│                                                  │
│  ┌────────────────────────────────────────┐    │
│  │          Model Database                 │    │
│  │  - Capabilities                         │    │
│  │  - Costs                                │    │
│  │  - Performance tiers                    │    │
│  └────────────────────────────────────────┘    │
└─────────────────────────────────────────────────┘

Future Enhancements

  • [ ] Real-time cost tracking
  • [ ] Usage analytics and reporting
  • [ ] A/B testing between models
  • [ ] Custom routing rules via configuration
  • [ ] Integration with actual API providers
  • [ ] Model performance benchmarking
  • [ ] Historical query analysis
  • [ ] Rate limiting support
  • [ ] Multi-model ensemble responses

Testing

Test the server manually:

# Run the server
python multi_model_orchestrator.py

# In another terminal, test with MCP Inspector
npx @modelcontextprotocol/inspector python multi_model_orchestrator.py

Troubleshooting

Server won't start

  • Ensure Python 3.10+ is installed
  • Check that all dependencies are installed: pip install -r requirements.txt
  • Verify the script path in your configuration

No models recommended

  • Check that your query is being analyzed correctly
  • Try different priority modes
  • Verify max_cost constraints aren't too restrictive

Tool calls failing

  • Ensure proper JSON format for parameters
  • Check the MCP client logs for detailed error messages

Contributing

To extend this MCP server:

  1. Add new models to the MODELS dictionary
  2. Enhance task type detection in analyze_query()
  3. Adjust scoring logic in recommend_model()
  4. Add new tools to handle additional use cases

License

MIT License - Feel free to use and modify for your needs.

Author

Created as a demonstration of MCP server capabilities for intelligent model routing.


Note: This is a routing and recommendation tool. It does not actually call the AI model APIs. You would need to integrate with the respective provider SDKs to execute queries on the recommended models.

工具与能力

工具数量

5

资源数量

0

提示词数量

0

能力标签

AI模型路由Python本地部署成本优化性能匹配多模型管理智能推荐

支持客户端

Claude DesktopClaudeVS Code

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

看服务状态

查询容器、日志和监控指标,定位异常。

执行部署变更

在权限范围内触发发布、回滚和环境切换。

核对资源用量

汇总用量,找出闲置和超额的部分。

选择建议

值得选的地方

  • 只提供 5 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude Desktop、Claude、VS Code,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 运行环境,换机器要重新装一遍。
  • 需要自备访问 Token,没有凭据没法直接试。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到访问 Token的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
multi model MCP

MCP World · 本页

5stdio有1 个2026-05-17
Ui Tars Desktop 8a825770

MCP World

0stdio有1 个2026-05-17
Elie222 MCP

MCP World

0未说明未标注1 个2026-05-17
Arizeai Phoenix MCP

MCP World

0stdio有3 个2026-05-17
Unity MCP 87ee506e

MCP World

42HTTP有2 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

multi model MCP 怎么安装?

公开资料给出的安装命令是 pip install -r requirements.txt,运行环境为 未标注。装完后按客户端要求写进 MCP 配置,重启客户端生效。

multi model MCP 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

multi model MCP 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

multi model MCP 需要 API Key 吗?

公开资料标注的认证方式是访问 Token,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

multi model MCP 支持哪些客户端?

公开资料标注支持 Claude Desktop、Claude、VS Code;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP