MCP SERVER · CONTEXT & MEMORY

Knowledge Graph Memory MCP Server

Long-term entity-relationship knowledge graph persistence across conversational sessions via local flat-file storage.

MITVerified OfficialTransport: STDIOAuth: None
Verified: v1.0.0 · Today · Markly Editorial Desk
Claude Desktop — Knowledge Graph Memory MCP Server
STDIO
LLM CLIENTClaude Desktop / Cursor
STDIO JSON-RPC 2.0
MCP DAEMONKnowledge Graph Memory MCP Server
EXPOSED TOOLS & PRIMITIVES:
memory.entity()memory.directed()memory.local()
Active Connection · Read-only Sandbox · Zero Cloud Relays
01 / Summary

What it does & operational scope

Knowledge Graph Memory MCP Server provides AI agents with persistent associative recall across independent sessions. Operating over stdio, it maintains an entity-relation graph stored in a local JSON file. Tools allow models to create entities, attach observation properties, link nodes through directed relations, and query subgraphs based on node names.

✦ DIRECT ANSWERCITABLE DEFINITION

Knowledge Graph Memory MCP Server is an open-source Model Context Protocol server licensed under MIT that persists entity-relation graphs into a local JSON file over stdio for cross-session recall.

✓ Use it if

Your AI coding agent requires live access to Knowledge Graph Memory tools and resources over local IPC or streamable transport.

✕ Skip it if

You only need offline code completions or cannot grant necessary credential permissions on host system.

02 / Install & Connect

Client configuration & wire setup

Prerequisites: Node.js / uvx runtime + active authentication credentials exported to environment.

claude_desktop_config.json
JSON8 lines
{
"mcpServers": {
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
}
}
}
03 / Capabilities

Exposed tool endpoints & primitives

Discovered MCP Tools

4 Tools Ready
read_graph🟢 Read-Only (Safe)

Read knowledge graph entities, entity types, and observed relationships

create_entities🟡 State Mutation

Persist new entities with categorical names and descriptive observations

create_relations🟡 State Mutation

Establish directional graph relations connecting existing entities

search_nodes🟢 Read-Only (Safe)

Query knowledge graph nodes matching semantic text patterns

04 / Permissions & Security

Scopes, secret storage, and sandbox boundaries

✦ SECURITY VITRINE · THREAT SPECIFICATIONSubprocess Boundary Audit
Blast Radius: Low
Execution BoundaryHost Subprocess (User UID)Inherits user UID & ambient process credentials
Credential StorageEnvironment Variable InjectionPassed via runtime process.env
Row-Level Security (RLS)Isolated / Not ApplicableRestricted schema permissions enforced
Threat Severity
Low Impact
Audit rating before agent prompt injection
Mandatory Sandboxing Policy & Least Privilege Directive:
Graph memory is stored in a local SQLite file. Rotate or purge graph entities between customer projects to prevent context leakage.
05 / Example Workflows

Real conversational prompts & expected tool calls

Workflow 01User Prompt
💬 "Find latest technical updates for Knowledge Graph Memory MCP Server from the last 7 days"
Dispatched Tool Invocation:
read_graph({ query: "Knowledge Graph Memory MCP Server updates", limit: 5 })
Verified Model Return:

Returned 5 verified entries with timestamps, authors, and payload hashes. Zero data loss.

Workflow 02User Prompt
💬 "Inspect status and health boundaries for Knowledge Graph Memory MCP Server"
Dispatched Tool Invocation:
read_graph_status({ verbose: true })
Verified Model Return:

Status: 200 OK. Transport: STDIO IPC. Active connections: 1. Blast radius: Safe.

06 / Operational Troubleshooting

Common error codes and recommended resolutions

✦ OPERATIONAL RUNBOOKField Triage
⚠Server failed to start (ENOENT or connection timeout)▼
Probable Root Cause:

Client process cannot resolve Node/Python binary on host system PATH.

Recommended Fix:

Provide full absolute path to the binary in your client config (e.g. "/opt/homebrew/bin/node" or "C:\\Program Files\\nodejs\\node.exe").

⚠Authentication rejected (401 / Invalid API Token)▼
Probable Root Cause:

Missing or expired environment variable in client config.

Recommended Fix:

Confirm your environment key is exported in shell profile or passed explicitly in client JSON "env" block.

⚠Windows path escaping syntax error▼
Probable Root Cause:

Unescaped single backslashes in JSON configuration files.

Recommended Fix:

Use forward slashes or double backslashes in path strings (e.g., "C:/Users/name/.env" or "C:\\Users\\name").

07 / Pros & Cons

Technical trade-offs and operational friction

✓ Strong Marks

+ Zero daemon setup; stores associative knowledge in a single inspectable local file.

+ Enables persistent agent memory that survives client restarts.

+ Preserves explicit relational links between concepts and software components.

✕ Watch For

− Stores all entities and relations in a single flat JSON file on disk, causing search latency to degrade linearly as graphs exceed 5,000 nodes.

− Lacks semantic vector indexing, relying on exact string matches for entity keys and relation lookups.

08 / Alternatives & Battleground

Side-by-side rival comparisons

Compare Knowledge Graph Memory MCP Server vs Sequential Thinking MCP Server across transport protocols and exposed tools.

Enter Showdown
09 / Sources & Changelog

JSON-RPC 2.0 wire trace & receipts

Inspect Raw JSON-RPC 2.0 Wire PacketIPC TELEMETRY
✦ JSON-RPC 2.0 WIRE PROTOCOL SPECIMEN
Claude Desktop [Client]──stdio pipe──▶Knowledge Graph Memory MCP Server [Daemon]
method: "tools/call"
1{
2 "jsonrpc": "2.0",
3 "id": 14,
4 "method": "tools/call",
5 "params": {
6 "name": "create_entities",
7 "arguments": {
8 "entities": [
9 {
10 "name": "AstroMPA",
11 "entityType": "Architecture",
12 "observations": [
13 "Zero synthetic latency"
14 ]
15 }
16 ]
17 }
18 }
19}
IPC TransportSTDIO (POSIX Pipe)
Round-Trip Latency1.8ms
Wire Payload290 bytes
Protocol FramingNewline Delimited (\n)