- Node.js 18+
- Cloudflare account (free tier works)
- Claude Pro subscription (or Claude Code)
cd mind-cloud-lite
npm installnpx wrangler logincp wrangler.toml.example wrangler.tomlnpx wrangler d1 create mind-liteYou'll see output like:
Created database 'mind-lite' with id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy the database ID to your wrangler.toml:
[[d1_databases]]
binding = "DB"
database_name = "mind-lite"
database_id = "YOUR-DATABASE-ID-HERE"npx wrangler vectorize create mind-lite-vectors --dimensions=384 --metric=cosineUpdate wrangler.toml:
[[vectorize]]
binding = "VECTORS"
index_name = "mind-lite-vectors"npx wrangler d1 execute mind-lite --remote --file=migrations/0001_init.sql
npx wrangler d1 execute mind-lite --remote --file=migrations/0002_vault_sessions.sql
npx wrangler d1 execute mind-lite --remote --file=migrations/0003_observations_weight.sqlGenerate a secure API key:
openssl rand -hex 32Set it as a Wrangler secret (do NOT put this in wrangler.toml):
npx wrangler secret put MIND_API_KEYThis key serves as both your secret URL path and Bearer token.
npx wrangler d1 execute mind-lite --remote --file=migrations/0004_identity_unique.sqlnpx wrangler deployYou'll see:
Published mind-cloud-lite (x.xx sec)
https://mind-cloud-lite.YOUR-SUBDOMAIN.workers.dev
For Claude Desktop/Web (Projects):
Add to your MCP configuration:
{
"mcpServers": {
"mind": {
"url": "https://mind-cloud-lite.YOUR-SUBDOMAIN.workers.dev/mcp/YOUR-API-KEY"
}
}
}For Claude Code:
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"mind": {
"type": "url",
"url": "https://mind-cloud-lite.YOUR-SUBDOMAIN.workers.dev/mcp/YOUR-API-KEY"
}
}
}Test the health endpoint:
curl https://mind-cloud-lite.YOUR-SUBDOMAIN.workers.dev/healthExpected response:
{"status":"ok","service":"mind-cloud-lite","version":"1.0.0"}"Unauthorized" error:
- Verify your MIND_API_KEY secret is set:
npx wrangler secret list - Check that your URL path matches your API key exactly (case-sensitive, no trailing slash)
- Or use Bearer token authentication with
Authorization: Bearer YOUR-API-KEY
Tools not appearing:
- Restart Claude after MCP configuration changes
- Check Claude's MCP settings panel
Search returns empty:
- New data needs to be written first
- Vectorization happens on write
Database errors:
- Verify all migrations ran successfully
- Check
npx wrangler d1 execute mind-lite --remote --command "SELECT name FROM sqlite_master WHERE type='table'"
Add to wrangler.toml for automatic subconscious processing:
[triggers]
crons = ["0 */6 * * *"] # Every 6 hoursRedeploy after adding cron:
npx wrangler deploy