Skip to main content
Glama
mahmoud-bebars

distributed-ai-memory-system

distributed-ai-memory-system

A personal, cross-provider memory server: one Cloudflare Worker that lets any MCP-capable AI client (Claude, ChatGPT, Gemini CLI, Claude Code) read and write structured memory for your projects, backed by D1 (registry) and R2 (per-project JSONL blobs). Ships with a small web UI for browsing and chatting with a project's memory via the Anthropic API.

Deployed at memory.mahmoudbebars.dev.

Stack

  • Hono on Cloudflare Workers (no Express, no Next.js)

  • D1 via Drizzle ORM — registry/index of projects

  • R2 — raw memory.jsonl per project, append-only

  • Zod validation at every route boundary

  • React + Vite + Tailwind frontend, served as Workers Static Assets from the same deployment (no separate Pages project)

Related MCP server: SIEMen

Local development

npm install
npm run db:migrate:local
npm run dev            # Worker on :8787

cd app && npm install && npm run dev   # frontend on :5173, proxies /api to :8787

First deploy

See DEPLOY.md.

Project structure

src/
  index.ts              Worker entry — mounts /api routes, falls back to ASSETS
  lib/bindings.ts        Shared Env/Bindings type (D1, R2, ASSETS, API key)
  db/schema.ts            Drizzle table definitions
  modules/
    projects/            4-file module: schema.ts, service.ts, routes.ts, index.ts
    chat/                 Same pattern — Anthropic API chat over a project's memory
migrations/               D1 migrations (wrangler-managed)
app/                       Vite/React frontend, built into app/dist and served by the Worker

Status

See PROJECT_UNDERSTANDING.md for the full architecture and what's still ahead (MCP tool layer, OAuth, sync CLI).

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to read, write, and search security findings, engagement memory, and semantic triage via MCP tools on Cloudflare Workers.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides a shared MCP memory layer for AI clients, backed by Cloudflare Workers and D1, enabling personal Markdown notes management.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides persistent memory for MCP clients, enabling them to remember user preferences and behaviors across conversations using vector search and Cloudflare's infrastructure.
    22
    MIT

View all related MCP servers

Related MCP Connectors

  • Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.

  • Person-owned AI memory that learns, not just stores — portable context for any MCP client.

  • Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.

View all MCP Connectors

Latest Blog Posts

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/mahmoud-bebars/distributed-ai-memory-system'

If you have feedback or need assistance with the MCP directory API, please join our Discord server