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

Piast Gate: Open-Source API Proxy for LLM Data Anonymization
Piast Gate is an open-source API proxy that anonymizes sensitive data before sending requests to LLMs and restores original data in responses. The current MVP supports Google Gemini API, Polish language, local execution, and can anonymize text or Word documents without LLM processing.

Local Trello-Style Project Manager for OpenClaw Agents
A developer built a local Trello-like project management tool that runs on the same machine as their OpenClaw agent, storing cards as markdown files with YAML frontmatter. The system uses Node.js/Express for the API, React for the UI, and allows the AI agent to read/write files directly on the filesystem.

cc-soul plugin adds persistent memory and adaptive personas to OpenClaw
The cc-soul plugin for OpenClaw provides permanent memory storage across sessions, 10 auto-switching personas, and learning from corrections. Installation requires one command with zero configuration.

Approval Boundary Tool for Claude Code Repository Work
A developer built an approval boundary tool that adds a review step before local execution when using Claude Code for repository work. The tool follows a loop: see the plan first, approve once, let the run happen locally, and keep proof afterward.