# io.github.lazymac2x/ai-token-counter

> Cloudflare Workers MCP server: ai-token-counter

- name: io.github.lazymac2x/ai-token-counter
- version: 1.0.0
- connection class: unknown (unknown)
- trust: 65/100
- quality: 79/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.lazymac2x%2Fai-token-counter
- tools: https://api.protogrid.dev/v1/servers/io.github.lazymac2x%2Fai-token-counter/tools

**Not classified yet.** The remote endpoints have not been probed successfully, or the listing has nothing to connect to.

## Connection (mcpServers)

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


## Trust

- hygiene: 100
- liveness: 28
- freshness: 65
- provenance: 80
- drivers: +repository +namespace-matches-repo -unreachable(1 failures) ~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: count_tokens (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); estimate_cost (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_model_pricing (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 368 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: 4, about 368 tokens to load them all
- tool set hash: cce2e4728e27990de1d9c51cba8422d2
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.lazymac2x/ai-token-counter.svg)](https://protogrid.dev/servers/io.github.lazymac2x/ai-token-counter)
- 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-token-counter/mcp (streamable-http, auth none, reachable false, uptime30d 0.95689654)

## Packages

_none_

## Tools (4)

- `count_tokens`: Count tokens for a text string or chat messages array for any supported AI model (GPT-4o, Claude, Gemini, Mistral, Llama).
- `estimate_cost`: Estimate the cost of an AI API call given model and token counts or text. Returns input/output/total cost and optional monthly projection.
- `get_model_pricing`: Get input/output pricing per 1M tokens for a specific AI model.
- `list_models`: List all supported AI models with their pricing and context windows.
