Skip to main content
Glama
zcc-cddg-mx

mcp-server-claude

by zcc-cddg-mx

mcp-server-claude

MCP Memory Server for Claude Code — persistent context across sessions using semantic search (RAG).

Problem

Claude Code compacts conversation history when it exceeds the context window (~200k tokens). This causes loss of operational context between sessions. A database alone doesn't fix this — the solution is selective context retrieval (RAG), not full history loading.

Related MCP server: claudecode-infinite-memory

Solution

A local MCP server that:

  1. Saves key fragments from each session with embeddings

  2. On new sessions, retrieves only the top-K semantically relevant fragments (~5-10k tokens)

  3. Provides structured project context (decisions, status, todos) on demand

Architecture

Claude Code CLI
      │ MCP Protocol (JSON-RPC 2.0 / stdio)
      ▼
MCP Memory Server (FastMCP)
  ├── Tools: remember, recall, get_project_context, list_sessions
  ├── ChromaDB  ← vector store (semantic search)
  └── SQLite    ← session metadata

Quick Start

git clone <repo>
cd mcp-server-claude
pip install -r requirements.txt
cp .env.example .env
# edit .env — set MEMORY_DB_PATH to a directory outside the repo

# Register with Claude Code:
# Add the contents of mcp_config.example.json to ~/.claude/settings.json

Environment

Designed for Zurich Insurance GenAI Platform (LiteLLM proxy UAT, WSL2 Ubuntu 24).

  • CLAUDE_CODE_DISABLE_PROMPT_CACHING=1 — proxy doesn't support caching; this server compensates

  • All embeddings run locally (sentence-transformers) — no external calls

Documentation

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

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

  • A
    license
    -
    quality
    D
    maintenance
    Persistent memory MCP server for Claude Code that captures and recalls project context across sessions, eliminating the need to re-explain architecture and decisions daily.
    244
    1
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A simple memory storage server for Claude using the Model Context Protocol (MCP), enabling Claude to store and retrieve text memories across conversations.
    20
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A zero-dependency MCP server for cross-session memory recall in Claude Code. Provides lexical search, listing, and retrieval of past session memories to avoid re-explaining context.
    3
    14
    MIT

View all related MCP servers

Related MCP Connectors

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • Hosted MCP memory: save sessions/decisions once, search from Claude, Cursor, ChatGPT. EU-hosted FTS.

  • Cloud-hosted MCP server for durable AI memory

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/zcc-cddg-mx/mcp-server-claude'

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