# Context Keeper (remote) [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/jarmstrong158/context-keeper-remote  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/context-keeper-remote

## Description
Self-hosted Cloudflare Worker remote backend for context-keeper (D1, streamable-HTTP).

## Tools
Capabilities this server exposes over MCP:

- **config** — Read or write config: `op='get'` reads a key, `op='set'` writes it (`value` required). Use key `default_project` (global scope, no `project`) to pick the project used when a call omits `project`.
- **set_config** — Deprecated** aliases for `config(op='set')` / `config(op='get')`.
- **record_entry** — Unified write: record a `decision`, `constraint`, or `pipeline`. Required field depends on kind — decision needs `summary`, constraint needs `rule`, pipeline needs `name`.
- **record_decision** — Deprecated** alias for `record_entry(kind='decision')`: `summary`, `problem`, `why_chosen`, `what_we_tried`, `tradeoffs`, `tags`.
- **record_constraint** — Deprecated** alias for `record_entry(kind='constraint')`: a rule that must hold — `rule`, `reason`, `tags`.
- **record_pipeline** — Deprecated** alias for `record_entry(kind='pipeline')`: a reusable process — `name`, `purpose`, `steps` (extra fields kept verbatim).
- **get_context** — Relevance-ranked retrieval for a query (keyword scoring; excludes deprecated unless `include_deprecated`). An entry that superseded something carries a one-line `predecessor` -- what the prior entry said and why it changed -- byte-identical to the local server's, so history reads the same over eith…
- **query_entries** — Structured filters: `id`, `kind`, `tags` (all must match), `status` (`active`/`deprecated`/`all`), free `text`, and `limit`.
- **get_project_summary** — One-call orientation: entry counts by kind and status, the ids present, the active constraints (compact), and the most recent decisions.
- **list_projects** — 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.
- **update_entry** — Merge `patch` fields into an entry's payload; optionally change `status`.
- **deprecate_entry** — Mark deprecated, optionally linking `superseded_by` and recording a `reason` (the reason is what the predecessor line quotes).
- **reload_constraints** — Compact list of the active constraints.
- **prune_stale** — Delete old deprecated entries (**dry run by default**; pass `dry_run=false`).
- **verify_quality** — Flag entries missing rationale-bearing fields.
- **export_markdown** — Render entries as a DECISIONS.md-style document.
- **import_entries** — Bulk import from the local JSON store format (preserves ids and lifecycle status including `superseded`, reports collisions, never overwrites).
- **upsert_entries** — Bulk upsert in the local store format — the mirror-sync path. New ids are inserted; an existing id is replaced only when the incoming `updated_at` is strictly newer (last-writer-wins by timestamp), else skipped. Carries edits and deprecations between mirrored stores; never deletes.

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What the Context Keeper (remote) MCP server does

The Context Keeper (remote) MCP server stores project rationale as decisions, constraints, and reusable pipelines. It makes that information available through an MCP endpoint hosted on Cloudflare Workers, with D1 providing the persistent database. This suits teams that want Claude sessions to consult project history from a remote service rather than a local JSON store.

Entries can include decision reasoning, constraints that must hold, pipeline steps, tags, lifecycle status, and supersession relationships. The service can also report project summaries, list projects across the organization, identify active constraints, and render stored entries as a DECISIONS.md-style document.

## How it works

The Worker exposes MCP over Streamable HTTP. Requests are authenticated with an `AUTH_TOKEN` placed in the final URL path segment, using a route such as `/mcp/<AUTH_TOKEN>`. The Worker uses D1 for row-level reads and writes and creates its database schema automatically when it first receives a request.

Retrieval supports keyword-based relevance ranking through `get_context`, while `query_entries` provides structured filters for identifiers, kinds, tags, lifecycle status, free text, and result limits. Superseded entries remain available, and predecessor information records why an earlier entry changed.

The server is stateless at the handler level and stores data in D1. The documented deployment model is a Cloudflare Worker on the free plan, with no tunnel or continuously running desktop process required.

## Setup and configuration

To deploy the Context Keeper (remote) MCP server, use the repository's Cloudflare deployment flow. It copies the repository into a GitHub account, provisions a D1 database, configures Workers Builds, and deploys the Worker. After deployment, add `AUTH_TOKEN` as a Cloudflare secret and construct the MCP connector URL with that token as its final path segment.

After saving the connector, call `get_project_summary` to check the deployment, authentication, database binding, and automatic migration. The `default_project` configuration key can define the project used when a tool call omits `project`; it is read or written through `config`.

Existing local context-keeper data can be brought in with `import_entries`. The import format preserves incoming IDs and reports collisions without overwriting existing entries. The optional `/view` page is a read-only phone interface and has a separate setup process and credential.

## Tools and capabilities

- Read or write configuration with `config`; `set_config` remains as a deprecated compatibility alias.
- Record decisions, constraints, and pipelines through `record_entry` or the corresponding deprecated record tools.
- Retrieve relevant context, run filtered entry queries, and inspect project or organization-wide summaries.
- Merge changes into entries with `update_entry`, or mark entries deprecated with an optional replacement and reason.
- Review active constraints, check for missing rationale fields, and remove old deprecated entries with a dry-run option.
- Export Markdown, import local-store data, and use timestamp-based last-writer-wins upserts for mirror synchronization.

## Limitations and notes

The MCP endpoint requires an authentication token; the token is part of the connector URL, so it should be treated as a secret. `prune_stale` deletes deprecated entries only when `dry_run=false`; its default is non-destructive. Deprecated tools are retained as aliases, but new integrations should use `config` and `record_entry`.

The phone view is optional and read-only. It is separate from the MCP connector and requires a repository clone and Node 22 or newer for installation.

_Full upstream README: https://allmcps.com/mcp/context-keeper-remote/readme_

