Skip to main content
Glama
NcrMancer
by NcrMancer

gwen-digestor

Model Context Protocol server for conversation compression.

Reduces token consumption by compressing conversation exchanges before they enter the LLM context window. Uses deterministic, embedding-free compression — no external APIs, no GPU required.

Features

  • 4 MCP tools: digest_input, compress_response, cache_reference, session_stats

  • Mode-aware compression: auto-detects checkin, task, narrative, or casual conversation

  • Content-type detection: smart JSON crushing, code comment stripping, prose pass-through

  • Gzip-compressed reference cache: SQLite-backed key-value store with TTL expiry

  • Token savings tracking: persistent stats across sessions

📊 View the Token Reduction Report — a professional breakdown with compression metrics and visual charts.

Related MCP server: Memory Cache MCP Server

Compression Levels

Mode

Level

Strategy

checkin

25%

Extract structured metrics (pain, sleep, energy, food, weight, stress)

task

50%

Strip filler words, remove greetings/hedges

casual

75%

Light structural compression

narrative

95%

Preserve detail with minimal trimming

Tools

digest_input

Compresses incoming messages by mode. Strips conversational filler, extracts health metrics in checkin mode, removes boilerplate in task mode.

compress_response

Compresses outgoing responses with mode-aware sentence truncation.

cache_reference

Gzip-compressed key-value store for reference texts. Configurable TTL (default 24h).

session_stats

Real-time token savings dashboard showing compression rates across all calls.

Installation

pip install mcp fastmcp

Usage

Register as an MCP server in your client config:

{
  "mcpServers": {
    "gwen-digestor": {
      "command": "python3",
      "args": ["/path/to/gwen_digestor.py"],
      "transport": "stdio"
    }
  }
}

Then call the tools from your LLM session:

digest_input("hey, just checking in — slept okay, pain 3/10 today, stress 5/10")
→ [MODE:checkin@25%] SLEEP:okay|PAIN:3/10|STRESS:5/10

Storage

  • Cache DB: ~/.gwen-digestor/cache.db (SQLite, gzip-compressed blobs)

  • Stats: ~/.gwen-digestor/stats.json (persistent across sessions)

  • Dependencies: Python 3.10+, mcp, fastmcp

License

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that optimizes token usage by caching data during language model interactions, compatible with any language model and MCP client.
    4
    2
  • F
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that reduces token consumption by efficiently caching data between language model interactions, automatically storing and retrieving information to minimize redundant token usage.
    4
    25
  • A
    license
    -
    quality
    A
    maintenance
    Provides reversible context compression for AI agents, reducing token usage while preserving the ability to retrieve original content, and serves as an MCP server for integration with tools like GitHub Copilot and Claude Code.
    1
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NcrMancer/gwen-digestor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server