context-keeper-remote
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@context-keeper-remotewhat decisions have we recorded for the project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
context-keeper-remote
Part of the xylem stack.
A remote MCP server on Cloudflare Workers that exposes context-keeper's rationale store (decisions, pipelines, constraints) over Streamable HTTP. It works as a claude.ai custom connector, including on mobile, so your project's decisions and constraints are available from any Claude session — no PC left running, no tunnel.
Self-host your own copy in a few clicks with the button above — Cloudflare copies this repo into your GitHub account, creates a fresh D1 database for you, and deploys the Worker. Then you add one secret and paste a URL into Claude. Full walkthrough below; every step is a click, no command line anywhere.
The maintainer's own instance runs at
https://context-keeper-remote.jarmstrong158.workers.dev. Yours will be at your own subdomain after you deploy.
Why it's built this way
Worker, not tunnel — no "PC must be on" dependency.
D1, not KV — row-level writes and
WHEREqueries; two writers (desktop + mobile) don't clobber each other the way whole-file JSON read-modify-write does.Stateless handler, no Durable Objects — the tools are stateless RPCs against D1, so the Worker runs on the Cloudflare free plan.
Secret-path auth — claude.ai custom connectors don't reliably send custom bearer headers, so the token is the last path segment of the URL. The URL is the credential.
Self-migrating — the Worker creates its own D1 schema at runtime, so a brand-new empty database needs no manual SQL (verified by a cold-start test).
Self-host it (one-click, no command line)
Step 1 — Click "Deploy to Cloudflare"
Click the Deploy to Cloudflare button at the top of this page. Cloudflare will:
Ask you to authorize GitHub and pick an account — it copies this repo into your GitHub account (you get your own repo).
Automatically create a new D1 database in your Cloudflare account and bind it to the Worker. (This works because the Worker's config declares the database binding without a hard-coded id, so Cloudflare provisions a fresh one for you.)
Set up Workers Builds so every push to your new repo redeploys automatically.
Build and deploy the Worker.
When it finishes, your Worker is live at
https://context-keeper-remote.<your-subdomain>.workers.dev. Note that URL — you'll
need it in Step 3. (You can always find it under Workers & Pages in the
dashboard.)
Nothing to configure in the repo, and no SQL to run — the database starts empty and the Worker creates its tables on the first request.
Step 2 — Add the AUTH_TOKEN secret (Cloudflare dashboard)
The Worker refuses every request until it has an auth token, so set one:
Cloudflare dashboard → Workers & Pages → your context-keeper-remote Worker.
Settings → Variables and Secrets → Add.
Type: Secret. Name:
AUTH_TOKEN. Value: a long random string (32+ characters — treat it like a password). Save/Deploy.
That value is your connector's password. Keep it somewhere safe; you'll paste it in the next step.
agentsync-remote uses the same AUTH_TOKEN scheme, and additionally needs, in
its Worker's Variables and Secrets:
a Secret named
GH_PAT— a GitHub personal access token, anda Variable named
REPO— set to theowner/repoit should sync.
Those two do not apply to context-keeper-remote (this repo) — it only needs
AUTH_TOKEN. See the agentsync-remote README for its specifics.
Step 3 — Add the custom connector in claude.ai
claude.ai → Settings → Connectors → Add custom connector.
Paste your Worker URL with the token as the final path segment:
https://context-keeper-remote.<your-subdomain>.workers.dev/mcp/<AUTH_TOKEN>Replace
<your-subdomain>with your Worker's subdomain (Step 1) and<AUTH_TOKEN>with the exact value you set (Step 2).Save. The tools (
record_entry,get_context,query_entries, …) are now available in your Claude sessions.
Check it works: ask Claude to call get_project_summary. If it answers, the
whole chain (deploy → auto-provisioned D1 → auto-migration → auth) is working.
Step 4 — Migrate existing local data (optional)
If you already run local context-keeper, ask Claude (with the connector enabled) to
call import_entries, pasting each file's contents:
decisions.json→import_entries(project, kind="decision", entries=[...])pipelines.json→import_entries(project, kind="pipeline", entries=[...])constraints.json→import_entries(project, kind="constraint", entries=[...])
Incoming ids are preserved; existing ids are reported, never overwritten.
Related MCP server: Remote MCP Server on Cloudflare
⚠️ Security: the connector URL is a credential
The URL you paste into Claude embeds AUTH_TOKEN as its last path segment.
Anyone who has the full …/mcp/<AUTH_TOKEN> URL can read and write your entire
store. Treat it exactly like a password:
Don't share it, screenshot it, or paste it anywhere it could be logged.
Requests to any other path, or with the wrong token, get a bare
404with no detail (a valid token used with a non-POST method gets405).To rotate: change
AUTH_TOKENin the Cloudflare dashboard (Step 2). This immediately invalidates every old URL — any connector using the previous token starts getting404s until you update it in claude.ai (Step 3) with the new value.
Tools
Every tool takes an optional project; if omitted it falls back to the configured
default_project (set it once with config — op='set', key default_project).
The unified tools (config, record_entry) are the current surface; the older
per-operation tools remain as deprecated aliases so existing callers keep
working. New work should prefer the unified tools.
Tool | Purpose |
| Read or write config: |
| Deprecated aliases for |
| Unified write: record a |
| Deprecated alias for |
| Deprecated alias for |
| Deprecated alias for |
| Relevance-ranked retrieval for a query (keyword scoring; excludes deprecated unless |
| Structured filters: |
| One-call orientation: entry counts by kind and status, the ids present, the active constraints (compact), and the most recent decisions. |
| The org registry: every project with entries, plus per-project active counts (decisions/constraints/pipelines), active/deprecated totals, and last-updated time. Enumerates the whole org in one call — discover exact, case-sensitive project names instead of guessing. |
| Merge |
| Mark deprecated, optionally linking |
| Compact list of the active constraints. |
| Delete old deprecated entries (dry run by default; pass |
| Flag entries missing rationale-bearing fields. |
| Render entries as a DECISIONS.md-style document. |
| Bulk import from the local JSON store format (preserves ids, reports collisions, never overwrites). |
| Bulk upsert in the local store format — the mirror-sync path. New ids are inserted; an existing id is replaced only when the incoming |
Entry conventions
Decisions use
summary,problem,why_chosen,what_we_tried,tradeoffs,tags. The deprecatedrationalefield is accepted on input and mapped towhy_chosenwhenwhy_chosenis absent.Constraints use
rule,reason,tags.Pipelines use
name,purpose,steps, plus any extra fields you pass.ids are per project+kind:
dec-001,pipe-003,con-012. Because the same id recurs across projects, the D1 primary key is composite(project, id).
For maintainers / contributors
Everything above is for self-hosters. This section is for working on the code itself.
Config layout: how one repo serves both the button and CI
wrangler.toml has two profiles:
Default (top level) — the D1 binding is declared without a
database_id. This is what the Deploy button,wrangler dev, and the local test suite use. With no id, Cloudflare auto-provisions a fresh database for each self-hoster.[env.production]— pins the maintainer's realdatabase_idand the Workername. The maintainer's CI deploys withwrangler deploy --env productionso it keeps hitting the same database and the same URL. Self-hosters never touch this env.
Deploy pipeline (maintainer only)
.github/workflows/deploy.yml runs on push to main, and is gated with
if: github.repository == 'jarmstrong158/context-keeper-remote' so forks (which
deploy via Workers Builds instead) don't run failing Actions. Steps: checkout →
Node 22 (Wrangler needs ≥ 22) → npm ci → npm test → wrangler deploy --env production. Tests gate the deploy. It reads two GitHub repo secrets,
CLOUDFLARE_API_TOKEN (needs Workers Scripts: Edit) and CLOUDFLARE_ACCOUNT_ID
— distinct from the Worker's own AUTH_TOKEN.
Local development
No network and no Cloudflare credentials required — tests run against a local
workerd D1 via @cloudflare/vitest-pool-workers. Requires Node ≥ 22.
npm install
npm test # vitest: migrations, cold-start, CRUD, id sequencing, auth, import, ...
npm run typecheck # tsc --noEmitLive smoke test
After a deploy, from any machine with network access:
WORKER_URL="https://context-keeper-remote.<subdomain>.workers.dev/mcp/<AUTH_TOKEN>" \
node scripts/smoke-test.mjsRuns initialize → tools/list → record_decision → query_entries against the live
worker.
Layout
src/index.ts fetch handler: token check -> MCP dispatch (schema ensured lazily on first tools/call, not on the handshake)
src/mcp.ts stateless Streamable HTTP MCP server (createMcpHandler)
src/db.ts D1 access + runtime migration runner + id generation
src/entries.ts payload normalization, insert-with-retry, keyword scoring
src/tools/*.ts one module per tool group
schema.sql reference copy of the DDL the migration runner embeds
wrangler.toml default (auto-provision) + [env.production] (pinned) config
.github/workflows/deploy.yml test-then-deploy on push to main (maintainer repo)
scripts/smoke-test.mjs live JSON-RPC round-trip check
test/ vitest suite (local workerd D1, no network)Troubleshooting the maintainer deploy
Symptom in the Actions log | Cause | Fix |
| Node < 22 | Already set to Node 22 in |
| Deploy secrets missing | Add both GitHub repo secrets. |
| API token lacks Workers permission, or wrong | Use an "Edit Cloudflare Workers" token; confirm the account id. |
Deploys succeed but every call returns | Worker | Set/verify |
Related
context-keeper — the local stdio original this Worker hosts as a remote transport.
xylem — the stack this is part of.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceA Cloudflare Workers-based implementation of the Model Context Protocol server with OAuth login, allowing Claude and other MCP clients to connect to remote tools.Last updated1
- -license-quality-maintenanceA Model Context Protocol server implementation that runs on Cloudflare Workers with OAuth authentication support, allowing users to connect MCP clients like Claude Desktop or the MCP Inspector to utilize remote AI tools.Last updated
- Flicense-qualityCmaintenanceA Model Context Protocol server implementation designed to run on Cloudflare Workers with integrated OAuth authentication. It enables hosting and securely accessing MCP tools remotely via SSE transport from clients like Claude Desktop.Last updated
- Flicense-qualityCmaintenanceA remote MCP server deployable on Cloudflare Workers without authentication, allowing custom tool definitions and connections to MCP clients like Cloudflare AI Playground or Claude Desktop.Last updated
Related MCP Connectors
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jarmstrong158/context-keeper-remote'
If you have feedback or need assistance with the MCP directory API, please join our Discord server