CachePin MCP Server
Zero-dep Rust+SIMD LLM prompt-cache compiler, exact mixed-TTL DP solver, auditor & Shadow-KV router
CachePin scores 63 (Good), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under AI and memory. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "pgg898200-ship-it-cachepin": { "command": "npx", "args": [ "-y", "https://github.com/pgg898200-ship-it/cachepin/releases/download/v0.2.0/cachepin-mcp.mcpb" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
CachePin
Find where two LLM requests stop sharing a prompt prefix. Two agents can use the same runbook and tools but list the tools in different orders. CachePin shows the first differing byte, identifies the changed block, and estimates how much of the next request could be reused if both clients serialized it the same way.
Compare two prompts in your browser · Download the CLI · Connect an MCP client
Try a pair of requests
The two example requests share a runbook and two tools. The tool order and the final user question differ. From a checkout with the release binary on your PATH, run:
cachepin diff examples/prefix-diff/a.json examples/prefix-diff/b.json --mode json --provider anthropic --json
The v0.2.0 report includes these fields:
{
"reason": "tool_order_drift",
"divergence_path": "tools[0]",
"raw_lcp_bytes": 68,
"raw_matched_tokens": 0,
"opt_matched_tokens": 1099,
"total_tokens": 1113
}
The files share 68 literal bytes before the first tool name changes. In CachePin's replay model, sorting the tools and JSON keys raises the matching prefix from 0 to 1,099 estimated tokens for the second request. The different user questions still reach the model. You can run the comparison locally without an API key, model, or GPU. For billing or latency decisions, compare provider-reported usage and timing on your own workload.
Where it fits
| Your task | Put CachePin here | What comes out |
|---|---|---|
| Diagnose two requests | After your client serializes request JSON, before it calls a model | cachepin diff a.json b.json --json reports the first differing byte, likely cause, and modeled reuse. |
| Audit a workload | Offline, alongside a JSONL trace or local Claude Code / Codex logs | cachepin audit trace.jsonl --json summarizes observed records and modeled cache behavior. |
| Standardize requests | Between your prompt builder and provider SDK | cachepin optimize --mode json --no-breakpoints reads JSON from stdin and writes the transformed request to stdout. |
| Route live traffic | Between the agent and a model API or a pool of vLLM / SGLang backends | The optional reverse proxy forwards requests, can coalesce same-prefix bursts, and exposes /metrics. |
| Invoke from an agent | As a local stdio MCP server | Launch cachepin mcp, discover its five tools with tools/list, and call the one your client needs. |
Start with --mode json for key and tool ordering. The hoist and swarm modes can move volatile values and reorder shared context blocks. Inspect the resulting request and evaluate response quality on representative tasks before using those modes in live traffic.
Install
Download a Linux or macOS binary from the release assets, or build the Rust CLI locally:
git clone https://github.com/pgg898200-ship-it/cachepin.git
cd cachepin
cargo build --release --locked
./target/release/cachepin diff examples/prefix-diff/a.json examples/prefix-diff/b.json --mode json --provider anthropic --json
The Rust crate has zero external crate dependencies. The installer, Homebrew formula, Nix flake, container, and Python binding provide other entry points.
Measurements
| Workload | Recorded result |
|---|---|
| Compile an 18,535-byte request on an AVX2 CPU | 84.23 µs median, 138.44 µs p99 |
| Proxy a request to a loopback upstream | 219.43 µs median added overhead |
| Send 32 concurrent requests to the local test upstream | 32 cold writes in the baseline, 1 with coalescing |
| Replay a synthetic 32-agent coding workload | 2.24% modeled cache hits before normalization and 98.44% after |
The first three results are local measurements. The last uses a simulated access pattern and pricing profile. Recorded results · Reproduce the benchmark · Method and implementation
Integrations and related tools
- Integration guide covers Claude Code, Codex, cloud APIs, self-hosted inference, Python and MCP.
- Official MCP Registry listing includes the versioned desktop extension and its checksum. Registry identifier:
mcp-name: io.github.pgg898200-ship-it/cachepin. - Agent index points to command syntax, tool schemas, inputs and output fields. Agent skill
- Prefix Atlas sizes a prefix cache for a target hit rate. Open the capacity calculator.
- Cutstream detects stop strings in the gateway's output stream.
Browse other PGG tools by task.
See the license file and crate metadata for licensing details.
Frequently asked questions
What is CachePin MCP Server?
Zero-dep Rust+SIMD LLM prompt-cache compiler, exact mixed-TTL DP solver, auditor & Shadow-KV router
How do I install CachePin MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. CachePin MCP Server runs locally from the MCP bundle https://github.com/pgg898200-ship-it/cachepin/releases/download/v0.2.0/cachepin-mcp.mcpb with the command npx -y https://github.com/pgg898200-ship-it/cachepin/releases/download/v0.2.0/cachepin-mcp.mcpb.
Is CachePin MCP Server free and open source?
Yes. CachePin MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does CachePin MCP Server support remote (HTTP) connections?
No remote endpoint is listed for CachePin MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is CachePin MCP Server's trust score calculated?
CachePin MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.