mcp-sqlite-graph-memory
mcp-sqlite-graph-memory
AI 코딩 어시스턴트와 자율 에이전트를 위한 동적 SQLite 기반 코드 지식 그래프 메모리를 제공하는 범용 Model Context Protocol(MCP) 서버입니다.
활성 작업 공간을 자동으로 감지하고, 다중 언어 AST와 구조적 종속성을 격리된 로컬 SQLite 지식 그래프로 파싱하며, 심볼 검사, 최단 호출/가져오기 경로 계산, 코드 토폴로지 탐색을 위한 정밀한 MCP 도구를 제공합니다.
🌟 주요 기능
런타임 종속성 제로: 전적으로 Python 표준 라이브러리(
ast,sqlite3,json,re,hashlib,threading)로 작성되었습니다.동적 다중 작업 공간 격리: 작업 공간 루트별로 결정적 SHA-256 해시를 생성하고, 격리된 SQLite 데이터베이스를
~/.mcp-graph-memory/storage/graph_<hash>.db에 저장합니다.증분 stat 캐싱: 파일
mtime과size를 검증하여 재인덱싱 중 변경되지 않은 파일은 1밀리초 미만으로 건너뜁니다.다중 언어 AST 및 구조적 파서:
Python: 클래스, 메서드, 비동기 함수, 함수, 데코레이터, 가져오기(
from x import y,import z), 상속 계층, 호출 지점.TypeScript / JavaScript: 클래스, 인터페이스, 타입, 함수, 화살표 함수, ES6 가져오기/내보내기, CommonJS
require().Go: 패키지, 가져오기, 구조체, 인터페이스, 함수, 메서드.
Rust: 모듈, 구조체, 열거형, 트레이트,
impl블록,fn시그니처.C / C++ / Java / PHP / Ruby / Kotlin / Swift / Shell: 구조체, 클래스, 정의.
동결 및 CPU 기아 방지:
비차단 비동기 데몬 초기화.
비점유 stdio 전송(
for raw_line in sys.stdin:).node_modules/,.git/,.venv/, 바이너리 가중치, 캐시 블롭에 대한 엄격한 무시 목록.
🛠️ MCP 도구 사양
도구 | 매개변수 | 설명 |
|
| 증분 또는 강제로 작업 공간 그래프 메모리를 스캔하고 업데이트합니다. |
|
| 정확한 파일 경로, 줄 범위, 시그니처 및 관계로 심볼을 찾습니다. |
|
| 두 파일 또는 심볼 간의 최단 종속성/가져오기/호출 경로를 계산합니다. |
|
| 직접 호출자, 호출 수신자, 가져오기 및 포함 관계를 검사합니다. |
|
| 아키텍처 메트릭, 허브 모듈 및 디렉터리 트리를 반환합니다. |
|
| 경로 패턴, 확장자 또는 포함된 심볼로 작업 공간 파일을 찾습니다. |
🚀 설치
git clone https://github.com/Luiguard/mcp-sqlite-graph-memory.git ~/.mcp-graph-memory
chmod +x ~/.mcp-graph-memory/server.py🔌 통합 가이드
1. Google Antigravity 통합
옵션 A: 전역 구성(권장)
graph-memory를 ~/.gemini/config/mcp_config.json의 전역 Antigravity MCP 구성 파일에 추가하세요:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/home/YOUR_USER/.mcp-graph-memory/server.py"
]
}
}
}(/home/YOUR_USER를 실제 $HOME 디렉터리 경로로 바꾸거나 절대 경로를 사용하세요).
옵션 B: 작업 공간 수준 구성
프로젝트별 활성화를 위해 mcp_config.json을 작업 공간 루트의 .agents/mcp_config.json 아래에 배치하세요:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"${workspaceFolder}/.mcp-graph-memory/server.py"
]
}
}
}2. Claude Desktop 통합
Claude 구성을 찾으세요:
Linux:
~/.config/Claude/claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
서버 정의를 추가하세요:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/path/to/mcp-sqlite-graph-memory/server.py"
]
}
}
}3. Cursor / VSCode / Windsurf 통합
.cursor/mcp.json 또는 .vscode/mcp.json에서:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/path/to/mcp-sqlite-graph-memory/server.py"
]
}
}
}🔧 환경 변수
변수 | 기본값 | 설명 |
|
| SQLite 데이터베이스( |
|
| 클라이언트가 |
🧪 검증 및 테스트
자동화된 통합 테스트 스위트를 실행하세요:
python3 test_server.py📄 라이선스
MIT 라이선스 - 저작권 (c) 2026 Benjamin Leimer. 자세한 내용은 LICENSE를 참조하세요.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Luiguard/mcp-sqlite-graph-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server