PluginWorld
Ge

genpark-agent-semantic-cache-query-matcher-skill

MCP

Enables agents to store LLM query-response pairs and retrieve them via fuzzy cosine similarity matching, reducing duplicate inference calls; it exposes tools for setting cache entries, semantic lookup, and hit-rate statistics.

@Alpha-Park · MIT License · updated today

SECURITY

B

SCORE

60

STARS

▲ 7

PLUG IN

git clone https://github.com/Alpha-Park/genpark-agent-semantic-cache-query-matcher-skill.git

See the README to configure this MCP server

README

Semantic Cache Query Matcher Skill for Autonomous Agents

MCP Compatible Python 3.9+ License: MIT Zero External Dependencies

High-performance in-memory semantic cache designed to slash LLM inference costs and latency by caching query-response pairs with fuzzy cosine term-vector matching.

Key Features

  • Cosine Term Vector Matching: Zero external vector database; computes term-frequency vector similarity in pure Python.
  • Configurable Similarity Threshold: Tunable confidence threshold (e.g. 0.75 - 0.95) to prevent false-positive matches.
  • Hit Rate Telemetry: Tracks hits, misses, and saved token estimations.

MCP Server Integration

python mcp_server.py

Available MCP Tools

  • cache_set: Store query and generated response.
  • cache_get: Lookup semantic match for an incoming prompt.
  • cache_stats: Return total entries, hits, and cache utilization.

SIMILAR PLUGINS