Serveur MCP Kortexio Memory
Commit 28 sept. 2026Fournit une passerelle de mémoire agentique qui gère les wikis de session et l'historique pour les agents IA via une API compatible OpenAI.
Aussi connu sous Kortexio/ContextMemory, contextmemory
- Étoiles
- 8
- Outils
- —
- Téléchargements, 30 jours
- —
- Dernière version
- 1.0.0
- Dernier commit
- 28 sept. 2026
- Licence
- AGPL-3.0
Qu'est-ce que Kortexio Memory MCP ?
Kortexio Memory est un serveur MCP. Fournit une passerelle de mémoire agentique qui gère les wikis de session et l'historique pour les agents IA via une API compatible OpenAI.
Résumé généré à partir du README du projet
À propos du MCP server Kortexio Memory
Kortexio Memory agit comme une passerelle de mémoire agentique conçue pour les développeurs qui construisent des applications d'IA. Il s'intercale entre votre client et votre moteur LLM, tel que llama.cpp, vLLM ou Ollama, pour gérer l'historique des sessions et les connaissances. Au lieu d'exiger que les clients envoient l'intégralité de l'historique des conversations, cette passerelle gère le contexte en maintenant des wikis de session au format markdown. Cette approche permet aux utilisateurs d'ouvrir, de modifier et d'auditer la mémoire sous forme de fichiers texte brut sur disque ou dans Postgres, plutôt que d'utiliser des embeddings vectoriels opaques.
Les utilisateurs peuvent déployer cette solution via Docker pour un auto-hébergement complet ou utiliser Kortexio Cloud pour une expérience managée. Le système prend en charge une boucle d'outils agentique qui inclut un environnement d'exécution sandbox pour l'exécution de commandes shell ou Python ainsi qu'un catalogue MCP. Il fournit des outils spécialisés comme wiki_search et wiki_grep pour gérer les connaissances partagées. Les développeurs peuvent également implémenter des garde-fous, des validateurs et une confirmation humaine (human-in-the-loop) pour les actions sensibles, tout en conservant une interface API standard compatible OpenAI.
Ce que vous pouvez faire avec
- 1Fournir une mémoire permanente pour les IDELes développeurs peuvent intégrer le serveur dans Cursor ou Claude Desktop pour permettre aux agents de sauvegarder et de récupérer des faits spécifiques.
- 2Exécuter du code dans un environnement sécuriséLa passerelle peut exécuter une boucle agentique utilisant un sandbox pour l'exécution de code Python ou Node.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer Kortexio Memory MCP
Formats vérifiés le 10 nov. 2026Ajouter à CursorAjouter à GooseInstaller Kortexio Memory MCP dans Claude Code
$ claude mcp add --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcpInstaller Kortexio Memory MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"contextmemory": {
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp"
}
}
}Installer Kortexio Memory MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"contextmemory": {
"type": "http",
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp"
}
}
}Installer Kortexio Memory MCP dans VS Code CLI
$ code --add-mcp '{"name":"contextmemory","type":"http","url":"https://mcp.kortexio.io/%7BappId%7D/mcp"}'Installer Kortexio Memory MCP dans Codex
$ codex mcp add contextmemory --url https://mcp.kortexio.io/%7BappId%7D/mcpInstaller Kortexio Memory MCP dans Codex config.toml
~/.codex/config.toml
[mcp_servers.contextmemory] url = "https://mcp.kortexio.io/%7BappId%7D/mcp"
Installer Kortexio Memory MCP dans Gemini CLI
$ gemini mcp add -s user --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcpInstaller Kortexio Memory MCP dans Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"contextmemory": {
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp",
"type": "http"
}
}
}Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →Pas encore vérifié. Un serveur nécessite un score de 80, aucune faille sérieuse et suffisamment de données pour que nous puissions effectuer les vérifications. Fonctionnement des vérifications · Ce qu'il faut corriger pour gagner des points
- Dépôt source lié et accessiblekortexio/contextmemory is public and reachablegithub.com/kortexio/contextmemory ↗Réussi
- Le nom du package correspond au dépôt sourceNon vérifié
- Provenance du build (attestation Sigstore)Non vérifié
- Licence open source (OSI)AGPL-3.0spdx.org/licenses/AGPL-3.0.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-09-28github.com/kortexio/contextmemory ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNon vérifié
- Aucun avis critique dans le package ou ses dépendancesNon vérifié
- Aucune instruction cachée destinée au modèle0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNon vérifié
- Le point de terminaison distant répond à la poignée de main MCPEndpoint did not answer initialize: HTTP 400Faille
README
Voir sur GitHubTry it in three commands
git clone https://github.com/Kortexio/ContextMemory.git && cd ContextMemory
docker compose -f docker-compose.yml -f docker-compose.llamacpp.yml up --build -d # CPU; GPU: docker-compose.vllm.yml
./scripts/aha-chat.sh # Windows: .\scripts\aha-chat.ps1
aha-chat sends two requests in the same session. The second one carries only the new question:
==> Turn 1: "Remember this for later: our staging database host is postgres-staging-01."
==> Turn 2: "What is our staging database host?" (no history in the request body)
AHA OK — the client sent no history; the gateway remembered 'postgres-staging-01'.
The same check runs in CI against a real llama-server on every push (e2e-llamacpp). First start downloads a ~2 GB GGUF; pick another model with LLAMACPP_HF_MODEL (Engines). Admin UI: http://localhost:5200.
What is ContextMemory?
ContextMemory is the open-source agentic memory gateway behind Kortexio.
Your app (or Cursor/Claude) keeps talking to a normal chat API. The gateway:
- Authenticates the tenant and attaches session wiki + history
- Runs an agentic tool loop when tools are enabled (wiki search, sandbox, MCP, …)
- Applies skills, guardrails, validators, and optional HITL before destructive actions
- Returns a standard OpenAI-shaped
chat.completionsresponse (streaming supported)
Your client (OpenAI SDK / Cursor MCP / curl)
│
▼ POST /v1/chat/completions
┌────────────────────────────────────────────┐
│ ContextMemory (.NET 9) │
│ Auth · session wiki · Global Wiki tool │
│ Agentic loop · skills · guardrails · HITL │
│ LLM backend (per app — BYO engine) │
└───────┬──────────────────┬─────────────────┘
▼ ▼
sandbox-runtime mcp-runtime / MCP servers
(shell/python/node) (HTTP + stdio, OAuth)
or Azure ACA sessions
Honest boundaries: this is a gateway + server-side harness, not a client agent framework (LangGraph/CrewAI) and not an agent OS (Letta). You keep your OpenAI client; the loop runs on the server.
LLM engines: ContextMemory does not ship or lock to one inference stack. Per tenant you pick any OpenAI-compatible /v1 host — Ollama, vLLM, LM Studio, ExLlamaSharp, OpenAI, Azure-compatible, LiteLLM, custom. Compose ships llama.cpp and vLLM overrides; swap engines per app in Admin → Config → LLM.
How we compare (Mem0 / Zep / Letta / why we are not RAG): docs/compare.md.
What it gives developers
| You need… | ContextMemory provides… |
|---|---|
| Memory that survives turns without rewriting your client | Session markdown wiki + history inject; send only the new message |
| Memory you can open, edit, audit | Files on disk / Postgres — not opaque embeddings |
| Shared company/docs knowledge in chat | Global Wiki digests + on-demand wiki_search / wiki_grep (not classic RAG / embeddings) |
| Tools without a second orchestrator | Same /v1: sandbox + MCP + wiki tools |
| Safer agents | Skills & guardrail packs, validators, HITL [CONFIRM:id] |
| Cursor / Claude permanent memory fast | MCP wedge: memory_save / memory_search / memory_get |
| Any LLM per tenant | BYO /v1 — Ollama, vLLM, LM Studio, ExLlamaSharp, OpenAI, Azure-compatible, custom |
| Operate without a test client | Admin + Playground |
| Full control / zero ops | Docker self-host · Kortexio Cloud (cmk_live_…) |
Capabilities (summary)
Full detail: docs/architecture-and-features.md · Admin: docs/admin-ui.md · HITL: docs/hitl.md.
| Area | Highlights |
|---|---|
| Memory | Session wiki + rolling summary; history budgets; Global Wiki digests/FTS/revisions (asOf); no vector RAG |
| Agentic | Server-side tool loop; sandbox; MCP catalog; artifacts; subagents; validators; HITL; egress policy |
| Skills | Platform + per-app skills/guardrails (skill / always_on / requestable) |
| MCP | Outbound wedge (Cursor → CM) · inbound catalog (CM → your MCP servers) |
| Ops | Admin UI · File or Postgres · Prometheus /metrics · Compose (API + Admin + mcp-runtime + sandbox) |
More ways to run
The gateway talks OpenAI-compatible /v1 to the engine (and Ollama native /api/chat when you need num_ctx). Change the engine anytime in Admin → Config → LLM or PATCH /admin/apps/{id}/config.
Engine already running (llama-server, vLLM, LM Studio, …) — API image only
docker run --rm -p 5100:8080 \
-v contextmemory-data:/app/data \
-e ContextMemory__MasterKey=cm_master_dev_key_change_me \
-e ContextMemory__Apps__demo-dev__ApiKey=cm_live_dev_key_change_me \
-e ContextMemory__Apps__demo-dev__LlmBackend=openai-compatible \
-e ContextMemory__Apps__demo-dev__LlmModel=local-model \
-e ContextMemory__Apps__demo-dev__LlmEndpoint=http://host.docker.internal:8080 \
--add-host=host.docker.internal:host-gateway \
ghcr.io/kortexio/contextmemory:latest
Host-level default for all apps: ContextMemory__LlmEndpoint. Ollama on the host works too (ContextMemory__LlmEndpoint=http://host.docker.internal:11434). Engine flags that matter (llama.cpp --jinja, vLLM tool parser): Engines. Full stack (API + Admin + MCP + sandbox): docs/self-host.md.
Cursor / Claude memory (MCP)
git clone https://github.com/Kortexio/ContextMemory.git
cd ContextMemory/mcp-server && npm install && node print-mcp-config.mjs
Paste into Cursor → Settings → MCP (or ~/.cursor/mcp.json). Same snippet works for Claude Desktop. Details: mcp-server/README.md.
Then, in two separate chats:
| Chat | You say | Agent should |
|---|---|---|
| A | Remember: staging DB is postgres-staging-01 |
memory_save |
| B (new) | What is our staging DB? |
memory_search + answer |
Same flow without Cursor (wiki API, no LLM): ./scripts/aha-demo.sh or .\scripts\aha-demo.ps1.
No GPU, no ops: Kortexio Cloud
| Kortexio Cloud | Self-host (this repo) | |
|---|---|---|
| Best for | Zero ops | Full control (API + Admin + MCP + sandbox) |
| Key | cmk_live_… (no X-App-Id) |
cm_live_… + X-App-Id |
| Chat body | Identical OpenAI /v1 |
Identical OpenAI /v1 |
| LLM | BYO provider in dashboard | BYO engine in Admin / env |
Chat drop-in
curl -X POST http://localhost:5100/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-App-Id: demo-dev" -H "X-User-Id: user-42" -H "X-Session-Id: sess-abc" \
-H "Authorization: Bearer cm_live_dev_key_change_me" \
-d '{"model":"local-model","messages":[{"role":"user","content":"Hello"}]}'
Thin header helpers (not full SDKs): @kortexio/contextmemory · kortexio-contextmemory
Documentation & support
| Doc | Topic |
|---|---|
| docs/compare.md | Why it exists · vs Mem0 / Zep / Letta · why we are not RAG |
| docs/architecture-and-features.md | Wiki, temporal facts, agentic, skills, LLM backends |
| docs/admin-ui.md | Admin UI map |
| docs/hitl.md | Human-in-the-loop |
| docs/api.md | HTTP API |
| docs/cloud.md · docs/self-host.md | Cloud · Docker / Compose |
| docs/ops.md | Ops & troubleshooting |
| docs/README.md | Full docs index |
Website: kortexio.io · Email: hello@kortexio.io
License
AGPL-3.0 for this open-source core — self-host it freely, including commercially. Need to embed it in a closed-source product without AGPL obligations? Use Kortexio Cloud or a commercial license. See docs/license-and-support.md.
Questions sur Kortexio Memory MCP
Comment ajouter Kortexio Memory MCP à Claude Code ?
Exécutez claude mcp add --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcp dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter Kortexio Memory MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.