Koskamo

OpenRouter Analytics MCP

A self-hosted, community-developed MCP server that connects to the OpenRouter API to provide local cost analytics, usage tracking, anomaly detection, and model routing presets. It allows agents to query account balances, analyze spending by model or vendor, detect cost anomalies, and save/export routing configurations without modifying the user's OpenRouter account.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

OpenRouter Analytics MCP logo, by cyuanxvCommunity listingLocal stdioSource reviewed; not executedPublished by cyuanxv
You need:账户查询需自己的 Management Key
Vendor documentation

What you can do with it

  • Query OpenRouter account balance and spending
  • Analyze usage costs by model and vendor
  • Detect and explain cost anomalies
  • Save and export model routing presets

Source and maintenance

Community listingRegistry 0.6.0-alpha.3Apache-2.0
Last repository push
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@cyuanxv/openrouter-analytics-mcp 0.6.0-alpha.3

npm
@cyuanxv/openrouter-analytics-mcp package definition
{
  "version": "0.6.0-alpha.3",
  "transport": "stdio",
  "identifier": "@cyuanxv/openrouter-analytics-mcp",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "OPENROUTER_MANAGEMENT_KEY",
      "isRequired": true,
      "description": "Your own OpenRouter Management Key; keep it in the MCP client secret environment."
    },
    {
      "name": "OPENROUTER_WORKBENCH_DATA_DIR",
      "isRequired": true,
      "description": "Absolute dedicated private data directory for the local SQLite database."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<YOUR_OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<YOUR_OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<YOUR_OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<YOUR_OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "openrouter-analytics-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<YOUR_OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<YOUR_OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "openrouter-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cyuanxv/openrouter-analytics-mcp@0.6.0-alpha.3"
      ],
      "env": {
        "OPENROUTER_MANAGEMENT_KEY": "<YOUR_OPENROUTER_MANAGEMENT_KEY>",
        "OPENROUTER_WORKBENCH_DATA_DIR": "<YOUR_OPENROUTER_WORKBENCH_DATA_DIR>"
      }
    }
  }
}

Let your agent find its tools

Find servers like OpenRouter Analytics MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.