copilot-memory-mcp
copilot-memory-mcp
Persistenter semantischer Speicher für GitHub Copilot in VS Code.
Ein lokaler MCP-Server, der Copilot dauerhaften, projektspezifischen Speicher über Sitzungen hinweg bietet. Erinnerungen werden in einer eingebetteten ChromaDB-Vektordatenbank mit all-MiniLM-L6-v2-Embeddings gespeichert, was semantisches Abrufen (RAG) ermöglicht. Alles läuft in einem einzigen Docker-Container – keine Cloud-Dienste erforderlich.
Warum dieses Projekt existiert
Copilot startet jede Sitzung mit einer leeren Tafel. Dieser MCP-Server gibt ihm eine persistente, durchsuchbare Wissensbasis, sodass Entscheidungen, Konventionen und Kontext zwischen Sitzungen erhalten bleiben – alles läuft lokal in Docker.
Related MCP server: AIVectorMemory
Schnellstart
docker compose up -dDer Server startet auf http://localhost:8000/sse.
Die .vscode/mcp.json verweist Copilot bereits auf den Server – keine weitere VS-Code-Konfiguration erforderlich.
Eine Beispielkonfiguration finden Sie in examples/vscode/mcp.json. Kopieren Sie sie in die .vscode/mcp.json Ihres Projekts.
MCP-Tools
Tool | Description |
| Speichert eine neue Erinnerung mit Titel, Inhalt, optionalem Projektbereich und Tags |
| Semantische Vektorsuche; Filter nach Projekt und/oder Tags |
| Aktualisiert eine vorhandene Erinnerung anhand der ID; erneutes Einbetten bei Änderung |
| Löscht eine Erinnerung dauerhaft anhand der ID |
| Durchsucht Erinnerungen mit Paginierung (leichtgewichtig, ohne Inhalt) |
Copilot-Anweisungen und -Agenten (Beispiele)
Einsatzbereite Beispiele finden Sie in examples/. Kopieren Sie die relevanten Dateien in das Wurzelverzeichnis oder .github/ Ihres eigenen Projekts.
Datei | Verwendet von |
OpenAI Codex, Claude Code und die meisten Agent-Laufzeiten | |
Claude Code ( | |
Cursor (Legacy-Format, Projektwurzel) | |
Cursor (modernes Pro-Regel-Format) | |
GitHub Copilot in VS Code | |
VS Code | |
VS Code | |
VS Code |
Architektur
VS Code / Copilot
│ MCP HTTP/SSE (port 8000)
▼
┌─────────────────────────────────┐
│ Docker Container │
│ │
│ FastMCP Server (port 8000) │
│ └── 5 MCP tools │
│ │
│ sentence-transformers │
│ └── all-MiniLM-L6-v2 │
│ (384-dim embeddings) │
│ │
│ ChromaDB (embedded) │
│ └── collection "memories" │
└──────────┬──────────────────────┘
│ Docker named volume
▼
/data/chroma (persisted DB)Projektstruktur
copilot-memory-mcp/
├── app/
│ ├── main.py # FastMCP server, tool registration
│ ├── memory_store.py # ChromaDB wrapper (CRUD + search)
│ ├── embeddings.py # sentence-transformers loader + encode()
│ └── tools/
│ ├── create_memory.py
│ ├── search_memories.py
│ ├── update_memory.py
│ ├── delete_memory.py
│ └── list_memories.py
├── tests/
│ ├── test_memory_store.py
│ └── test_tools.py
├── Dockerfile
├── docker-compose.yml
└── pyproject.tomlEntwicklung
Abhängigkeiten installieren
pip install -e ".[dev]"Tests ausführen
pytestDie Tests verwenden eine flüchtige In-Memory-ChromaDB und eine gemockte Embedding-Funktion – kein Docker, kein Modell-Download erforderlich.
Server lokal ausführen (ohne Docker)
pip install -e .
PYTHONPATH=. python app/main.pyUmgebungsvariablen
Variable | Standard | Beschreibung |
|
| Modell-Cache-Verzeichnis |
|
| ChromaDB-Persistenzpfad |
|
| HTTP-Server-Port |
Kopieren Sie .env.example in .env und passen Sie es bei Bedarf an.
Lizenz
MIT – siehe LICENSE.
This server cannot be installed
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
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that provides semantic search (RAG) over code repositories, enabling AI clients like Claude and Gemini to access project context without manual re-upload.
- AlicenseBqualityBmaintenanceMCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.991Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA local MCP server that provides semantic memory storage and retrieval for coding and AI agents, enabling durable context across chat sessions.1314
- AlicenseAqualityDmaintenanceMCP server for semantic code indexing using vector embeddings, enabling AI agents to maintain persistent memory of codebases through natural language queries and intelligent chunking.19764MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Cloud-hosted MCP server for durable AI memory
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/LabForgeDev/copilot-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server