ContextKeep

ContextKeep

Provides infinite long-term memory for AI agents with persistent, searchable storage of project details, preferences, and snippets. Reduces token costs by retrieving only relevant memories while keeping all data stored locally.

Category
Visit Server

README

<div align="center">

ContextKeep Banner

ContextKeep 🧠

Infinite Long-Term Memory for AI Agents

Status: Beta Platform: Linux | Windows | macOS License: MIT Python 3.10+ MCP Compliant Donate with PayPal

ContextKeep is a powerful, standalone memory server that gives your AI tools (Claude, Cursor, VS Code, Gemini, OpenCode) a persistent, searchable brain. Stop repeating yourselfβ€”let your AI remember.

Features β€’ Installation β€’ Usage β€’ Web Dashboard β€’ Configuration

</div>


🌟 Features

  • ♾️ Infinite Context: Store unlimited project details, preferences, and snippets.
  • πŸ’° Save Money & Tokens: Reduce context window usage by only retrieving relevant memories, lowering API costs.
  • πŸ”Œ Universal Compatibility: Works with any MCP-compliant client via Stdio (Local) or SSE (Remote).
  • πŸ–₯️ Modern Web Dashboard: Manage your memories visually with Grid, List, and Calendar views.
  • πŸ”’ Privacy First: 100% local storage. Your data never leaves your machine.
  • πŸ”Ž Smart Search: Find exactly what you need with semantic and keyword search.
  • 🐧 Linux Service: Runs silently in the background as a system service.

ContextKeep Showcase


πŸš€ Installation

Prerequisites

  • Python 3.10 or higher
  • Git (optional)

Quick Start

  1. Clone the repository:

    git clone https://github.com/mordang7/ContextKeep.git
    cd ContextKeep
    
  2. Run the Installer:

    • Linux/Mac:
      python3 install.py
      
    • Windows:
      python install.py
      
  3. Follow the Wizard: The installer will create a virtual environment, install dependencies, and generate a custom configuration file for you.


πŸ”Œ Configuration

After installation, you will find a mcp_config.json file in the root directory. Copy its contents into your AI client's configuration.

Example Configurations

1. Claude Desktop / Gemini CLI (Local)

{
  "mcpServers": {
    "context-keep": {
      "command": "/absolute/path/to/ContextKeep/venv/bin/python",
      "args": ["/absolute/path/to/ContextKeep/server.py"]
    }
  }
}

2. Remote Access (SSH)

Perfect for running ContextKeep on a home server (e.g., Raspberry Pi) and accessing it from your laptop.

{
  "mcpServers": {
    "context-keep": {
      "command": "ssh",
      "args": [
        "-i", "/path/to/private_key",
        "user@192.168.1.X",
        "'/path/to/ContextKeep/venv/bin/python'",
        "'/path/to/ContextKeep/server.py'"
      ]
    }
  }
}

3. SSE Mode (Http)

If you prefer HTTP transport (great for OpenCode or web apps):

{
  "mcpServers": {
    "context-keep": {
      "transport": "sse",
      "url": "http://localhost:5100/sse"
    }
  }
}

🌐 Web Dashboard

ContextKeep includes a beautiful web interface to manage your memories.

  • URL: http://localhost:5000
  • Features:
    • Dashboard: Overview of recent memories.
    • Calendar: Visual timeline of your work.
    • Search: Instant filtering.
    • CRUD: Create, Read, Update, Delete memories manually.

To start it manually:

./venv/bin/python webui.py

🐧 Linux Service Setup (Optional)

Run ContextKeep as a background service (systemd) on Linux/WSL:

chmod +x install_services.sh
./install_services.sh

This will install:

  • contextkeep-server (Port 5100)
  • contextkeep-webui (Port 5000)

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

β˜• Support the Project

If ContextKeep helps you build cool things, consider buying me a coffee!

Donate with PayPal


<div align="center"> <sub>Built with ❀️ by GeekJohn</sub> </div>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured