# io.github.lazymac2x/ai-cost-optimizer

> Cloudflare Workers MCP server: ai-cost-optimizer

- name: io.github.lazymac2x/ai-cost-optimizer
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 86/100
- quality: 79/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.lazymac2x%2Fai-cost-optimizer
- tools: https://api.protogrid.dev/v1/servers/io.github.lazymac2x%2Fai-cost-optimizer/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "ai-cost-optimizer": {
      "type": "http",
      "url": "https://api.lazy-mac.com/ai-cost-optimizer/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 97
- freshness: 65
- provenance: 80
- drivers: +repository +namespace-matches-repo +reachable +uptime-91% ~updated-157d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 79/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2024-11-05; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: cost_tracker (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); cost_forecast (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); token_calculator (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 592 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 5, about 592 tokens to load them all
- tool set hash: fff08c66f6d484b159d2fe0ef40cbd7e
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.lazymac2x/ai-cost-optimizer.svg)](https://protogrid.dev/servers/io.github.lazymac2x/ai-cost-optimizer)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://api.lazy-mac.com/ai-cost-optimizer/mcp (streamable-http, auth none, reachable true, uptime30d 0.9126214)

## Packages

_none_

## Tools (5)

- `budget_alert`: Set and check budget limits for teams. Raises a flag when a configurable spending threshold is reached.
- `cost_forecast`: Forecast future AI spend based on historical usage patterns using daily-average linear projection.
- `cost_tracker`: Record and retrieve AI API call costs by team. Persists to Cloudflare KV — survives cold starts and scale-out.
- `model_breakdown`: Analyze costs broken down by model for a given team over a configurable time window.
- `token_calculator`: Calculate cost from token counts for any supported AI model. Stateless — no KV required.
