Semantic Cache MCP logo

Semantic Cache MCP

by CoderDayton

Caches local project files for coding agents, returning hashes, diffs, search results, and edits through MCP.

Install Semantic Cache MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "coderdayton-semantic-cache-mcp": {
      "command": "uvx",
      "args": [
        "semantic-cache-mcp"
      ]
    }
  }
}

Settings β†’ Developer β†’ Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passedβ€” started and listed 14 tools correctly ().

Overview

CoderDayton/semantic-cache-mcp gives coding agents an MCP interface to a local file cache shared by clients through one background daemon. Reads include a content hash, so unchanged files can return a compact status while modified files return a diff; initial reads return the file and its hash. It also provides exact grep, BM25 keyword search, globbing, file edits, previews, deletion, statistics, and batch operations. Reach for it when repeated file reads are consuming context tokens across coding sessions or multiple MCP clients.

Use cases

  • Cache repeated reads of source files across coding-agent turns
  • Return diffs when cached files change on disk
  • Search a cached project with grep, BM25, and glob
  • Apply or preview batch edits through MCP

Key features

  • Hash-aware reads with compact unchanged responses
  • Diff responses for modified files
  • Local SQLite cache shared by one daemon
  • Exact grep and BM25 keyword search
  • Batch reads and token budgets
  • Atomic edits with dry-run previews

Tools14

What Semantic Cache MCP lets your agent do. Expand a tool for its parameters.

Verified live~4.9k tokens of context

Security & health

What it can reach and how reliably it runs β€” from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 14 tools this server returned when we ran it.

Can delete or modify data Β· 2Makes changes Β· 3Handles credentials Β· 6Read-only tools Β· 9
Network at startup2 connections
Files written at startupNone

Observed 2026-11-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev Β· semantic-cache-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars3Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed14Callable tools this server registers over MCP.

How Semantic Cache MCP works

What CoderDayton/semantic-cache-mcp does

CoderDayton/semantic-cache-mcp is designed for local coding-agent workflows where the same source files are read repeatedly. It stores cached file data in SQLite and exposes the cache through MCP. A single local daemon can serve every configured client on the machine.

The cache reduces repeated file transfer. The first read returns the complete file together with a content_hash. A later read can provide that hash as known_hash; if the bytes on disk still match, the response indicates that the file is unchanged instead of sending the full contents. If the file changed, the response contains a diff. Reads always check the current file on disk before deciding which response to return.

How it works

The server is local and does not require an API key or GPU. Its search functions are also local: grep performs exact matching, while search ranks keyword matches with BM25 rather than using embeddings. A one-time download of the o200k tokenizer file is the only network request described for normal operation, and that file is checked with SHA-256.

Files larger than the configured max_size are represented by an outline of definitions rather than an arbitrary truncated copy. If an agent forgets the hash after context compaction, reading without known_hash retrieves the full file again. The cache can be shared by multiple clients through the background daemon, while the stored data remains in a local SQLite file.

Setup and configuration

Python 3.12 or newer and uv are required. For Claude Code, register the server with:

Terminal
claude mcp add semantic-cache --scope user -- uvx semantic-cache-mcp

Clients that accept mcpServers JSON can use this configuration:

config.json
{
  "mcpServers": {
    "semantic-cache": {
      "command": "uvx",
      "args": ["semantic-cache-mcp"]
    }
  }
}

Client-specific setup is available for Cursor, Claude Desktop, VS Code, Codex, and OpenCode. The project also documents how to disable built-in file tools so an agent uses the cache instead. No API keys are needed.

Tools and capabilities

Available MCP tools include:

  • read and batch_read for individual or token-budgeted file retrieval
  • read_image for reading images
  • write, edit, batch_edit, and delete for file changes
  • edit_preview for previewing an edit
  • warm for preparing cached files
  • grep, search, and glob for exact matching, BM25 search, and path discovery
  • stats and clear for cache inspection and cleanup

Edits support a dry_run option. Batch reads can constrain output with a token budget, which is useful when an agent needs several files without allowing the combined response to grow without bound.

Limitations and notes

The search tool is lexical BM25 search, not embedding-based semantic retrieval. The server is intended for local files and local clients, and its caching behavior depends on the agent passing the returned hash back on subsequent reads. Files exceeding max_size are summarized as definition outlines rather than returned in full. Windows is supported, with CI coverage on Linux and macOS.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet β€” be the first to share how it worked for you.

Frequently Asked Questions about Semantic Cache MCP

CoderDayton/semantic-cache-mcp is an MCP server that connects coding agents to a local SQLite file cache shared by a background daemon. Its main tools cover hash-aware reads, batch reads, diffs, grep, BM25 search, globbing, writes, edits, previews, deletion, warming, statistics, and cache cleanup.

Install `uv`, then run `claude mcp add semantic-cache --scope user -- uvx semantic-cache-mcp` for Claude Code. Other MCP clients can register `uvx` as the command with `semantic-cache-mcp` as its argument in their `mcpServers` configuration.

Yes, Cursor is supported through an `mcpServers` JSON configuration. Register `uvx` as the command and pass `semantic-cache-mcp` in the arguments, then follow the client setup guidance for disabling built-in file tools if needed.

No, its `search` tool uses BM25 keyword ranking and `grep` performs exact matching. It does not require a model download, GPU, or API key for those searches.

No, the cache and daemon operate locally. The only described network request is a one-time download of the o200k tokenizer file, which is verified with a SHA-256 hash.

Related MCP servers

Add a badge to your READMEShow it’s listed β€” live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSemantic Cache MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/coderdayton-semantic-cache-mcp?style=directory)](https://allmcps.com/mcp/coderdayton-semantic-cache-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/coderdayton-semantic-cache-mcp"><img src="https://allmcps.com/api/badge/coderdayton-semantic-cache-mcp?style=directory" alt="Semantic Cache MCP on AllMCPs" /></a>