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.
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
- 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
{
"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.
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.
Cursor
{
"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
{
"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
{
"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
{
"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.