{
  "name": "API Radar MCP Server",
  "version": "1.0.0",
  "description": "MCP server exposing API优选咨询 data (frontend: 38 models × 32 channels × 193 prices; backend D1: 60 models × 40 channels × 1287 prices) to any MCP-compatible client (Claude Desktop / Zed / Continue). Zero auth, CORS open, browser-only detection.",
  "author": {
    "name": "API优选咨询",
    "url": "https://apireader.top"
  },
  "license": "MIT",
  "homepage": "https://apireader.top",
  "documentation": "https://apireader.top/method.html",
  "_installation": {
    "claude_desktop": {
      "file": "~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\\Claude\\claude_desktop_config.json (Windows)",
      "config_block": {
        "mcpServers": {
          "api-radar": {
            "command": "npx",
            "args": [
              "-y",
              "@apireader/mcp-server"
            ],
            "env": {
              "APIRADAR_BASE": "https://apireader.top"
            }
          }
        }
      }
    },
    "cursor": {
      "file": "~/.cursor/mcp.json",
      "config_block": {
        "mcpServers": {
          "api-radar": {
            "command": "npx",
            "args": [
              "-y",
              "@apireader/mcp-server"
            ]
          }
        }
      }
    },
    "continue_dev": {
      "file": "~/.continue/config.json",
      "config_block": {
        "experimental": {
          "modelContextProtocolServers": [
            {
              "name": "api-radar",
              "command": "npx",
              "args": [
                "-y",
                "@apireader/mcp-server"
              ]
            }
          ]
        }
      }
    }
  },
  "server": {
    "command": "npx",
    "args": [
      "-y",
      "@apireader/mcp-server"
    ],
    "transport": "stdio",
    "endpoint_url": "https://apireader.top/mcp/stream",
    "capabilities": [
      "tools",
      "resources",
      "prompts"
    ]
  },
  "tools": [
    {
      "name": "list_models",
      "description": "列出全部 60 个模型，可按 vendor / scene / open_weight 过滤",
      "inputSchema": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "v_anthropic / v_openai / v_google / v_xai / v_deepseek ..."
          },
          "scene": {
            "type": "string",
            "enum": [
              "coding",
              "reasoning",
              "agents",
              "multimodal",
              "long_context"
            ]
          },
          "open_weight_only": {
            "type": "boolean"
          }
        }
      }
    },
    {
      "name": "get_model",
      "description": "获取单个模型详情（含官方输入/输出价、缓存价、上下文）",
      "inputSchema": {
        "type": "object",
        "required": [
          "model_id"
        ],
        "properties": {
          "model_id": {
            "type": "string",
            "example": "m_claude_sonnet_5"
          }
        }
      }
    },
    {
      "name": "list_providers",
      "description": "列出 40 个分发渠道（含官方 / 第三方 / 自部署）",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "compare_prices",
      "description": "对指定模型横向比较所有渠道价格，返回最低价方案",
      "inputSchema": {
        "type": "object",
        "required": [
          "model_id"
        ],
        "properties": {
          "model_id": {
            "type": "string"
          },
          "max_input_usd": {
            "type": "number"
          },
          "max_output_usd": {
            "type": "number"
          }
        }
      }
    },
    {
      "name": "calculate_monthly_cost",
      "description": "按月输入/输出/缓存 token 量算月成本，支持长上下文加价 + 批量折扣",
      "inputSchema": {
        "type": "object",
        "required": [
          "model_id",
          "input_m",
          "output_m"
        ],
        "properties": {
          "model_id": {
            "type": "string"
          },
          "input_m": {
            "type": "number",
            "description": "月输入 token 百万"
          },
          "output_m": {
            "type": "number",
            "description": "月输出 token 百万"
          },
          "cache_m": {
            "type": "number"
          },
          "cache_hit_ratio": {
            "type": "number",
            "default": 0.6
          },
          "ctx_tier": {
            "type": "string",
            "enum": [
              "32k",
              "128k",
              "1m",
              "10m"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "realtime",
              "batch"
            ],
            "default": "realtime"
          }
        }
      }
    },
    {
      "name": "list_events",
      "description": "列出最近 30 天价格变动 / 新模型 / 中断 / 政策事件",
      "inputSchema": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string",
            "format": "date"
          },
          "event_type": {
            "type": "string",
            "enum": [
              "price_change",
              "new_model",
              "outage",
              "capability_update",
              "policy_change"
            ]
          }
        }
      }
    },
    {
      "name": "best_for",
      "description": "场景榜首：返回最佳推理 / 最佳代码 / 最高吞吐 / 最便宜输入 / 最大上下文 5 类榜首模型",
      "inputSchema": {
        "type": "object",
        "properties": {
          "scene": {
            "type": "string",
            "enum": [
              "reasoning",
              "coding",
              "throughput",
              "cheapest_input",
              "largest_context",
              "all"
            ],
            "default": "all"
          }
        }
      }
    }
  ],
  "resources": [
    {
      "uri": "apiradar://models.json",
      "name": "All 60 models",
      "description": "完整模型数据库（JSON，含所有定价/能力字段）",
      "mimeType": "application/json"
    },
    {
      "uri": "apiradar://providers.json",
      "name": "All 40 providers/channels",
      "description": "完整渠道数据库",
      "mimeType": "application/json"
    },
    {
      "uri": "apiradar://offerings.json",
      "name": "All 1,287 price points",
      "description": "60 模型 × 40 渠道的价格矩阵",
      "mimeType": "application/json"
    }
  ],
  "prompts": [
    {
      "name": "compare_two_models",
      "description": "提示词模板：横向对比模型 A 和 B",
      "arguments": [
        {
          "name": "model_a_id",
          "required": true
        },
        {
          "name": "model_b_id",
          "required": true
        }
      ]
    },
    {
      "name": "cost_breakdown",
      "description": "提示词模板：算完月成本后给一份文字解读",
      "arguments": [
        {
          "name": "model_id",
          "required": true
        },
        {
          "name": "input_m",
          "required": true
        },
        {
          "name": "output_m",
          "required": true
        }
      ]
    }
  ],
  "x-statistics": {
    "frontend_snapshot": {
      "models": 38,
      "providers": 32,
      "offerings": 193,
      "events": 13,
      "source": "data.js (前端静态快照)"
    },
    "database": {
      "models": 60,
      "providers": 40,
      "offerings": 1287,
      "events": 13,
      "source": "D1 数据库"
    },
    "hardcore_probes": 5,
    "last_updated": "2026-09-21"
  }
}