What are the prerequisites?
Node.js 18+, a Redis server (local or remote), and an Anthropic API key.
@degenhero
基本信息
An MCP server that uses Redis and in-memory caching to optimize and extend context windows for large chat histories
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"context-optimizer-mcp": {
"command": "npx",
"args": [
"mcp",
"install",
"degenhero/context-optimizer-mcp"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。
Context Optimizer MCP is an MCP server that uses Redis and in-memory caching to optimize and extend context windows for large chat histories. It acts as a middleware between your application and LLM providers (currently supporting Anthropic's Claude models), automatically summarizing older messages to stay within token limits while preserving key information.
Install using the MCP client (npx mcp install degenhero/context-optimizer-mcp), manually via npm install, or with Docker (docker-compose up -d). Configure environment variables in .env (Anthropic API key, Redis host/port, caching settings). Start the server, then send HTTP POST requests to http://localhost:3000/v1/messages using the standard Anthropic API format, optionally including conversation_id and context_optimization parameters.
conversation_idNode.js 18+, a Redis server (local or remote), and an Anthropic API key.
Copy `.env.example` to `.env` and set `ANTHROPIC_API_KEY`, Redis host/port/password, and caching parameters (e.g., `IN_MEMORY_CACHE_MAX_SIZE`). The server listens on port 3000 by default.
Currently, only Anthropic's Claude models are supported.
The server exposes an HTTP endpoint at `/v1/messages` that is compatible with the Anthropic API. It also provides `/health` and `/metrics` endpoints.
Summarized contexts are cached in both an in-memory LRU cache (for fast access) and Redis (for persistent, distributed storage across server instances).

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.

Health by Dr Brad works out a health plan from your own results: which screening is due at your age, and evidence-based suggestions, each with the reason and the published guideline or study behind it. Your record is one
Painless E2E Automation for Mobile and Web

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.
评论