OP

OpenRouter 工作台 Local MCP Server

Published by cyuanxv

Local OpenRouter cost analytics, reports, experiments and routing presets over MCP stdio.

Website
CATEGORY
More to explore
DEPLOYMENT
Local package
LATEST SOURCE VERSION
0.6.0-alpha.3
SOURCE CHECKED
Dec 1, 2026

Quick answers

How do I add OpenRouter 工作台 Local MCP Server to Claude Code, Cursor or Codex?

Claude CodeCommand

Run this in your terminal:

claude mcp add --env 'OPENROUTER_MANAGEMENT_KEY=<your-openrouter-management-key>' --env 'OPENROUTER_WORKBENCH_DATA_DIR=<your-openrouter-workbench-data-dir>' --transport stdio openrouter-local -- npx -y @cyuanxv/openrouter-analytics-mcp

Replace the <your-…> placeholder with your own OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR.

Claude Code setup guide
CursorConfig

Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "openrouter-local": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<your-openrouter-management-key>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<your-openrouter-workbench-data-dir>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR.

Cursor setup guide
CodexCommand

Run this in your terminal:

codex mcp add openrouter-local --env 'OPENROUTER_MANAGEMENT_KEY=<your-openrouter-management-key>' --env 'OPENROUTER_WORKBENCH_DATA_DIR=<your-openrouter-workbench-data-dir>' -- npx -y @cyuanxv/openrouter-analytics-mcp

Replace the <your-…> placeholder with your own OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR.

Codex setup guide
VS CodeConfig

Add this to .mcp.json at the root of your workspace:

{
  "mcpServers": {
    "openrouter-local": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<your-openrouter-management-key>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<your-openrouter-workbench-data-dir>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR.

VS Code setup guide
Claude DesktopConfig

Add this to claude_desktop_config.json, then restart Claude:

{
  "mcpServers": {
    "openrouter-local": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<your-openrouter-management-key>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<your-openrouter-workbench-data-dir>"
      }
    }
  }
}

Replace the <your-…> placeholder with your own OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR.

Claude Desktop setup guide
ChatGPTNot available

ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.

ChatGPT setup guide

Which apps can use OpenRouter 工作台 Local MCP Server?

Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.

Does OpenRouter 工作台 Local MCP Server need an API key?

To run it on your computer, set OPENROUTER_MANAGEMENT_KEY and OPENROUTER_WORKBENCH_DATA_DIR first, with values from the publisher.

Is OpenRouter 工作台 Local MCP Server official?

It's published by cyuanxv. The Official MCP Registry accepts names under io.github.cyuanxv only from the GitHub account or organisation cyuanxv. We last checked its listing on Dec 1, 2026. A listing shows where a server comes from; it isn't a security review.

Published packages

npm · @cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3
View source repository