
rsl-innovation/mem-port
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
A local MCP (Model Context Protocol) server for portable, long-term agentic memory — a thumb drive for your AI context.
개요
A local MCP (Model Context Protocol) server for portable, long-term agentic memory — a thumb drive for your AI context. Every AI copilot (Claude Code, Cursor, Windsurf, ...) keeps its own memory, siloed to that tool. The usual workaround — copy-pasting context, summaries, or exported notes from one agent into another — only captures a snapshot frozen at the moment you made it. From there the copies drift: each agent keeps learning on its own, nothing keeps the copies in sync, and the longer you go the more your copilots disagree about what's actually true. mem-port runs as a single local daemon that any number of copilots can connect to, backed by an embedded knowledge graph (entities, episodes, memories, skills, architectural decision records, and the relations between them) that survives restarts and can be exported to a portable file and moved anywhere. Every connected copilot reads and writes the same graph, so there's nothing to paste and nothing to drift.
README
원문 README의 일부입니다. 원문 보기.
mem-port
A local MCP (Model Context Protocol) server for portable, long-term agentic memory — a thumb drive for your AI context.
Every AI copilot (Claude Code, Cursor, Windsurf, …) keeps its own memory, siloed to that tool. The usual workaround — copy-pasting context, summaries, or exported notes from one agent into another — only captures a snapshot frozen at the moment you made it. From there the copies drift: each agent keeps learning on its own, nothing keeps the copies in sync, and the longer you go the more your copilots disagree about what’s actually true. mem-port runs as a single local daemon that any number of copilots can connect to, backed by an embedded knowledge graph (entities, episodes, memories, skills, architectural decision records, and the relations between them) that survives restarts and can be exported to a portable file and moved anywhere. Every connected copilot reads and writes the same graph, so there’s nothing to paste and nothing to drift.
Unlike other memory-for-agents projects, mem-port needs no external services — no Postgres, no Qdrant, no Neo4j. It’s one process, one embedded SurrealDB instance combining graph storage and vector search, and zero-config local semantic search (no API key required).
Connecting a client (below) gives it the ability to use mem-port; for more detailed, tunable instructions on what it should actually save and when — including keeping personal/team/project memory in separate scopes — see MEMORY_GUIDE.md.
Quick start
npx @rsl-innovation/mem-port serve
This starts a daemon on http://127.0.0.1:8787/mcp. Point any MCP client at it over Streamable HTTP, with a library-id header identifying your workspace. Every copilot that connects with the same library-id shares the same memory; different library-ids are fully isolated from each other (each maps to its own SurrealDB namespace/database) — there’s no cross-tenant leakage.
npx re-checks the registry on every invocation. If you’ll be running mem-port commands often, install it globally instead so mem-port is a plain command on your PATH:
npm install -g @rsl-innovation/mem-port
mem-port serve
The rest of this README uses mem-port for brevity. If you didn’t install globally, substitute npx @rsl-innovation/mem-port wherever you see that — it works identically, just slower to start.
Connecting from Claude Code
Easiest: use the CLI (--header accepts any number of Key: Value pairs). Add --scope user so the server is available in every project on this machine, not just the one you happen to be in when you run the command — the default local scope ties it to a single project directory:
설치
npx -y mcp-remote@latest http://127.0.0.1:8787/mcp --header library-id:my-personal-workspace설정
{
"mcpServers": {
"mem-port": {
"type": "http",
"url": "http://127.0.0.1:8787/mcp",
"headers": { "library-id": "my-personal-workspace" }
}
}
}