Kortexio Memory MCP server
2026년 9월 28일 커밋OpenAI 호환 API를 사용하여 AI 에이전트의 세션 위키와 히스토리를 관리하는 에이전트 메모리 게이트웨이를 제공합니다.
다른 이름 Kortexio/ContextMemory, contextmemory
- 스타
- 8
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 1.0.0
- 마지막 커밋
- 2026년 9월 28일
- 라이선스
- AGPL-3.0
Kortexio Memory MCP란?
Kortexio Memory은(는) MCP server입니다. OpenAI 호환 API를 사용하여 AI 에이전트의 세션 위키와 히스토리를 관리하는 에이전트 메모리 게이트웨이를 제공합니다.
프로젝트 README에서 생성된 요약
Kortexio Memory MCP server 정보
Kortexio Memory는 AI 애플리케이션을 구축하는 개발자를 위해 설계된 에이전트 메모리 게이트웨이입니다. llama.cpp, vLLM 또는 Ollama와 같은 LLM 엔진과 클라이언트 사이에서 세션 히스토리와 지식을 관리합니다. 클라이언트가 전체 대화 기록을 보낼 필요 없이, 이 게이트웨이는 마크다운 형식의 세션 위키를 유지하여 컨텍스트를 처리합니다. 이러한 방식을 통해 사용자는 불투명한 벡터 임베딩 대신 디스크나 Postgres에 있는 일반 텍스트 파일 형태로 메모리를 열람, 편집 및 감사할 수 있습니다.
사용자는 Docker를 통해 완전한 셀프 호스팅 방식으로 배포하거나, 관리형 서비스인 Kortexio Cloud를 사용할 수 있습니다. 이 시스템은 쉘 또는 Python 실행을 위한 샌드박스 런타임과 MCP 카탈로그를 포함하는 에이전트 툴 루프를 지원합니다. 또한 공유 지식 관리를 위해 wiki_search 및 wiki_grep과 같은 특화된 도구를 제공합니다. 개발자는 표준 OpenAI 호환 API 인터페이스를 유지하면서도 민감한 작업에 대해 가드레일, 검증기 및 human-in-the-loop 확인 절차를 구현할 수 있습니다.
활용 사례
- 1IDE를 위한 영구 메모리 제공개발자는 이 서버를 Cursor 또는 Claude Desktop에 통합하여 에이전트가 특정 사실을 저장하고 검색할 수 있도록 할 수 있습니다.
- 2보안 환경에서 코드 실행게이트웨이는 Python 또는 Node 코드를 실행하기 위한 샌드박스를 활용하는 에이전트 루프를 실행할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
Kortexio Memory MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 Kortexio Memory MCP 설치
$ claude mcp add --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcpCursor에 Kortexio Memory MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"contextmemory": {
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp"
}
}
}VS Code에 Kortexio Memory MCP 설치
.vscode/mcp.json
{
"servers": {
"contextmemory": {
"type": "http",
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp"
}
}
}VS Code CLI에 Kortexio Memory MCP 설치
$ code --add-mcp '{"name":"contextmemory","type":"http","url":"https://mcp.kortexio.io/%7BappId%7D/mcp"}'Codex에 Kortexio Memory MCP 설치
$ codex mcp add contextmemory --url https://mcp.kortexio.io/%7BappId%7D/mcpCodex config.toml에 Kortexio Memory MCP 설치
~/.codex/config.toml
[mcp_servers.contextmemory] url = "https://mcp.kortexio.io/%7BappId%7D/mcp"
Gemini CLI에 Kortexio Memory MCP 설치
$ gemini mcp add -s user --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcpGemini settings.json에 Kortexio Memory MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"contextmemory": {
"url": "https://mcp.kortexio.io/%7BappId%7D/mcp",
"type": "http"
}
}
}자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능kortexio/contextmemory is public and reachablegithub.com/kortexio/contextmemory ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)AGPL-3.0spdx.org/licenses/AGPL-3.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-09-28github.com/kortexio/contextmemory ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답Endpoint did not answer initialize: HTTP 400결함 발견
README
GitHub에서 보기Try 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.
Kortexio Memory MCP 질문
Kortexio Memory MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --transport http contextmemory https://mcp.kortexio.io/%7BappId%7D/mcp를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
Kortexio Memory MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.