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)
| Tool | Category | Description |
|---|---|---|
| set_namespace | access-control | Switch between namespaces for memory isolation |
| list_namespaces | access-control | List all accessible namespaces and roles |
| share_namespace | access-control | Share namespace access with users or groups |
| get_entity_history | audit | View change history for an entity |
| get_audit_log | audit | Query the audit trail for compliance |
| create_entities | knowledge-management | Create typed entities in the knowledge graph |
| create_relations | knowledge-management | Create weighted relations between entities |
| open_nodes | knowledge-management | Retrieve specific entities by name |
| read_graph | knowledge-management | Read the full knowledge graph for a namespace |
| delete_entities | knowledge-management | Remove entities from the knowledge graph |
| delete_relations | knowledge-management | Remove relations between entities |
| add_observations | knowledge-management | Add observations to existing entities |
| delete_observations | knowledge-management | Remove observations from entities |
| traverse_graph | knowledge-management | BFS traversal of entity relations |
| get_temporal_context | knowledge-management | Retrieve entities with temporal decay scoring |
| get_stats | monitoring | Get namespace and system usage statistics |
| search_nodes | search | Semantic 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