PromptPatch
A local-first MCP server that gives AI prompts what engineers expect: git-style diffs, rollback, release tags, and security scans, stored in one local SQLite file.

Prompt engineering is becoming software engineering.
Production prompts live in scattered docs, private chats, and random files. Someone changes two lines, behavior shifts, and nobody can say what changed. Prompts deserve the same version control that code has.
Version control as MCP tools, scanned before storage.
PromptPatch is a local-first Model Context Protocol server that lets Claude Desktop, Cursor, or any MCP client checkpoint prompts mid-conversation. It exposes nine tools, `save_prompt`, `get_prompt`, `list_versions`, `diff_versions`, `rollback`, `tag_release`, `list_prompts`, `scan_prompt_security`, `db_info`, backed by SQLite.
`scan_prompt_security` checks raw or stored content for injection, exfiltration, secret-leakage, and dangerous-action patterns before anything is saved.
No SaaS, no telemetry, one database file.
Everything is local-first: history, unified diffs, rollback, and release tags (`v1.0`, `prod`, `experiment`) all live in a single local SQLite file with zero cloud dependency.