Prompt-caching MCP plugin automatically reduces Claude API costs by identifying stable context

Prompt-caching is an MCP plugin that automatically reduces Claude API costs by leveraging Anthropic's caching feature. When using Claude Code or Cursor/Windsurf/Zed with the Anthropic API, each turn typically re-sends the entire context from scratch, which means thousands of tokens get billed at full rate repeatedly during long debugging sessions.
How it works
Anthropic provides a caching feature that makes repeated reads cost 0.1× instead of 1×, but this requires manually marking what gets cached. The prompt-caching plugin runs in the background, identifies stable parts of your context (system prompts, tool definitions, large file reads), and automatically marks them before each API call.
Performance results
- 20-turn bug fix: 85% cheaper
- 15-turn refactor: 80% cheaper
- 40-turn coding session: 92% cheaper
Installation
For Claude Code users:
/plugin marketplace add https://github.com/flightlesstux/prompt-caching
/plugin install prompt-caching@ercan-ermis
For Cursor/Windsurf/Zed:
npm install -g prompt-caching-mcp
Then point your MCP configuration at it.
The tool is open source under the MIT license and available for free. The repository is at https://github.com/flightlesstux/prompt-caching.
📖 Read the full source: r/ClaudeAI
👀 See Also

Local Behavioral Monitoring System with MCP Pipeline and Claude Code
A developer built a local behavioral monitoring system called BRAIN that tracks app switches, file operations, and dev sessions, piping data through a custom MCP server to Claude Code. The system runs 100% locally with zero cloud dependency.

OpenClaw Context Meter Plugin Shows Telegram Token Usage Percentage
A new OpenClaw plugin displays token usage percentage after every Telegram bot response, showing values like '45k / 200k (22%)' and detecting compaction events. The plugin avoids OOM issues by hardcoding context windows instead of using execSync.

Fullerenes: Open-source persistent memory layer for coding agents cuts tokens by 64% on SWE-bench
Fullerenes uses a local SQLite knowledge graph built via Tree-sitter to give coding agents like Claude Code persistent memory, reducing token usage by 64% on SWE-bench and up to 96.6% on internal benchmarks.

No-Code Persistent Memory System for Claude Using Notion and MCP
A radiologist built a 'Cognitive Hub' in Notion that Claude reads and writes to through MCP, creating a structured knowledge base with a routing table to load only relevant information per conversation. The system has grown to 70+ pages after a month of daily use.