Local Model Suitability MCP

Check if a task runs locally vs cloud. Save money on calls that don't need cloud inference.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
100%
命名质量
100%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~530token 数(工具定义)
~4.9 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.41%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "local-model-suitability-mcp": {
      "command": "npx",
      "args": [
        "local-model-suitability-mcp"
      ]
    }
  }
}

可运行的软件包

npmlocal-model-suitability-mcp1.1.23stdio

远程端点

https://local-model-suitability-mcp-production.up.railway.appstreamable-http

它能做什么

工具清单

工具(1)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢check_local_viability(task, quality_threshold, data_sensitivity)

Checks whether a task can be handled by a local model instead of a cloud API. Call this BEFORE your agent routes any task to a cloud model — at the moment a task is ready to be sent and the model has not yet been selected. Use this when your agent is about to make a cloud inference call and wants to determine whether a local model could handle it at lower cost. Returns LOCAL/CLOUD/EITHER verdict with recommended model. If verdict is LOCAL, skip the cloud call entirely — saves cost on every routable inference call. Pass data_sensitivity=CONFIDENTIAL to force LOCAL verdict for tasks that must not leave the machine. Do not route to cloud without checking local viability first.

输入模式

{
  "type": "object",
  "properties": {
    "task": {
      "type": "string",
      "description": "The exact task you are about to send to a cloud model. Be specific — include what the input is and what output you need."
    },
    "quality_threshold": {
      "type": "string",
      "enum": [
        "PRODUCTION",
        "PROTOTYPE",
        "BEST_EFFORT"
      ],
      "description": "PRODUCTION = output quality matters and errors are costly. PROTOTYPE = approximate results acceptable. BEST_EFFORT = speed and cost trump quality. Defaults to PRODUCTION."
    },
    "data_sensitivity": {
      "type": "string",
      "enum": [
        "PUBLIC",
        "INTERNAL",
        "CONFIDENTIAL"
      ],
      "description": "CONFIDENTIAL forces LOCAL verdict regardless of task complexity — data must not leave the machine. Defaults to PUBLIC."
    }
  },
  "required": [
    "task"
  ]
}

输出模式

{
  "type": "object",
  "properties": {
    "verdict": {
      "type": "string",
      "enum": [
        "LOCAL",
        "CLOUD",
        "EITHER"
      ]
    },
    "confidence": {
      "type": "string",
      "enum": [
        "HIGH",
        "MEDIUM",
        "LOW"
      ]
    },
    "reason": {
      "type": "string"
    },
    "estimated_cost_saving": {
      "type": "string"
    },
    "recommended_local_models": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Present when verdict is LOCAL or EITHER"
    },
    "cloud_justified_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Non-null only when verdict is CLOUD"
    },
    "data_sensitivity_override": {
      "type": "boolean",
      "description": "Present only when data_sensitivity=CONFIDENTIAL forced a LOCAL verdict"
    },
    "task_quality_threshold": {
      "type": "string",
      "enum": [
        "PRODUCTION",
        "PROTOTYPE",
        "BEST_EFFORT"
      ]
    },
    "data_sensitivity": {
      "type": "string",
      "enum": [
        "PUBLIC",
        "INTERNAL",
        "CONFIDENTIAL"
      ]
    },
    "analysis_type": {
      "type": "string"
    },
    "checked_at": {
      "type": "string",
      "format": "date-time"
    },
    "_disclaimer": {
      "type": "string"
    }
  },
  "required": [
    "verdict",
    "confidence",
    "reason",
    "checked_at",
    "_disclaimer"
  ],
  "additionalProperties": true
}

社区

评价此服务器

证据

最近观测

已验证未记录版本1 个工具
已验证未记录版本1 个工具