LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Static-analyze a public GitHub repo (owner/name) or a set of source files for LLM token waste: uncached static prompts, frontier models on extraction tasks, hot loops, non-deterministic repeat calls. Returns findings with fixes and an estimated recoverable percentage.
GitHub owner/name (public)
Alternative to repo: files to analyze
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Static-analyze a public GitHub repo (owner/name) or a set of source files for LLM token waste: uncached static prompts, frontier models on extraction tasks, hot loops, non-deterministic repeat calls. Returns findings with fixes and an estimated recoverable percentage.
| Argument | Type | Description |
|---|---|---|
| repo | string | GitHub owner/name (public) |
| files | array | Alternative to repo: files to analyze |
{
"type": "object",
"properties": {
"repo": {
"type": "string",
"description": "GitHub owner/name (public)"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"description": "Alternative to repo: files to analyze"
}
}
}Price a workload at list prices across models: cost per request and per month for the requested model, its cheaper sibling, and the effect of prompt caching. Pricing table version 2026-10-26.
| Argument | Type | Description |
|---|---|---|
| model* | string | |
| compare_to | array | |
| input_tokens* | number | |
| output_tokens* | number | |
| static_tokens | number | portion of input_tokens that is a fixed prefix (system + tools) |
| requests_per_month | number |
{
"type": "object",
"required": [
"model",
"input_tokens",
"output_tokens"
],
"properties": {
"model": {
"type": "string"
},
"compare_to": {
"type": "array",
"items": {
"type": "string"
}
},
"input_tokens": {
"type": "number"
},
"output_tokens": {
"type": "number"
},
"static_tokens": {
"type": "number",
"description": "portion of input_tokens that is a fixed prefix (system + tools)"
},
"requests_per_month": {
"type": "number"
}
}
}Rewrite an OpenAI Chat/Responses or Anthropic Messages request body so its static prefix is provider-cacheable (Anthropic cache_control breakpoints, OpenAI prompt_cache_key). Returns the optimized body, what changed, the token profile and the projected per-request saving. Never changes the tokens the model sees.
| Argument | Type | Description |
|---|---|---|
| body* | object | The request body |
| endpoint | string | |
| strategy | string |
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"description": "The request body"
},
"endpoint": {
"enum": [
"/v1/chat/completions",
"/v1/responses",
"/v1/messages"
],
"type": "string"
},
"strategy": {
"enum": [
"static",
"conversation"
],
"type": "string"
}
}
}Create a TokenZero workspace and key with no form. Returns the key once, the base URLs that route through it (OPENAI_BASE_URL / ANTHROPIC_BASE_URL), the one-click dashboard link and the badge URL. Free up to the monthly free tier; nothing is billed.
| Argument | Type | Description |
|---|---|---|
| name | string | workspace name (default mcp-agent) |
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "workspace name (default mcp-agent)"
}
}
}Live value scorecard for a TokenZero workspace: hard savings and net ROI per window, the four engines' contribution, speed, parity, availability and privacy posture, per-model breakdown and one-click recommendations. Needs the workspace key (tz_live_…); pass demo: true for a labelled sample.
| Argument | Type | Description |
|---|---|---|
| key | string | workspace key (tz_live_…) |
| demo | boolean | return the sample scorecard instead |
| window | string |
{
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "workspace key (tz_live_…)"
},
"demo": {
"type": "boolean",
"description": "return the sample scorecard instead"
},
"window": {
"enum": [
"24h",
"7d",
"30d",
"all"
],
"type": "string"
}
}
}