{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.cyuanxv/openrouter-analytics-mcp",
  "slug": "io.github.cyuanxv.openrouter-analytics-mcp",
  "title": "OpenRouter 工作台 Local",
  "summary": "Local OpenRouter cost analytics, reports, experiments and routing presets over MCP stdio.",
  "version": "0.6.0-alpha.3",
  "serverKey": "openrouter-analytics-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.cyuanxv.openrouter-analytics-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.cyuanxv.openrouter-analytics-mcp/install.md",
  "trust": {
    "score": 89,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T20:03:16.104555372Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add openrouter-analytics-mcp -e 'OPENROUTER_MANAGEMENT_KEY=<OPENROUTER_MANAGEMENT_KEY>' -e 'OPENROUTER_WORKBENCH_DATA_DIR=<OPENROUTER_WORKBENCH_DATA_DIR>' -- npx -y @cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"openrouter-analytics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"OPENROUTER_MANAGEMENT_KEY\": \"<OPENROUTER_MANAGEMENT_KEY>\",\n        \"OPENROUTER_WORKBENCH_DATA_DIR\": \"<OPENROUTER_WORKBENCH_DATA_DIR>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"openrouter-analytics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"OPENROUTER_MANAGEMENT_KEY\": \"<OPENROUTER_MANAGEMENT_KEY>\",\n        \"OPENROUTER_WORKBENCH_DATA_DIR\": \"<OPENROUTER_WORKBENCH_DATA_DIR>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"OPENROUTER_MANAGEMENT_KEY\",\n      \"id\": \"openrouter-management-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    },\n    {\n      \"description\": \"OPENROUTER_WORKBENCH_DATA_DIR\",\n      \"id\": \"openrouter-workbench-data-dir\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"openrouter-analytics-mcp\": {\n      \"args\": [\n        \"-y\",\n        \"@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"OPENROUTER_MANAGEMENT_KEY\": \"${input:openrouter-management-key}\",\n        \"OPENROUTER_WORKBENCH_DATA_DIR\": \"${input:openrouter-workbench-data-dir}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.openrouter-analytics-mcp]\ncommand = \"npx\"\nargs = [\"-y\", \"@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3\"]\nenv = { \"OPENROUTER_MANAGEMENT_KEY\" = \"<OPENROUTER_MANAGEMENT_KEY>\", \"OPENROUTER_WORKBENCH_DATA_DIR\" = \"<OPENROUTER_WORKBENCH_DATA_DIR>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "OPENROUTER_MANAGEMENT_KEY",
      "required": true,
      "secret": true,
      "description": "Your own OpenRouter Management Key; keep it in the MCP client secret environment.",
      "help": "Your own OpenRouter Management Key; keep it in the MCP client secret environment.",
      "placeholder": "<OPENROUTER_MANAGEMENT_KEY>"
    },
    {
      "name": "OPENROUTER_WORKBENCH_DATA_DIR",
      "required": true,
      "secret": false,
      "description": "Absolute dedicated private data directory for the local SQLite database.",
      "help": "Absolute dedicated private data directory for the local SQLite database.",
      "placeholder": "<OPENROUTER_WORKBENCH_DATA_DIR>"
    }
  ],
  "expectedTools": [
    "get_account_summary",
    "get_analytics_meta",
    "query_usage",
    "analyze_cost_anomalies",
    "analyze_cost_optimization",
    "list_api_keys",
    "compare_models",
    "routerlens_status",
    "list_call_records",
    "get_call_detail",
    "investigate_spend",
    "explain_cost_anomaly",
    "generate_cost_report",
    "list_cost_reports",
    "get_cost_report",
    "claim_report_delivery",
    "record_report_delivery",
    "create_cost_experiment",
    "record_experiment_result",
    "get_cost_experiment",
    "list_cost_experiments",
    "save_model_preset",
    "list_model_presets",
    "get_model_preset",
    "preview_model_routing",
    "export_model_preset",
    "get_routing_providers",
    "search_routing_models"
  ],
  "agentSteps": [
    "Ask the user for: OPENROUTER_MANAGEMENT_KEY, OPENROUTER_WORKBENCH_DATA_DIR. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: get_account_summary, get_analytics_meta, query_usage, analyze_cost_anomalies, analyze_cost_optimization, list_api_keys, compare_models, routerlens_status, ….",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T20:03:16.104555372Z"
}
