mcp-engram
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-engramsearch for nodes related to declarative memory"
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 Engram — Cognitive Knowledge Graph
A Model Context Protocol (MCP) server for building and exploring a cognitive neuroscience-inspired knowledge graph. Models thought, emotion, reasoning, and episodic memory after the structure of the human mind. Backed by SQLite — zero infrastructure, single file on disk, works offline.
Quick Start
npx mcp-engramOr install globally:
npm install -g mcp-engram
mcp-engramThe server stores its database at ~/.mcp-engram/knowledge.db by default. No external services required.
Related MCP server: DevFlow MCP
Architecture
How It Works
The MCP server exposes 8 tools that let an LLM build, search, and traverse a knowledge graph:
Tool | Purpose |
| Full-text search across all nodes (FTS5) |
| Weighted graph traversal around given nodes |
| Create or upsert nodes of any type |
| Create edges with context, weight, and confidence |
| Record provenance (Source nodes + DERIVED_FROM links) |
| Follow chronological chains (NEXT, BEFORE, CAUSES) |
| Build structured multi-step reasoning |
| Retrieve reasoning chains by name or topic |
Node Types (15)
Entity, Event, Concept, Attribute, Proposition, Emotion, Agent, ScientificInsight, Law, Location, Thought, ReasoningChain, ReasoningStep, Source, EmotionalEvent
Storage
SQLite with WAL mode for concurrent reads
FTS5 virtual table for full-text search with BM25 ranking
Recursive CTEs for graph traversal
Single
nodestable for all types,edgestable with UNIQUE constraint, plusaliasesandobservationstablesComplex objects stored as JSON in a
propertiescolumn
Installation
Prerequisites
Node.js v18+
A C/C++ toolchain for compiling the
better-sqlite3native module:Mac: Xcode Command Line Tools (
xcode-select --install)Linux:
build-essential(apt install build-essential)Windows: Visual Studio Build Tools
From npm
npx mcp-engramFrom source
npm install
npx nx build mcp-engram
node dist/servers/mcp-engram/main.jsEnvironment Variables
Variable | Required | Default | Description |
| No |
| Path to the SQLite database file |
Integrating with Claude Desktop
Add the server to your Claude Desktop config:
Open your config file:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"mcp-engram": {
"command": "npx",
"args": ["mcp-engram"]
}
}
}Restart Claude Desktop.
Project Structure
servers/mcp-engram/ # MCP server (TypeScript, ESM)
src/main/ # Server bootstrap, tool handlers, prompts
src/storage/ # SQLite backend, FTS, schema, validation
src/types/ # TypeScript interfaces and enums
libs/graphrag-memory/ # Shared type library (Entity, Relation, etc.)Development
# Build all projects
npx nx run-many -t build
# Test all projects
npx nx run-many -t test
# Lint
npx nx lint mcp-engram
# Build specific project
npx nx build mcp-engram
npx nx build graphrag-memoryLicense
MIT
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.
Latest Blog Posts
- 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/shuruheel/mcp-engram'
If you have feedback or need assistance with the MCP directory API, please join our Discord server