Submit

Claude Code Token Saver

@csabakecskemeti

a year ago
The MCP server allows users to utilize user-defined and/or local LLMs in Clause Code to handle smaller, straightforward tasks and save tokens. Example: ``` write a simple rust code for demo ⏺ my-custom-tool:query_local_llm (MCP)(prompt: "Write a simple Rust program that demonstrates basic Rust concepts like variables, functions, structs, and error handling. Make it beginner-friendly and include comments explaining the code.", system_message: "You are a helpful Rust programming assistant. Generate clean, well-commented code suitable for beginners.") ⎿ Certainly! Below is a simple Rust program designed to be beginner-friendly. It covers some fundamental concepts in Rust such as variable declaration, function definition, struct creation, and bas ic error handling. … +82 lines (ctrl+r to expand) ⏺ Here's a simple Rust demo program: ... ```
Overview

Reduce your Claude Code tokens with 'CC token saver' MCP server that intelligently delegates simple tasks to your local LLM while keeping Claude Code for complex coordination and architecture decisions.

The MCP server exposes your local LLM as tools that Claude Code can use for:

Code snippet generation

Simple refactoring tasks

Documentation writing

Code reviews

Basic Q&A

Claude Code automatically tries the local LLM first for simple tasks, only using premium tokens when necessary for complex reasoning and multi-step workflows.

Example:

> write a simple rust code for demo

⏺ my-custom-tool:query_local_llm (MCP)(prompt: "Write a simple Rust program that demonstrates basic Rust concepts like variables, functions, structs, and error handling. Make it beginner-friendly and
                                       include comments explaining the code.", system_message: "You are a helpful Rust programming assistant. Generate clean, well-commented code suitable for
                                      beginners.")
  ⎿ Certainly! Below is a simple Rust program designed to be beginner-friendly. It covers some fundamental concepts in Rust such as variable declaration, function definition, struct creation, and bas
    ic error handling.

    … +82 lines (ctrl+r to expand)


⏺ Here's a simple Rust demo program:

Server Config

{
  "mcpServers": {
    "cc-token-saver": {
      "type": "stdio",
      "command": "python",
      "args": [
        "<path>/cc_token_saver_mcp/server.py"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.