Page History
| Info |
|---|
Memorizer v1 MCP 서버는 LLM(대규모 언어 모델)이 컨텍스트와 메모리를 재사용하고 기억할 수 있도록 돕는 컨텍스트/메모리 서버입니다[3]. 이 서버는 에이전트가 서버 전송 이벤트를 통해 통신하며, 인간 운영자는 UI를 통해 메모리를 확인하고 관리할 수 있습니다[6]. Memorizer는 Postgres와 PG vector, 그리고 임베딩 생성을 위한 작은 Llama 인스턴스에 의존하며, 이 모든 것은 Docker Compose 파일을 통해 자동으로 설정될 수 있습니다[51]. GPU 없이도 Raspberry Pi와 같은 저사양 컴퓨터에서도 실행 가능합니다 |
다음 오픈소스를 통해 이러한 컨셉을 로컬에서 수행또는 팀지식 장기메모리를 위한 용도로 구축해 활용할수 있습니다.
git :
- 오리진 : https://github.com/Aaronontheweb/memorizer-v1
- 확장버전 : https://github.com/psmon/memorizer-v1
- OpenAI 연결가능
- Graph탐색지원
위 오픈소스를 Pull한후 다음 명령을 수행해 로컬에 셋업
...
| Code Block | ||
|---|---|---|
| ||
dotnet publish -c Release /t:PublishContainer |
- dotnet 미설치시 리눅스 dot net sdk 9 설치법 GPT에 문의...sdk/runtime 설치
MCP설정 - VS CODE용
| Code Block | ||
|---|---|---|
| ||
{
"servers": {
"microsoft.docs.mcp": {
"type": "http",
"url": "https://learn.microsoft.com/api/mcp"
},
"memorizer": {
"type": "sse",
"url": "http://localhost:5000/sse"
}
},
"inputs": []
} |
...
- 실시간으로 업데이트가 되지만 다양한 옵션으로 메모리(지식)를 재 업데이트 하는 기능
Graph RAG
- Graph Rag를 추가지원 -확장버전
테스트
팀의 장기기억메모리를 활용하는 컨셉을 알기위해 수행
...
- LLM이 생성한 결과를 잘 검색 ( 실시간은 아니지만 학습이 수초내 수행될것으로 예상 - 임베딩및,LLM성능)
핵심코드 살펴보기
- https://github.com/Aaronontheweb/memorizer-v1/tree/dev/src/Memorizer/Actors
- 메타데이터를 저장부분의 핵심코드 액터모델로 작성액터는 이벤트기반 상태처리및 백그라운드 처리할때 유용
- 이 코드를 분석해 새로운 버전을 다른언어로 만들고자할때 참고할수 있겠습니다.
MCP의 기본개념과 MCP를 이용한 장기기억메모리 파트와 관련한 컨셉은 다음 영상및 영상분석에서 더 자세한 컨셉및 기초개념을 알수 있습니다.
...
- akka.io/what-is-agentic-ai - Akka진영에서 제공하는 agentc-ai 기능
- MCP with Actor - 유사컨셉으로 MCP Note 작성버전
- https://github.com/psmon/kopring-reactive-labs/blob/main/AgenticCoding/readme-kr.md - kotlin으로도 이용할수 있으며, VIBE로만 다양한 CQRS 액터모델 양산하는 개인 연구저장소입니다.
PlayGround
모두의 MCP 메모리 : Playground 데모로 임시 운행합니다.
- server https://mcp.webnori.com/ui
- sse mode
MCP
...
Rule for MCP
🧠 Example System Prompt for LLMs
...
⚡ Pro Tip: Add this system prompt to your AGENT.md, Cursor Rules files, or any AI agent configuration! This will dramatically improve how often and effectively your LLM uses the Memorizer service for persistent memory management.
You have access to a long-term memory system via the Model Context Protocol (MCP) at the endpoint
memorizer. Use the following tools:
store: Store a new memory. Parameters:type,content(markdown),source,tags,confidence,relatedTo(optional, memory ID),relationshipType(optional).search: Search for similar memories. Parameters:query,limit,minSimilarity,filterTags.get: Retrieve a memory by ID. Parameter:id.getMany: Retrieve multiple memories by their IDs. Parameter:ids(list of IDs).delete: Delete a memory by ID. Parameter:id.createRelationship: Create a relationship between two memories. Parameters:fromId,toId,type.Use these tools to remember, recall, relate, and manage information as needed to assist the user. You can also manually retrieve or relate memories by their IDs when necessary.
...
| Expand | ||
|---|---|---|
| ||
🧠 LLM용 예시 시스템 프롬프트 ⚡ Pro Tip: 당신은 **Model Context Protocol(MCP)**을 통해
|
프로젝트지침 : 사용자
| Code Block | ||
|---|---|---|
| ||
MCP 기능을 참고 다음 Rule을 준수할것
Rule:
- 요청내용에 대해 메모리 먼저 검색해 활용할것, 연관자료 없을시 너의 자체 지식활용
- 메모리 저장 여부는 물어보고 저장할것 - 자동저장 금지
- 요약한후 메모리 저장이란 요청이 있을시, 메모리검색 없이 신규정보로 저장
## 📌 MCP를 통한 장기 메모리 접근
당신은 **Model Context Protocol(MCP)**을 통해 `memorizer` 엔드포인트에서 장기 메모리 시스템에 접근할 수 있습니다.
다음 도구들을 사용할 수 있습니다:
---
### 1. **store** — 새 메모리를 저장
**매개변수:**
- `type`
- `content` (markdown)
- `source`
- `tags`
- `confidence`
- `relatedTo` (선택, 메모리 ID)
- `relationshipType` (선택)
---
### 2. **search** — 유사한 메모리 검색
**매개변수:**
- `query`
- `limit`
- `minSimilarity`
- `filterTags`
---
### 3. **get** — ID로 메모리 가져오기
**매개변수:**
- `id`
---
### 4. **getMany** — 여러 메모리를 ID 목록으로 가져오기
**매개변수:**
- `ids` (ID 리스트)
---
### 5. **delete** — ID로 메모리 삭제
**매개변수:**
- `id`
---
### 6. **createRelationship** — 두 메모리 간 관계 생성
**매개변수:**
- `fromId`
- `toId`
- `type` |
MCP Nginx PROXY를 위한추가팁
| Code Block | ||
|---|---|---|
| ||
# location 컨텍스트에서 유효
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# SSE는 스트림을 즉시 흘려보내야 함
proxy_buffering off;
proxy_request_buffering off;
proxy_cache off;
# 압축/청크가 스트림을 묶지 않도록
gzip off;
proxy_set_header Accept-Encoding "";
# 커넥션/타임아웃
proxy_http_version 1.1;
proxy_read_timeout 1h;
proxy_send_timeout 1h;
# Nginx가 헤더를 재작성하지 않도록(일부 환경에서 유용)
proxy_set_header Connection ""; |
- SSE를 SSL Proxy시 모드로 작동시 참고 - http 1.1버전
VS CODE
...
| theme | Emacs |
|---|---|
| title | .vscode/mcp.json |
...

