PL

ptobey/local-memory-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

10 stars 4 forks 품질 60 트렌드 12MIT

Persistent local memory for Claude and ChatGPT. No cloud, no subscription. Self-hosted RAG over MCP.

개요

No cloud. No subscription. No account. Your data stays on your machine. local-memory-mcp gives Claude, ChatGPT, and other MCP-compatible assistants a persistent memory layer powered by local vector search (ChromaDB). Tell it something once. It remembers across sessions. Every new Claude or ChatGPT session starts blank. Your preferences, your project context, your decisions - gone. You re-explain yourself constantly. local-memory-mcp is a local MCP server that lets your AI assistant: - Store things worth remembering ("my deep work block is 6:30–9 AM") - Retrieve relevant context at the start of any new session - Version and supersede memories as your situation changes - Never send your data anywhere It's the memory layer AI assistants should have built in, but don't. Then point your MCP client at http://localhost:8000/mcp. Done. The Docker default is intentionally private: it publishes only to 127.0.0.1.

README

원문 README의 일부입니다. 원문 보기.

local-memory-mcp

AI assistants forget everything when the conversation ends. This fixes that - locally.

No cloud. No subscription. No account. Your data stays on your machine.

local-memory-mcp gives Claude, ChatGPT, and other MCP-compatible assistants a persistent memory layer powered by local vector search (ChromaDB). Tell it something once. It remembers across sessions.


The problem it solves

Every new Claude or ChatGPT session starts blank. Your preferences, your project context, your decisions - gone. You re-explain yourself constantly.

local-memory-mcp is a local MCP server that lets your AI assistant:

  • Store things worth remembering (“my deep work block is 6:30–9 AM”)
  • Retrieve relevant context at the start of any new session
  • Version and supersede memories as your situation changes
  • Never send your data anywhere

It’s the memory layer AI assistants should have built in, but don’t.


Quickstart (Docker - 2 minutes)

git clone https://github.com/ptobey/local-memory-mcp.git
cd local-memory-mcp
docker compose up --build -d

Then point your MCP client at http://localhost:8000/mcp. Done.

The Docker default is intentionally private: it publishes only to 127.0.0.1. Before exposing it outside your machine, configure bearer or OAuth authentication and put it behind your normal network controls.

→ Claude Desktop setup · ChatGPT setup · Manual Python install


How it works

[Assistant via MCP Client]
            |
            v
[run_mcp_v1_stdio.py | run_mcp_v1_http_sse.py]
            |
            v
      [src/mcp_server_v1.py]
        /          |          \
       v           v           v
[vector_store.py] [reconciliation.py] [health_monitor.py]
       |                   |
       v                   v
 [Local ChromaDB]   [Reconciliation Log]

Write path: store/update writes a chunk → reconciliation checks for overlap/conflict → returns warnings and self-heal hints when a write looks risky.

Read path: search is two-stage — a fast bi-encoder pulls a wide candidate pool, a cross-encoder reranker reorders it for precision, and the number of results adapts to how much is genuinely relevant. Deprecated chunks stay hidden unless explicitly requested.

Retrieval pipeline

You never tune retrieval — just pass a query and a rough top_k:

  1. Bi-encoder recall — embed the query and pull a wide candidate pool (top_k × RERANK_OVERFETCH) by cosine similarity.
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →