MCPdir β€” MCP Server Directory
πŸ‡¬πŸ‡§ πŸ‡ͺπŸ‡Έ

Memory Graph MCP

by FlarelyLegal

Persistent shared memory for LLMs with knowledge graphs and semantic search

ai-ml Node.js Advanced Self-hostable No API key
⭐ 2 stars πŸ“… Updated: 1mo ago

Description

A remote MCP server running on Cloudflare Workers that provides persistent shared memory for LLMs through knowledge graphs, semantic search, RBAC namespace sharing, and temporally-decayed recall. Entities are typed and connected via weighted relations, traversable with BFS. Semantic search uses Workers AI embeddings (bge-m3, 1024d) backed by Cloudflare Vectorize. Namespace-level role-based access control supports owner, editor, and viewer roles with group-based sharing. Includes a full audit trail with D1 hot window (90 days) plus R2 NDJSON archive for compliance integration.

βœ… Best for

Teams needing persistent, shared, searchable memory for AI assistants with access control

⏭️ Skip if

You need a simple local-only memory solution without cloud infrastructure

πŸ’‘ Use cases

  • Giving AI assistants persistent cross-session memory with structured knowledge
  • Collaborative knowledge management with role-based access across teams
  • Building recall systems with temporal decay for relevance-aware retrieval
  • Semantic search over accumulated knowledge graphs

πŸ‘ Pros

  • βœ“ Edge-deployed on Cloudflare Workers for low latency globally
  • βœ“ 17 MCP tools plus full REST API with OpenAPI 3.1 docs
  • βœ“ RBAC namespace sharing with OAuth/OIDC via Cloudflare Access
  • βœ“ Audit trail ready for Loki/Splunk/Datadog/Elastic ingestion

πŸ‘Ž Cons

  • βœ— Requires Cloudflare infrastructure (Workers, D1, Vectorize, KV, R2)
  • βœ— Very new project with minimal community adoption so far
  • βœ— Self-hosting requires familiarity with Cloudflare Workers ecosystem

πŸ”§ Exposed tools (17 tools)

ToolCategoryDescription
set_namespaceaccess-controlSwitch between namespaces for memory isolation
list_namespacesaccess-controlList all accessible namespaces and roles
share_namespaceaccess-controlShare namespace access with users or groups
get_entity_historyauditView change history for an entity
get_audit_logauditQuery the audit trail for compliance
create_entitiesknowledge-managementCreate typed entities in the knowledge graph
create_relationsknowledge-managementCreate weighted relations between entities
open_nodesknowledge-managementRetrieve specific entities by name
read_graphknowledge-managementRead the full knowledge graph for a namespace
delete_entitiesknowledge-managementRemove entities from the knowledge graph
delete_relationsknowledge-managementRemove relations between entities
add_observationsknowledge-managementAdd observations to existing entities
delete_observationsknowledge-managementRemove observations from entities
traverse_graphknowledge-managementBFS traversal of entity relations
get_temporal_contextknowledge-managementRetrieve entities with temporal decay scoring
get_statsmonitoringGet namespace and system usage statistics
search_nodessearchSemantic search across entities and relations

πŸ’‘ Tips & tricks

The public demo at memory.flarelylegal.com/api/docs lets you explore the API interactively before deploying your own instance.

Quick info

Author
FlarelyLegal
License
MIT
Runtime
Node.js 18+
Transport
streamable-http
Category
ai-ml
Difficulty
Advanced
Self-hostable
βœ…
Auth
β€”
Docker
β€”
Version
1.2.3
Updated
Feb 28, 2026

Client compatibility

  • ❓ Claude Code
  • ❓ Cursor
  • ❓ VS Code Copilot
  • ❓ Gemini CLI
  • ❓ Windsurf
  • ❓ Cline
  • ❓ JetBrains AI
  • ❓ Warp

Platforms

🍎 macOS 🐧 Linux πŸͺŸ Windows