Context Keeper logo

Context Keeper

by redleaves

LLM-driven MCP memory server with vector, timeline, and knowledge-graph retrieval for persistent project context.

Install Context Keeper

Run the project’s own setup commands, in order.

Setup steps from the project

redleaves/context-keeper installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/redleaves/context-keeper.git
    
  2. 2. Run
    cd context-keeper
    
  3. 3. Configure
    cp config/env.template config/.env
    
  4. 4. Configure
    vim config/.env
    
  5. 5. Start the server
    ./scripts/manage.sh deploy http --port 8088
    
  6. 6. Install
    docker build -t context-keeper:latest .
    

Overview

The redleaves/context-keeper MCP server manages conversational and project memory across sessions and workspaces. It combines local short-term storage with vector-backed long-term memory, then uses vector, timeline, and knowledge-graph retrieval followed by LLM reranking and synthesis. Reach for it when an MCP client needs persistent context, conversation storage, project-file associations, and session-aware retrieval over HTTP, WebSocket, or SSE.

Use cases

  • Recall prior architecture decisions across development sessions
  • Store conversations for later project-context retrieval
  • Associate source files with an MCP session
  • Reuse related bug-fix discussions and configuration decisions

Key features

  • Vector, timeline, and knowledge-graph retrieval
  • LLM-driven broad recall and precise reranking
  • Short-term and long-term memory layers
  • Session, user, and workspace isolation
  • Conversation storage and file association tools
  • HTTP, WebSocket, and SSE MCP support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/28 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars156Stargazers on the source repository.
Last commit10mo agoMost recent push to the default branch.
Directory activity10 viewsConfig copies, upvotes, and views on AllMCPs.

How Context Keeper works

What redleaves/context-keeper does

The redleaves/context-keeper MCP server gives AI assistants persistent memory for conversations, projects, and development context. It separates recent conversation detail from durable knowledge summaries: short-term records are kept in the local file system, while long-term information is stored in a vector database. The design also isolates users, sessions, and workspaces so that context from separate projects is not mixed.

Memory is organized around a memory ID representing a task or topic and batch IDs representing stored conversation segments. The system can evaluate importance, preserve significant decisions, associate files with a session, and carry knowledge between sessions for the same user. Its stated use cases include reviewing architecture decisions, reusing fixes for similar bugs, and consulting previous configuration or technology-selection discussions.

How it works

redleaves/context-keeper uses a two-stage retrieval flow. First, an intent-analysis step interprets the request and can rewrite the query. A broad retrieval stage then searches several dimensions in parallel: semantic or vector similarity, chronological information, and relationships in a knowledge graph. The resulting candidate set is passed to an LLM for quality assessment, relevance ranking, and synthesis.

Context is maintained through a four-dimensional model that is progressively built and updated. Initial session management can create a project context. Retrieval fills that context with topic and conversation information, while file association can update code-related context. Conversation storage and later retrieval operations trigger semantic change detection; detected changes are merged and persisted, while unchanged context is retained.

Tools and capabilities

The README identifies these MCP operations:

  • session_management(get_or_create) creates or retrieves a session and starts project-context construction when needed.
  • retrieve_context(query, sessionId) searches and synthesizes relevant context for a session.
  • store_conversation(messages, sessionId) saves conversation data and checks it against the current context.
  • associate_file(filePath, sessionId) links a file with a session and uses it to update code context.

The redleaves/context-keeper MCP server supports MCP communication over HTTP, WebSocket, and SSE. Its retrieval model combines semantic, temporal, and knowledge-graph dimensions, with LLM-based reranking and context synthesis between retrieval and response generation.

Setup and configuration

A vector database is required for the long-term memory layer. The project describes a unified vector-storage interface and lists Alibaba Cloud DashVector and JD Cloud Vearch as supported choices, while also allowing developers to implement other backends through that interface. Short-term conversation data uses the local file system.

The repository identifies Go 1.21 or later as the runtime baseline.

Limitations and notes

The server depends on external LLM processing for intent analysis, ranking, synthesis, context comparison, and conflict handling. It also requires vector-storage infrastructure for durable memory.

The project is listed in the 🧠 Knowledge & Memory category. Its isolation model is intended to keep users, sessions, and workspaces separate, but operators should still verify storage permissions and retention behavior for their deployment.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Context Keeper

redleaves/context-keeper is an MCP server that connects AI assistants to local short-term memory and vector-backed long-term project memory. Its main tools manage sessions, retrieve context, store conversations, and associate files with sessions. Retrieval combines semantic, timeline, and knowledge-graph searches before LLM-based ranking and synthesis.

Use the repository’s deployment instructions to install it with Go 1.21 or later.

The project also exposes a unified vector-storage interface intended for custom backend implementations. A vector database is required for long-term memory, while short-term conversation data is stored locally.

It provides session management, context retrieval, conversation storage, and file association operations. The README names `session_management(get_or_create)`, `retrieve_context(query, sessionId)`, `store_conversation(messages, sessionId)`, and `associate_file(filePath, sessionId)`.

Yes, it supports HTTP, WebSocket, and SSE MCP communication.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewContext Keeper AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/redleaves-context-keeper?style=directory)](https://allmcps.com/mcp/redleaves-context-keeper)
HTML Embed
<a href="https://allmcps.com/mcp/redleaves-context-keeper"><img src="https://allmcps.com/api/badge/redleaves-context-keeper?style=directory" alt="Context Keeper on AllMCPs" /></a>