token-save-mcp
by Habartru
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GROQ_API_KEY | No | API key for the Groq provider. | |
| OLLAMA_API_KEY | No | API key for the Ollama provider. | |
| TOKENSAVE_MODEL | No | Worker model ID. Defaults to the chosen provider's preset model. | |
| DEEPSEEK_API_KEY | No | API key for the DeepSeek provider. | |
| TOKENSAVE_LEDGER | No | Path to the local ledger file used by the stats command. | ~/.token-save/ledger.jsonl |
| TOKENSAVE_API_KEY | No | Overrides the preset's key variable. | |
| TOKENSAVE_TIMEOUT | No | Timeout in seconds for each worker model call. | 600 |
| OPENROUTER_API_KEY | No | API key for the OpenRouter provider. | |
| TOKENSAVE_BASE_URL | No | Base URL for any OpenAI-compatible endpoint. Defaults to the chosen provider's preset endpoint. | |
| TOKENSAVE_PROVIDER | No | Provider preset. Default is 'ollama'. One of: ollama, openrouter, deepseek, groq, local. | ollama |
| TOKENSAVE_HOOK_MODE | No | Hook enforcement mode. 'block' prevents reads over the threshold, 'warn' allows them but flags the cost. | block |
| TOKENSAVE_MIN_LINES | No | Minimum line count for the tool's hook threshold and 'too small' warnings. | 350 |
| TOKENSAVE_NO_LEDGER | No | Set to '1' or 'true' to disable local ledger recording. | false |
| TOKENSAVE_MAX_RETRIES | No | Number of retries on transient failures. | 4 |
| TOKENSAVE_HOOK_MAX_BYTES | No | Maximum file size in bytes for the hook. Catches minified files even if line count is low. | 100000 |
| TOKENSAVE_MAX_CONCURRENCY | No | Maximum number of concurrent worker calls. | 3 |
| TOKENSAVE_MAX_CORPUS_BYTES | No | Maximum total size in bytes for a single bulk_read request. | 2000000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues