jitendrakumar-ai

Omni Token Router MCP โ€” AI skill for Claude Code

AI community

๐Ÿ’Ž Semantic Context Compressor, Live Token/USD Cost Calculator & Adaptive Model-Tier Router MCP Server โ€” Cut LLM token bills by 85% across Claude Code, Cursor, VS Code, Codex & Antigravity.

How to install Omni Token Router MCP

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jitendrakumar-ai/omni-token-router-mcp and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Omni Token Router MCP does

๐Ÿ’Ž Semantic Context Compressor, Live Token/USD Cost Calculator & Adaptive Model-Tier Router MCP Server โ€” Cut LLM token bills by 85% across Claude Code, Cursor, VS Code, Codex & Antigravity.

Alternatives in AI

  • Codeburn โ€” Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k โ˜…
  • Jcodemunch MCP โ€” Cut AI token costs 95%+ on code exploration 2.6k โ˜…
  • Paritok 4b V1 โ€” Non-destructive compression gateway for AI coding agents 1.4k โ˜…

README

omni-token-router-mcp

๐Ÿ’Ž Semantic Context Compressor, Live Token/USD Cost Calculator & Adaptive Model-Tier Router MCP Server โ€” Cut LLM token bills by 85% across Claude Code, Cursor, VS Code, Codex & Antigravity.

Omni-Token Router MCP Banner

Python 3.10+ โ€ข MCP Standard v1.2.0 โ€ข Claude Code โ€ข Cursor โ€ข Windsurf โ€ข Cline

โšก Omni-Token Router MCP (v1.2.0)

**Semantic Context Compressor, Live Token/USD Cost Calculator & Adaptive Model-Tier Router MCP Server** โ€” Cut LLM token bills by 85% across Claude Code, Cursor, VS Code, Codex & Antigravity.

๐Ÿ’ก Overview

**Omni-Token Router MCP** is an enterprise-grade Model Context Protocol (MCP) server engineered to drastically reduce token usage and API costs when using AI coding assistants. It compresses code context, routes queries to the most cost-effective model based on task complexity, and eliminates redundant prompt chunks.

Core Features

  • ๐Ÿ—œ๏ธ compress_code_context โ€” AST-aware AST & whitespace compression for 60-80% token reduction.
  • ๐Ÿ’ต calculate_prompt_cost_matrix โ€” Live USD cost breakdown across Claude 3.5 Sonnet, GPT-4o, DeepSeek R1, and Gemini 1.5 Pro.
  • ๐ŸŽฏ route_task_by_complexity โ€” Dynamically routes simple queries to fast, cheap models and complex refactoring to reasoning powerhouses.
  • ๐Ÿงน deduplicate_prompt_chunks โ€” Automatically strips repetitive prompt context and duplicate file snippets.

โš™๏ธ Architecture & Workflow

graph TD
    A[User / IDE Agent Prompt] --> B[Omni-Token Router MCP]
    B --> C{Core Tools Pipeline}
    C -->|1. Deduplicate| D[deduplicate_prompt_chunks]
    C -->|2. Compress| E[compress_code_context]
    C -->|3. Cost Matrix| F[calculate_prompt_cost_matrix]
    C -->|4. Smart Route| G[route_task_by_complexity]
    G --> H[Model Selection: DeepSeek R1 / Claude / GPT-4o]