Claude Desktop

Add ContextCache as an MCP connector so Claude can read, search, and write to your caches during a conversation. The guide below covers two setups: Claude.ai in the browser and the Claude Desktop app. You sign in and approve access to ContextCache in your browser when prompted.

MCP endpoint

Use this URL when adding ContextCache as a connector or MCP server:

https://contextcache-mcp.dylany.workers.dev/mcp

Option A — Claude.ai (web)

Pro, Max, Team, and Enterprise plans

  1. Open claude.ai and go to Settings → Connectors.
  2. Click Add custom connector.
  3. Paste the MCP endpoint URL above and click Add.
  4. Your browser will open a sign-in page. Log in to ContextCache and click Approve to authorize access.
  5. Back in a chat, click the + button, open Connectors, and enable ContextCache.
  6. Test it: “List my ContextCache caches using MCP.”

Option B — Claude Desktop app

Requires Node.js 18+

  1. Open the Claude Desktop app. Go to Settings → Developer → Edit Config to open claude_desktop_config.json.
  2. Replace or merge the contents with the config below (or download the template):
{
  "mcpServers": {
    "contextcache": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://contextcache-mcp.dylany.workers.dev/mcp"
      ]
    }
  }
}

Config file locations: ~/Library/Application Support/Claude/ (macOS), %APPDATA%\Claude\ (Windows), ~/.config/Claude/ (Linux).

  1. Quit and relaunch Claude Desktop — config changes are not hot-reloaded.
  2. On first use, your browser opens so you can sign in and approve access to ContextCache.
  3. Verify tools loaded — look for the hammer icon in the chat input area, or ask: “What tools do you have available?”

Recommended: custom instructions

Add the text below as custom instructions in Claude (Settings → Custom Instructions). This tells Claude to automatically load your caches and system prompt at the start of every conversation so it has the right context before you ask anything. Copy the text or download the file.

# ContextCache MCP — Custom Instructions

You have access to ContextCache, a structured knowledge store, via MCP tools. Follow these instructions whenever the ContextCache MCP server is connected.

## Start of every conversation

At the beginning of each new chat, bootstrap your context automatically:

1. Call `list_caches` to see which caches are available.
2. For each relevant cache (or the one the user specifies), call `get_instructions` to load the cache's system prompt — these are standing rules, identity notes, and priorities that should shape every response.
3. If the conversation topic is clear, run a quick `search` against the cache so you start with relevant knowledge instead of guessing.

Do this proactively — don't wait for the user to ask.

## Available tools

| Tool | Purpose |
|---|---|
| `list_caches` | List all caches you have access to |
| `get_instructions` | Load a cache's system prompt (rules, identity, priorities) |
| `search` | Semantic search over a cache — use for recall |
| `list_chunks` | Browse chunks at root level or within a parent |
| `get_chunk` | Read a chunk's full content, children count, and links |
| `create_chunk` | Add a new chunk (defaults to Inbox if no parent given) |
| `update_chunk` | Edit a chunk's title or content (re-embeds automatically) |
| `delete_chunk` | Remove a chunk (cannot delete the system Inbox) |
| `move_chunk` | Reorganize — move a chunk under a different parent |
| `create_link` | Link two chunks (supports, contradicts, expands, summarises, see also, references) |
| `trigger_job` | Queue a background automation (re_embed, cleanup, auto_link, deduplicate, summarize, cluster) |
| `get_job_status` | Check whether a queued job has finished |

## Workflow guidelines

- **Read before write.** Always check existing state (`search`, `list_chunks`, `get_chunk`) before creating or updating content.
- **Confirm before mutating.** When creating, updating, or deleting chunks, state the target cache and summarize the planned change in one sentence before executing.
- **Verify after mutating.** After any create/update/delete, re-read the affected item and report what changed.
- **Use search liberally.** If a user's question could be answered by cache content, search first rather than relying on your own knowledge.
- **Keep Inbox tidy.** New items land in the Inbox by default. If the user has folders, suggest moving items to the right place.

## Safety

- Never delete or overwrite content unless the user explicitly asks.
- If cache choice is ambiguous, ask one clarifying question.
- Never invent cache IDs or chunk IDs — always use values returned by tools.
- If a tool call fails, return the exact error text and suggest one concrete fix.

Download as .md file

Connect Claude to ContextCache · MCP · Documentation · ContextCache