# ATR: Automation for Token Reduction

> ATR: Automation for Token Reduction is a free MCP server for ai models and llm tooling. MCP proxy that hides tool lists and shrinks tool results to cut token use. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, API, macOS, Linux, Windows
- **Repository:** https://github.com/jacobbhatt12/atr
- **MCP Registry name:** io.github.JacobBhatt12/atr
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

ATR addresses two sources of wasted tokens: every tool's instructions being sent on each message, and huge tool results such as a list of issues or a test run. It sits between your AI app and your MCP servers, shows the model a few small ATR tools, and lets it search for the tool it needs on demand. Results are trimmed before the model sees them, a failing test run keeps the failures, and the full result is stored so the model can ask for any part.

The README reports its own benchmarks: 1,000 GitHub issues dropped from 429,203 to 879 tokens, and in a browser task Claude Code cost $0.110 per task against $0.237 without it. Codex was mixed, sending fewer full-price tokens but more overall. It says ATR helps little for plain coding without MCP servers.

Install with pip install atr-mcp (Python 3.11 or newer) and run atr setup, which shows its plan, asks first and backs up every file it changes. A hosted connector at https://atr-mcp.vercel.app/mcp adds web search, fetch, places and weather tools without installing anything.

## Features

- **Hidden tool list:** The model sees a few ATR tools and searches for the right tool only when needed.
- **Result shrinking:** Removes noise such as passing tests and page layout while keeping errors, text and links.
- **Full results kept:** atr_query retrieves any part of a result that was cut.
- **Read and write split:** Read-only tools go through atr_read; anything that changes data goes through atr_call so your app can ask first.
- **Hosted web tools:** Free connector with fetch, multi-engine search, places, site inspection and weather, no API keys.
- **Coding tools:** Repo map, code search, partial file reads, compact diffs and shell runs with trimmed output.
- **Reversible setup:** atr setup --undo restores every app, and a dry run shows the plan.

## Good for

- Cut the cost of many MCP servers in Claude Code
- Keep huge GitHub issue lists out of the context window
- Trim long test or build logs to the failures
- Give claude.ai a compact web search and fetch connector
- Measure token savings with atr_stats

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add atr -- uvx atr-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "atr": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add atr -- uvx atr-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.atr]
command = "uvx"
args = ["atr-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user atr uvx -- atr-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "atr": {
      "command": "uvx",
      "args": [
        "atr-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 15 tools changes data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `atr_fetch` (name suggests: reads): Reads live web pages, PDFs, Office documents and JSON as compact text.
- `atr_search` (name suggests: reads): Searches DuckDuckGo, Bing and Brave at once and returns one merged list.
- `atr_places`: Finds local places using OpenStreetMap data.
- `atr_site`: Inspects a website or searches its sitemap and navigation.
- `atr_weather`: Gets current weather and up to seven forecast days.
- `atr_query` (name suggests: reads): Retrieves more from a large result that ATR kept.
- `atr_stats`: Shows how many tokens ATR has saved.
- `atr_find_tools` (name suggests: reads): Searches your servers' tools and returns the few that fit.
- `atr_read` (name suggests: reads): Runs a read-only tool and shrinks the result.
- `atr_call`: Runs a tool that changes something.
- `atr_repo_map`: Maps a project without opening files one by one.
- `atr_search_code` (name suggests: reads): Compact code search.
- `atr_read_file` (name suggests: reads): Reads part of a file.
- `atr_diff`: Compact git diff.
- `atr_run` (name suggests: changes): Runs shell commands and trims output.

## FAQ

### Is ATR: Automation for Token Reduction free?

The README says it is free, both on your computer and as a hosted connector.

### Which apps does ATR: Automation for Token Reduction work with?

Claude Code, Codex, Claude Desktop, Cursor, Windsurf, claude.ai and ChatGPT.

### Does ATR: Automation for Token Reduction protect secrets?

Per the README, .env files, private keys and cloud credentials are never read, searched or shown.

### Will the chatbot use ATR: Automation for Token Reduction automatically?

For web tools, the README says Claude did not pick ATR by itself in tests, so add an instruction or say use atr.

### Can I undo the setup?

Yes. atr setup --undo restores your apps and each changed file gets a backup.

### How do I add ATR: Automation for Token Reduction to Claude Code?

Run this command in your terminal: claude mcp add atr -- uvx atr-mcp

### What are the best alternatives to ATR: Automation for Token Reduction?

The closest alternatives to ATR: Automation for Token Reduction are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/atr-automation-for-token-reduction
