
A sophisticated knowledge graph memory system that stores interconnected information with rich
A sophisticated knowledge graph memory system that stores interconnected information with rich semantic structure.
·
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.
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.
The MCP server exposes 8 tools that let an LLM build, search, and traverse a knowledge graph:
| Tool | Purpose |
|---|---|
search_nodes | Full-text search across all nodes (FTS5) |
explore_context | Weighted graph traversal around given nodes |
create_nodes | Create or merge-update nodes of any type |
create_relations | Create edges with context, weight, and confidence |
add_sources | Record provenance (Source nodes + DERIVED_FROM links) |
get_temporal_sequence | Follow chronological chains (NEXT, BEFORE, CAUSES) |
create_reasoning_chain | Build structured multi-step reasoning |
get_reasoning_chain | Retrieve reasoning chains by name or topic |
Every tool declares an input schema (validated), an output schema, and behavior
annotations (read-only vs. write), and returns machine-readable
structuredContent alongside a JSON text block. Writes merge: re-creating
an existing node or edge updates the fields you provide and preserves the ones
you don't.
The server also exposes MCP prompts — a system prompt with the overall
tool-usage workflow, plus per-tool usage guidance under each tool's name.
Entity, Event, Concept, Attribute, Proposition, Emotion, Agent, ScientificInsight, Law, Location, Thought, ReasoningChain, ReasoningStep, Source, EmotionalEvent
nodes table for all types, edges table with UNIQUE constraint, plus aliases and observations tablesproperties columnbetter-sqlite3 native module:
xcode-select --install)build-essential (apt install build-essential)npx mcp-engramnpm install
npx nx build mcp-engram
node dist/servers/mcp-engram/main.js| Variable | Required | Default | Description |
|---|---|---|---|
MCP_ENGRAM_DB_PATH | No | ~/.mcp-engram/knowledge.db | Path to the SQLite database file |
Add the server to your Claude Desktop config:
Open your config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd the server configuration:
{
"mcpServers": {
"mcp-engram": {
"command": "npx",
"args": ["mcp-engram"]
}
}
}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.)# 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-memoryMIT
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add mcp-engram -- npx mcp-engram{
"mcpServers": {
"mcp-engram": {
"args": [
"mcp-engram"
],
"command": "npx"
}
}
}code --add-mcp '{"name":"mcp-engram","args":["mcp-engram"],"command":"npx"}'[mcp_servers.mcp-engram]
command = "npx"
args = ["mcp-engram"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/mcp-engram to learn what the "Mcp Engram" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
npx mcp-engram
npx nx build mcp-engram
npx nx run-many -t build
npx nx run-many -t test
npx nx lint mcp-engram
npx nx build graphrag-memoryThis server runs locally, so we can't read its tool list over the web yet.
We could not run this server: its npm package has not answered in our offline sandbox, which usually means it needs an API key or other configuration to start. The four checks that need a live server are left out, and the grade tops out at B until we can read its tools.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/mcp-engram)Nothing comparable is listed yet.
v2.1.0mcp-engram v2.1.0 — structured output, merge upserts, MCP SDK 1.30Release notesv2.0.0mcp-engram v2.0.0 — SQLite-backed cognitive knowledge graphRelease notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "mcp-engram" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.