mcp-rtk 1.0.0

Token-optimizing MCP proxy — sits between Claude and upstream MCP servers, compressing tool responses by 60-90%
Documentation

mcp-rtk

A token-optimizing MCP proxy that sits between Claude and any upstream MCP server, compressing tool responses to reduce token consumption by 60–90%.

Architecture

Claude ←(stdio)→ mcp-rtk ←(stdio/subprocess)→ upstream MCP server

mcp-rtk is both an MCP server (for Claude) and an MCP client (for upstream). It forwards list_tools and call_tool requests, applying JSON compression filters on responses before returning them.

Modules

  • [config] — TOML configuration loading with per-tool filter rules.
  • [filter] — The 8-stage filter pipeline and generic JSON compression functions.
  • [proxy] — ProxyServer and ProxyClient implementing the MCP server/client handlers.
  • [tracking] — SQLite-backed token savings metrics.