Semantic Cache MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging verbosity (DEBUG, INFO, WARNING, ERROR) | INFO |
| EMBEDDING_MODEL | No | FastEmbed model for search/similarity | BAAI/bge-small-en-v1.5 |
| EMBEDDING_DEVICE | No | Embedding hardware: cpu, cuda (GPU), or auto (detect) | cpu |
| MAX_CONTENT_SIZE | No | Max bytes returned by read operations | 100000 |
| TOOL_OUTPUT_MODE | No | Response detail (compact, normal, debug) | compact |
| MAX_CACHE_ENTRIES | No | Max cache entries before LRU-K eviction | 10000 |
| SEMANTIC_CACHE_DIR | No | Override cache/database directory path | |
| TOOL_MAX_RESPONSE_TOKENS | No | Global response token cap (0 = disabled) | 0 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| readA | Read a file, returning as few tokens as possible. For 2+ files, use The first read returns the full numbered content plus a Whenever you re-read a file you have read before, pass back |
| read_imageA | Read an image file so the model can see it. Returns an MCP image block (base64 data + mime type) plus a small JSON
metadata sidecar ( The format is detected from the file's magic bytes, not its extension, so
a mis-named image still works and a non-image (e.g. text saved as |
| statsA | Report cache health, token savings, and runtime diagnostics. Returns storage occupancy (files, tokens, documents, DB size), session and lifetime token savings and cache hit rates, per-tool call counts, and process memory. Use it to measure or debug — not as a routine step in read/edit loops. Takes no arguments. |
| clearA | Empty the cache. Does not touch any project file. Removes every cached file entry and returns how many were dropped; the
next |
| deleteA | Delete one file or symlink and evict its cache entries. Use this for explicit single-path removal instead of shelling out. A
missing path is reported as status Statuses: |
| writeA | Create a file or replace its entire contents. Use this for new files or full rewrites; for localized changes prefer
|
| editA | Edit one file by exact text replacement. Three modes:
|
| edit_previewA | Show where Returns the match count, 1-based line numbers, and short snippets so you
can confirm an anchor is unique before calling |
| batch_editA | Apply many exact edits to one file in a single atomic call. Preferred over repeated
Prefer line-range entries when you already have line numbers from |
| searchA | Find cached files by keyword relevance (BM25 ranking). Searches only files already in the cache — seed them first with
|
| batch_readA | Read several files at once under a shared token budget. The efficient way to seed the cache before |
| globA | List files matching a glob and show which are already cached. Use it to discover files and see what |
| grepA | Search cached file contents for an exact string or regex. Fast, exact, line-numbered matching over files already in the cache — it
does NOT touch disk, so seed files first with |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- 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/CoderDayton/semantic-cache-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server