Cloud The core runtime is open source and free. TekMemo Cloud (hosted sync, managed MCP, team features) is in early access. Join the waitlist →
Skip to content

MCP runtime modes

Where TekMemo memory lives depends on which MCP path you use. The hosted server is cloud-only; the self-hosted stdio server supports all four modes.

At a glance

PathAvailable modesWhy
Hosted server (https://mcp.memo.tekbreed.com/)cloud onlyThe Worker runs in Cloudflare's edge and cannot read your local filesystem.
Self-hosted stdio (@tekbreed/tekmemo-mcp-server)local, cloud, hybrid, memoryRuns on your machine, so it can read .tekmemo/ and/or call the cloud.

See Hosted MCP for the hosted endpoint details.

Stdio mode comparison

The stdio binary tekmemo-mcp supports four runtime modes:

ModeCommandDescription
localtekmemo-mcp --runtime localReads and writes directly to a local .tekmemo/ folder via the filesystem store.
memorytekmemo-mcp --runtime memoryIn-memory volatile store for tests and ephemeral sessions. Nothing persists.
cloudtekmemo-mcp --runtime cloudDelegates all operations to TekMemo Cloud API (requires API key).
hybridtekmemo-mcp --runtime hybridCombines local files and cloud calls with configurable read/write policies.

Hybrid policies

When using stdio hybrid mode, you can configure separate read and write policies:

Read policies

ValueBehavior
local-firstTry local storage first, fall back to cloud
cloud-firstTry cloud first, fall back to local
local-onlyOnly read from local .tekmemo/

Write policies

ValueBehavior
local-firstWrite to local first, then replicate to cloud
cloud-firstWrite to cloud first, then replicate to local
local-onlyOnly write to local

Policies only apply to stdio hybrid mode. The hosted server ignores them — it is cloud-only.

Example hybrid configuration

bash
tekmemo-mcp \
  --runtime hybrid \
  --root . \
  --read-policy local-first \
  --write-policy local-first \
  --cloud-url https://memo.tekbreed.com/api/v1 \
  --api-key "$TEKMEMO_API_KEY"

For most users starting with local file-first memory:

bash
# Local only - simplest, no cloud dependencies
tekmemo-mcp --runtime local --root .

For teams using TekMemo Cloud:

bash
# Hybrid with local-first for speed, cloud sync for sharing
tekmemo-mcp \
  --runtime hybrid \
  --root . \
  --read-policy local-first \
  --write-policy local-first \
  --cloud-url https://memo.tekbreed.com/api/v1 \
  --api-key "$TEKMEMO_API_KEY"

For zero local setup, skip the stdio server and use the hosted server.

Configuration sources (stdio, in priority order)

  1. CLI arguments — Highest priority
  2. Environment variablesTEKMEMO_RUNTIME, TEKMEMO_ROOT, TEKMEMO_CLOUD_URL, etc.
  3. Local config file.tekmemo/config.json in the project root
  4. Defaults — Local mode, current working directory

Environment variables (stdio)

VariableDescription
TEKMEMO_RUNTIMElocal, memory, cloud, or hybrid
TEKMEMO_ROOTLocal workspace root directory
TEKMEMO_CLOUD_URL / TEKMEMO_API_URLTekMemo Cloud API root
TEKMEMO_API_KEYTekMemo Cloud API key
TEKMEMO_WORKSPACE_IDDefault cloud workspace ID
TEKMEMO_PROJECT_IDDefault project ID
TEKMEMO_CLOUD_TIMEOUT_MSCloud request timeout
TEKMEMO_READ_POLICYHybrid read policy
TEKMEMO_WRITE_POLICYHybrid write policy
TEKMEMO_MCP_READ_ONLYSet to true to block write tools

The hosted server uses a separate set of Worker bindings (TEKMEMO_MCP_BEARER_TOKEN, TEKMEMO_MCP_ALLOWED_ORIGINS, etc.) documented in Hosted MCP.

Released under the MIT License.