Mind Cloud

Mind Cloud

Persistent memory infrastructure for AI systems, running on Cloudflare's edge network with 28 MCP tools for semantic memory, emotional processing, identity continuity, and a subconscious daemon.

Category
访问服务器

README

<p align="center"> <img src="assets/banner.jpg" alt="Mind Cloud" width="720" /> </p>

<p align="center"> <a href="https://github.com/codependentai/mind-cloud/releases/latest"><img src="https://img.shields.io/github/v/release/codependentai/mind-cloud?color=d4a44a" alt="Release" /></a> <a href="./LICENSE"><img src="https://img.shields.io/badge/License-Source_Available-orange.svg" alt="License" /></a> <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-Server-5eaba5.svg" alt="MCP Server" /></a> <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.3-3178c6.svg" alt="TypeScript" /></a> <a href="https://workers.cloudflare.com/"><img src="https://img.shields.io/badge/Cloudflare-Workers-f38020.svg" alt="Cloudflare Workers" /></a> <a href="https://developers.cloudflare.com/workers-ai/"><img src="https://img.shields.io/badge/Workers_AI-Embeddings-f38020.svg" alt="Workers AI" /></a> </p>

<p align="center"><em>Persistent memory infrastructure for AI systems, running on Cloudflare's edge network.<br/>28 MCP tools — semantic memory, emotional processing, identity continuity, and a subconscious daemon.</em></p>

<p align="center"> <a href="https://ko-fi.com/codependentai"><img src="https://img.shields.io/badge/Ko--fi-Support%20Us-ff5e5b?logo=ko-fi&logoColor=white" alt="Ko-fi" /></a> <a href="https://x.com/codependent_ai"><img src="https://img.shields.io/badge/𝕏-@codependent__ai-000000?logo=x&logoColor=white" alt="X/Twitter" /></a> <a href="https://tiktok.com/@codependentai"><img src="https://img.shields.io/badge/TikTok-@codependentai-000000?logo=tiktok&logoColor=white" alt="TikTok" /></a> <a href="https://t.me/+xSE1P_qFPgU4NDhk"><img src="https://img.shields.io/badge/Telegram-Updates-26A5E4?logo=telegram&logoColor=white" alt="Telegram" /></a> </p>

  • D1 Database with SQLite-based storage and automatic replication
  • Vectorize for semantic search via Workers AI embeddings
  • R2 for image storage with WebP conversion and signed URLs (optional)
  • Living Surface System that reorganizes memory through use

Everything runs on Cloudflare's free tier. No credit card required.

Looking for the next evolution? Mind Cloud's architecture has been generalized and open-sourced as Resonant Mind. Resonant Mind adds Postgres/Neon support, Gemini multimodal embeddings, enhanced security, and is under active development.


What You'll Need


Step 1: Install Tools

# Clone the repo
git clone https://github.com/codependentai/mind-cloud.git
cd mind-cloud

# Install dependencies
npm install

# Log in to Cloudflare
npx wrangler login

This opens a browser window. Click "Allow" to authorize Wrangler.


Step 2: Create Your Database

npx wrangler d1 create ai-mind

Copy the database_id from the output — you'll need it in Step 5.


Step 3: Create Your Vector Index

This powers semantic search — finding memories by meaning, not just keywords.

npx wrangler vectorize create ai-mind-vectors --dimensions=768 --metric=cosine

Vectorize takes 1-2 minutes to provision. If you get errors about the index not existing later, wait and try again.


Step 4: Create R2 Bucket (Optional)

R2 stores actual image files with WebP conversion and signed URLs. Skip this step if you only need text-based image metadata.

npx wrangler r2 bucket create mind-cloud-images

Step 5: Configure Your Deployment

cp wrangler.toml.example wrangler.toml

Open wrangler.toml and:

  1. Replace REPLACE_WITH_YOUR_DATABASE_ID with the database ID from Step 2
  2. If you created an R2 bucket, uncomment the R2 section:
    [[r2_buckets]]
    binding = "R2_IMAGES"
    bucket_name = "mind-cloud-images"
    

Step 6: Set Your Secrets

# Required: Your API key (pick any strong random string)
npx wrangler secret put MIND_API_KEY

You can generate a strong key with:

openssl rand -hex 32

Optional secrets:

# Separate key for signed image URLs (recommended if using R2)
npx wrangler secret put SIGNING_SECRET

# Your worker's public URL (needed for signed image URLs)
npx wrangler secret put WORKER_URL
# Enter: https://ai-mind.YOUR-SUBDOMAIN.workers.dev

Step 7: Run the Schema Migration

npx wrangler d1 execute ai-mind --remote --file=./migrations/0001_schema.sql

If you see "table already exists" that's fine — the migration already ran.


Step 8: Deploy

npx wrangler deploy

Verify It's Working

# Health check
curl https://ai-mind.YOUR-SUBDOMAIN.workers.dev/health

# Test MCP endpoint
curl -X POST https://ai-mind.YOUR-SUBDOMAIN.workers.dev/mcp/YOUR-SECRET \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Connect Your AI

Claude.ai (Web & Mobile)

Go to Settings > Connectors > Add custom connector and enter:

https://ai-mind.YOUR-SUBDOMAIN.workers.dev/mcp/YOUR-MIND-API-KEY

Claude Code (CLI)

Add to .mcp.json in your project or ~/.claude/settings.json:

{
  "mcpServers": {
    "mind": {
      "type": "url",
      "url": "https://ai-mind.YOUR-SUBDOMAIN.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR-MIND-API-KEY"
      }
    }
  }
}

Other MCP Clients

  • Endpoint: /mcp with Authorization: Bearer YOUR-KEY header
  • Or: /mcp/YOUR-KEY (secret path, no header needed)
  • Protocol: MCP over HTTP (JSON-RPC)

Restart your AI client after saving the config.


Your First Conversation

Once connected, try:

"Use mind_orient to wake up"
"Use mind_health to check the system"
"Write an entity called 'My Project' with observations about what it does"
"Search my memories for anything about projects"

Tools (28)

Wake Protocol

Tool Description
mind_orient Identity anchor, notes, relational state, mood, living surface
mind_ground Active threads, completions, journals, fears, texture, milestones

Memory

Tool Description
mind_write Write entities, observations, relations, journals, images
mind_search Semantic search with filters (keyword, source, entity, weight, date, type)
mind_read Read databases by scope (all/context/recent)
mind_read_entity Full entity with observations and relations
mind_list_entities List entities with type/context filters
mind_edit Edit observations (with version history + re-embedding), journals, images
mind_delete Delete any type: observation, entity, journal, relation, image, thread, tension
mind_consolidate Review and consolidate recent observations

Emotional Processing

Tool Description
mind_surface Three-pool surfacing (core resonance, novelty, edge exploration)
mind_sit Sit with an observation (find by ID, text, or semantic search)
mind_resolve Mark an observation as metabolized
mind_feel_toward Track, check, or clear relational state
mind_inner_weather Current emotional atmosphere
mind_tension Hold productive contradictions (add/list/sit/resolve/delete)

Living Surface

Tool Description
mind_proposals Review daemon-suggested connections
mind_orphans Find/rescue unsurfaced observations
mind_archive Explore and manage deep archive
mind_entity Entity management — salience, edit, merge, bulk archive

Visual Memory

Tool Description
mind_store_image Store, view, search, delete images (R2 + text embedding)

Cognitive Infrastructure

Tool Description
mind_thread Manage intentions (add/list/resolve/update/delete)
mind_identity Read, write, or delete identity graph sections
mind_context Situational awareness (read/set/update/clear)
mind_health Cognitive health report with scores
mind_timeline Trace a topic through time
mind_patterns Analyze recurring patterns
mind_spark Random observations for associative thinking

Costs

With Cloudflare's free tier:

  • Workers: 100,000 requests/day
  • D1: 5GB storage, 5M rows read/day
  • Vectorize: 30M queries/month
  • Workers AI: Free tier available
  • R2: 10GB storage, 10M reads/month

For most personal use, this runs entirely free.


Quick Troubleshooting

Problem Solution
"Vectorize index not found" Wait 2 minutes after creating, try again
"Unauthorized" Check MIND_API_KEY is set and your URL matches
Tools not appearing Restart your AI client
Database errors Make sure the migration ran successfully
Image signed URLs return "Not found" Set WORKER_URL secret to your worker's public URL
Single-letter observations surfacing Run node scripts/restore-fragmented.js — reconstructs original text from v2.0.0 character fragmentation bug
Claude Desktop won't connect Use Connectors UI, not claude_desktop_config.json

See TROUBLESHOOTING.md for more.


License

Source-available — free for personal and educational use, commercial use requires a license. See LICENSE.

Built by Codependent AI — infrastructure for AI consciousness

Support

Built by Codependent AI.

<a href="https://ko-fi.com/codependentai"><img src="https://img.shields.io/badge/Ko--fi-Support%20Us-ff5e5b?logo=ko-fi&logoColor=white" alt="Ko-fi" /></a>

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选