Prerequisites
provision creates the Cloudflare infrastructure for the remote DB (and optional MCP).
You need a Cloudflare account that can create:
- Workers (router, API, MCP, and optionally docs)
- A D1 database
- A Vectorize index
- Workers AI
- A KV namespace (for MCP OAuth state)
Usage
machine-memory remote provisionDeploys the Alchemy stack:
- Creates the edge router (public URL) plus private API and MCP workers
- Optionally builds and deploys the docs worker (
docs: truein config, default for the upstream site) - Generates or reuses a Worker token for REST
- Saves the router URL and credentials in the OS keychain
Self-host without docs
cp iac/machine-memory.deploy.example.json ./machine-memory.deploy.json
# set domain, worker names, "docs": false
machine-memory remote provision --config ./machine-memory.deploy.jsonOr:
machine-memory remote provision --no-docs --domain memory.example.comFull field reference: Deployment options.
Names and defaults
| Option | Environment variable | Default |
|---|---|---|
--config |
MACHINE_MEMORY_DEPLOY_CONFIG |
auto-discover |
--domain |
MACHINE_MEMORY_DOMAIN |
(workers.dev router) |
--no-docs / --docs |
MACHINE_MEMORY_DEPLOY_DOCS |
docs on |
--stack-name |
MACHINE_MEMORY_STACK_NAME |
machine-memory-remote-db |
--database-name |
MACHINE_MEMORY_DB_NAME |
machine-memory-db |
--router-name |
MACHINE_MEMORY_ROUTER_NAME |
machine-memory-router |
--api-name |
MACHINE_MEMORY_API_NAME |
machine-memory-api |
--mcp-name |
MACHINE_MEMORY_MCP_NAME |
machine-memory-mcp |
Flags take precedence over the config file, then environment variables, then stored remote credentials, then defaults.
machine-memory list --remoteMCP on the same stack
After the stack is up, follow Enable MCP. Overview: MCP.