Local Model Suitability MCP
Check if a task runs locally vs cloud. Save money on calls that don't need cloud inference.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"local-model-suitability-mcp": {
"command": "npx",
"args": [
"local-model-suitability-mcp"
]
}
}
}可執行的套件
1.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
}社群
證據