
claude gpt memory api
REST API for sharing memory between Claude and GPTs
Repository Info
About This Server
REST API for sharing memory between Claude and GPTs
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Claude-GPT Memory API
REST API 서버로 Claude와 GPTs 간 메모리(지식 그래프) 공유를 가능하게 합니다.
기능
- Claude 메모리 MCP 서버와 동일한 지식 그래프 구조 및 기능 제공
- REST API를 통한 메모리 액세스 (claude-gpt-memory-api)
- GPTs 및 Claude 모두 동일한 파일을 직접 접근하는 방식으로 메모리 공유
설치
- 저장소 클론하기:
git clone https://github.com/na06078/claude-gpt-memory-api.git
cd claude-gpt-memory-api
- 의존성 설치:
npm install
- 환경 변수 설정:
cp .env.example .env
.env 파일을 편집하여 필요한 경우 서버 포트나 메모리 경로를 수정합니다.
기본 설정은 Claude MCP 서버가 사용하는 원본 메모리 파일을 그대로 참조합니다.
사용법
Claude 설정 업데이트
Claude 설정을 업데이트하여 메모리 파일 경로를 확인하고, 이전 복사본을 제거합니다:
node setup-claude-memory.js
이 스크립트는 다음 작업을 수행합니다:
- Claude 설정 파일의 백업 생성
- 이전에 생성한 메모리 복사본 파일 삭제 (
C:\Users\dydgu\Desktop\memory.json등) - Claude의 메모리 서버 설정을 확인하고 필요시 업데이트
- 메모리 경로를
C:\Users\dydgu\Desktop\MCP-Tools\node_modules\@modelcontextprotocol\server-memory\dist\memory.json로 설정
서버 시작
npm start
서버는 기본적으로 http://localhost:3030 에서 실행됩니다.
API 엔드포인트
서버는 다음과 같은 엔드포인트를 제공합니다:
GET /api/graph: 전체 지식 그래프 불러오기POST /api/entities: 새 엔티티 생성POST /api/relations: 새 관계 생성POST /api/observations: 엔티티에 관찰 추가DELETE /api/entities: 엔티티 삭제DELETE /api/observations: 관찰 삭제DELETE /api/relations: 관계 삭제GET /api/search?query=검색어: 지식 그래프 검색GET /api/nodes?names=이름1,이름2: 특정 노드 불러오기
메모리 공유 방식
이 서버는 Claude MCP 메모리 서버가 사용하는 동일한 파일을 직접 참조합니다:
C:\Users\dydgu\Desktop\MCP-Tools\node_modules\@modelcontextprotocol\server-memory\dist\memory.json
따라서:
- 데이터 복사나 변환이 필요 없음
- Claude와 GPTs가 항상 최신 데이터를 공유
- 데이터 중복이나 불일치 없음
- 이전 복사본 파일은 자동으로 삭제됨
Claude 설정 확인
Claude의 설정 파일이 올바르게 설정되었는지 확인하세요:
{
"mcpServers": {
"memory": {
"command": "node",
"args": [
"C:\\Users\\dydgu\\Desktop\\MCP-Tools\\node_modules\\@modelcontextprotocol\\server-memory\\dist\\index.js"
],
"env": {
"MEMORY_FILE_PATH": "C:\\Users\\dydgu\\Desktop\\MCP-Tools\\node_modules\\@modelcontextprotocol\\server-memory\\dist\\memory.json"
}
}
}
}
GPTs 설정
- OpenAI GPTs에서 "Actions" 기능을 사용하여 API 서버 엔드포인트에 연결합니다.
- openapi-schema.json 파일의 내용을 사용하여 스키마를 설정합니다.
- 서버 URL을 액세스 가능한 주소로 설정합니다.
샘플 API 요청
지식 그래프 조회
curl http://localhost:3030/api/graph
엔티티 생성
curl -X POST http://localhost:3030/api/entities -H "Content-Type: application/json" -d '{
"entities": [
{
"name": "test_entity",
"entityType": "person",
"observations": ["This is a test entity"]
}
]
}'
검색
curl http://localhost:3030/api/search?query=test
라이센스
MIT
참고 자료
- Model Context Protocol (MCP) - Claude API에서 사용하는 프로토콜
- Claude Desktop App
Quick Start
Clone the repository
git clone https://github.com/na06078/claude-gpt-memory-apiInstall dependencies
cd claude-gpt-memory-api
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.