# turntax MCP server

> Measures per-turn token costs for AI agent instruction files and provides automated fixes to reduce repository context overhead.

- Repository: https://github.com/TorutDev/turntax
- Page: https://hostedmcp.org/servers/torutdev/turntax
- Transport: stdio
- Stars: 0
- License: MIT
- Latest version: 0.11.0

## Install

### Claude Code

```sh
claude mcp add turntax -- npx -y turntax
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "turntax": {
      "command": "npx",
      "args": [
        "-y",
        "turntax"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "turntax": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "turntax"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"turntax","type":"stdio","command":"npx","args":["-y","turntax"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "turntax": {
      "command": "npx",
      "args": [
        "-y",
        "turntax"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add turntax -- npx -y turntax
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.turntax]
command = "npx"
args = ["-y", "turntax"]
```

### Gemini CLI

```sh
gemini mcp add -s user turntax npx -- -y turntax
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "turntax": {
      "command": "npx",
      "args": [
        "-y",
        "turntax"
      ]
    }
  }
}
```

## FAQ

### What does turntax measure?

It measures the fixed per-turn token cost for a repository for every agent that reads instruction files like AGENTS.md and CLAUDE.md.

### How can I fix the issues found by turntax?

You can use the --fix command to see a diff of safe fixes, or use --fix --write to apply them directly to your files.
