mcp-sqlite-graph-memory
Allows indexing and querying C++ code structures, including classes, structs, and definitions, for code knowledge graph navigation.
Provides code graph memory for JavaScript projects, parsing classes, interfaces, functions, arrow functions, ES6 imports/exports, and CommonJS requires.
Allows indexing and querying Kotlin code structures, including classes and definitions, for code knowledge graph navigation.
Allows indexing and querying PHP code structures, including classes and definitions, for code knowledge graph navigation.
Enables deep code graph analysis for Python codebases, extracting classes, methods, functions, async functions, decorators, imports, inheritance, and call sites.
Allows indexing and querying Ruby code structures, including classes and definitions, for code knowledge graph navigation.
Provides code graph memory for Rust projects, parsing modules, structs, enums, traits, impl blocks, and function signatures.
Allows indexing and querying shell script code structures and definitions for code knowledge graph navigation.
Allows indexing and querying Swift code structures, including classes and definitions, for code knowledge graph navigation.
Provides code graph memory for TypeScript projects, parsing classes, interfaces, types, functions, arrow functions, and module imports/exports.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sqlite-graph-memoryShow the call graph for the 'login' function."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-sqlite-graph-memory
Universal Model Context Protocol (MCP) server delivering dynamic SQLite-backed code knowledge graph memory for AI coding assistants and autonomous agents.
Automatically detects active workspaces, parses multi-language ASTs and structural dependencies into an isolated local SQLite knowledge graph, and exposes precision MCP tools to inspect symbols, calculate shortest call/import paths, and navigate code topologies.
๐ Key Capabilities
Zero Runtime Dependencies: Written entirely in Python standard library (
ast,sqlite3,json,re,hashlib,threading).Dynamic Multi-Workspace Isolation: Generates deterministic SHA-256 hashes per workspace root; stores isolated SQLite databases in
~/.mcp-graph-memory/storage/graph_<hash>.db.Incremental Stat Caching: Verifies file
mtimeandsizeto achieve sub-millisecond skips for unchanged files during re-indexing.Multi-Language AST & Structural Parser:
Python: Classes, methods, functions, async functions, decorators, imports (
from x import y,import z), inheritance hierarchies, call sites.TypeScript / JavaScript: Classes, interfaces, types, functions, arrow functions, ES6 imports/exports, CommonJS
require().Go: Packages, imports, structs, interfaces, functions, methods.
Rust: Modules, structs, enums, traits,
implblocks,fnsignatures.C / C++ / Java / PHP / Ruby / Kotlin / Swift / Shell: Structs, classes, definitions.
Freeze & CPU Starvation Protection:
Non-blocking asynchronous daemon initialization.
Non-busy stdio transport (
for raw_line in sys.stdin:).Strict ignore list for
node_modules/,.git/,.venv/, binary weights, and cache blobs.
Related MCP server: Synapse
๐ ๏ธ MCP Tools Specification
Tool | Parameters | Description |
|
| Scans and updates workspace graph memory incrementally or forced. |
|
| Finds symbols with exact file paths, line ranges, signatures, and relations. |
|
| Calculates shortest dependency / import / call paths between two files or symbols. |
|
| Inspects direct callers, callees, imports, and containment edges. |
|
| Returns architectural metrics, hub modules, and directory tree. |
|
| Finds workspace files by path pattern, extension, or contained symbols. |
โก Token Minimization & Compact Mode
All query tools support a format parameter:
format: "compact"(Recommended for AI agents): Formats symbols and graph edges into SCIP-style single-line text (e.g.[class] OrderService @ service.py#L16-L21 | sig: class OrderService), achieving up to 75% reduction in LLM context token consumption.format: "json": Serializes responses into compact, unindented single-line JSON, cutting whitespace overhead by ~40%.
๐ Installation
git clone https://github.com/Luiguard/mcp-sqlite-graph-memory.git ~/.mcp-graph-memory
chmod +x ~/.mcp-graph-memory/server.py๐ Integration Guides
1. Google Antigravity Integration
Option A: Global Configuration (Recommended)
Add graph-memory to your global Antigravity MCP configuration file at ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/home/YOUR_USER/.mcp-graph-memory/server.py"
]
}
}
}(Replace /home/YOUR_USER with your actual $HOME directory path or use an absolute path).
Option B: Workspace-Level Configuration
For per-project activation, place mcp_config.json inside your workspace root under .agents/mcp_config.json:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"${workspaceFolder}/.mcp-graph-memory/server.py"
]
}
}
}2. Claude Desktop Integration
Locate your Claude configuration:
Linux:
~/.config/Claude/claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server definition:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/path/to/mcp-sqlite-graph-memory/server.py"
]
}
}
}3. Cursor / VSCode / Windsurf Integration
In .cursor/mcp.json or .vscode/mcp.json:
{
"mcpServers": {
"graph-memory": {
"command": "python3",
"args": [
"/path/to/mcp-sqlite-graph-memory/server.py"
]
}
}
}๐ง Environment Variables
Variable | Default | Description |
|
| Persistent directory for SQLite databases ( |
|
| Fallback workspace path if client omits |
๐งช Verification & Testing
Execute the automated integration suite:
python3 test_server.py๐ License
MIT License - Copyright (c) 2026 Benjamin Leimer. See LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
251Ground-truth code graph for your codebase: exact callers, callees, symbols & dependencies.
Persistent, portable memory for AI assistants โ your private memory graph, from any MCP client.
Multiple MCP tools, persistent graph memory, token-saving data pointers, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with a structured, token-efficient map of a codebase's symbols, dependencies, and relationships via MCP tools like overview, query, and impact analysis.8MIT
- FlicenseNot gradedqualityCmaintenanceProvides structural code intelligence via 26 MCP tools, enabling AI assistants to query code symbols, dependencies, and call graphs accurately without file-pasting.-
- FlicenseNot gradedqualityDmaintenanceProvides code intelligence by indexing source code into SQLite and offering MCP tools for symbol search, flow tracing, and context retrieval to assist with code navigation and understanding.-
- AlicenseNot gradedqualityAmaintenanceA persistent code-intelligence MCP server that builds a queryable knowledge graph of your codebase, enabling AI assistants to perform cross-file structural reasoning, dependency analysis, and blast radius detection.6MIT
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