AI Cloud Memory

AI Cloud Memory

Enables AI clients to access a shared, authenticated memory and project management system with durable storage, task tracking, roadmaps, and semantic search, deployed on Cloudflare.

Category
访问服务器

README

AI Cloud Memory Community Edition

Your own shared memory, project board and long-term roadmap for AI clients, running in your Cloudflare account and owned through your GitHub identity.

Deploy to Cloudflare CI MIT licence

AI Cloud Memory Community Edition social card

AI Cloud Memory gives Codex, Claude Code, OpenCode and compatible web clients one authenticated MCP endpoint for durable memory and project lifecycle work. D1 is canonical. Search works in lexical and temporal mode by default, while Vectorize and Workers AI can be enabled later for semantic retrieval and reranking.

No n8n, home server, vendor account or service operated by this project is required. Each adopter deploys an isolated copy to their own Cloudflare and GitHub accounts.

What you get

  • Owner-only GitHub OAuth and scoped MCP OAuth
  • Memories and standing directives with provenance, labels, archive, supersession and review
  • Projects, Kanban tasks, completion receipts, archived work and Done history
  • Longer-term project roadmaps with safe promotion into tasks
  • Temporal query handling, bounded ranking boosts and semantic deduplication
  • Explainable search results and a private relevance benchmark
  • Managed Obsidian Markdown projection and portable encrypted exports
  • Responsive dashboard designed for desktop and mobile Safari
  • 24 narrowly scoped cloudmemory_* MCP tools
  • Optional connectors and automation credentials, without making an automation platform a dependency

Architecture

Codex · Claude · OpenCode · compatible web clients
                         │
                 OAuth-protected MCP
                         │
             Cloudflare Worker + dashboard
                ┌────────┼────────┐
                │        │        │
               D1       KV    Static assets
           canonical   OAuth      UI
                │
       optional derived services
       Vectorize · Workers AI
                │
       optional encrypted export
             your GitHub repo

The Worker, database, OAuth state and optional AI index belong to the adopter. The public project has no central memory service and no access to deployed instances. See Architecture and Privacy.

Deploy

1. Create your copy

Use the Deploy to Cloudflare button above. Cloudflare can create a GitHub copy and provision supported Worker bindings from wrangler.jsonc.

If automatic Vectorize provisioning is unavailable in your account, create the optional index before enabling semantic search:

npx wrangler vectorize create ai-cloud-memory --dimensions=768 --metric=cosine

Keep SEMANTIC_SEARCH_ENABLED=false until that index exists. The base product does not call Workers AI or Vectorize in this mode.

2. Choose the final URL

Use the generated workers.dev origin or attach your final custom domain. Record the exact HTTPS origin without a trailing slash, for example:

https://ai-cloud-memory.your-subdomain.workers.dev

Set PUBLIC_ORIGIN to that origin. auto is useful only during initial deployment. Setting the final origin before creating GitHub OAuth avoids a second OAuth callback migration.

3. Create a GitHub OAuth App

In GitHub, open Settings → Developer settings → OAuth Apps → New OAuth App.

Field Value
Application name AI Cloud Memory
Homepage URL https://your-final-origin.example
Authorisation callback URL https://your-final-origin.example/callback

Record the client ID and generate a client secret. Never commit the secret.

4. Configure the owner lock

Set these non-secret Worker variables in wrangler.jsonc or the Cloudflare dashboard:

ALLOWED_GITHUB_USER_ID=your numeric GitHub user ID
ALLOWED_GITHUB_LOGIN=your GitHub login
PUBLIC_ORIGIN=https://your-final-origin.example
SEMANTIC_SEARCH_ENABLED=false

The numeric user ID is the immutable security boundary; the login is display metadata. Set the secrets from a trusted terminal:

npx wrangler secret put GITHUB_CLIENT_ID
npx wrangler secret put GITHUB_CLIENT_SECRET
openssl rand -hex 32 | npx wrangler secret put COOKIE_ENCRYPTION_KEY

5. Migrate and deploy

npm ci
npm run check
npm run deploy

The deploy command intentionally publishes twice on a fresh account: the first pass lets Cloudflare auto-provision declared resources, migrations then initialise D1, and the final pass becomes the verified application release. The placeholder owner lock keeps the bootstrap deployment inaccessible until you replace it.

Then open /setup.html on your deployed origin for the local, browser-only checklist. Full instructions are in Deployment and Onboarding.

Connect an AI client

Your remote MCP endpoint is:

https://your-final-origin.example/mcp

Common native clients:

# Codex
codex mcp add cloud-memory --url https://your-final-origin.example/mcp

# Claude Code
claude mcp add --transport http cloud-memory https://your-final-origin.example/mcp

OpenCode can use a remote MCP entry in opencode.json:

{
  "mcp": {
    "cloud-memory": {
      "type": "remote",
      "url": "https://your-final-origin.example/mcp",
      "enabled": true
    }
  }
}

Complete OAuth separately in every client. Verify cloudmemory_health, cloudmemory_board, a harmless search and one explicitly approved write. Web-client capabilities and plan restrictions vary. See Client setup.

Required and optional services

Capability Default Service
Worker, dashboard and MCP Required Cloudflare Workers
Canonical data Required Cloudflare D1
OAuth state Required Cloudflare KV
Owner identity Required GitHub OAuth
Semantic search and reranking Off Vectorize + Workers AI
Encrypted repository backups Off Your GitHub repository
Obsidian delivery Off Any compatible WebDAV automation
n8n Never required Optional third-party automation

Cloudflare’s limits and pricing can change. Check the current Workers pricing, D1 pricing, Vectorize pricing and Workers AI pricing before enabling optional services. This project does not enable paid usage or billing on your behalf.

Semantic search

The safe default is lexical-only:

SEMANTIC_SEARCH_ENABLED=false

New memories remain canonical in D1 with a pending vector state. When you set the variable to true, deploy, then choose Repair index in Settings, Cloud Memory backfills vectors in bounded batches. The configured BGE model uses a 768-dimensional cosine index. See Semantic search.

Backups and recovery

The dashboard can create an encrypted download without a GitHub token. Optional GitHub delivery needs:

  • EXPORT_ENCRYPTION_KEY, retained somewhere safe outside the repository
  • GITHUB_EXPORT_TOKEN, a fine-grained token scoped to Contents access on one backup repository
  • GITHUB_EXPORT_REPOSITORY, in owner/repository form

Losing the encryption key makes existing encrypted exports unrecoverable. D1 remains canonical; Obsidian and GitHub outputs are projections and recovery artefacts, not concurrent writers.

Local development

Requires Node.js 22.12 or newer.

npm ci
npm run dev
npm run check

The complete check runs repository safety validation, deployment-template validation, lint, type checking, unit tests, Worker/D1 tests and a production build.

Project governance

Codex Cloud automated review is not part of AI Cloud Memory. Maintainers may connect this GitHub repository to a Codex Cloud environment as external repository administration; no review agent, token or feature is shipped in the product.

Licence

MIT. Cloudflare, GitHub, Claude, ChatGPT, Codex, OpenCode, Obsidian and n8n are trademarks of their respective owners and are not affiliated with this project.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选