claude-prompts-mcp

claude-prompts-mcp

MCP.Pizza Chef: minipuft

Write a prompt once as a small text file, then call it by name from Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, OpenCode, Gemini CLI, or Codex. Chains run several prompts in order and hand each result to the next step, with optional checks in between. Everything runs on your own machine through the assistant you already pay for, so there is nothing extra to buy and no account to create.

Coding
Writing

Use This MCP server To

Save a prompt I retype every week and reuse it Run a three-step review without pasting each prompt myself Share the same prompt wording with my whole team Roll a prompt back after a bad edit Turn my prompts into built-in commands in Claude Code

README

Claude Prompts

Claude Prompts logo

npm version License: MIT Install in VS Code Install in Cursor

A Model Context Protocol (MCP) server for prompt workflows. Written once, always followed.

Craft reusable prompt templates with quality gates and reasoning guidance.
Orchestrate multi-step workflow chains with a composable operator syntax.
Export as native skills to any client.

Quick Start · What You Get · Compose Workflows · Run Anywhere · Docs

What your AI client gives you — and what this server adds

Your client already does This server adds
Run a prompt Compose prompts with validation, reasoning guidance, and formatting in one expression
Single-shot skills Multi-step workflows that thread context between steps
Execute subagents Hand off mid-chain steps to agents with full workflow context
Client-native skill format Author once as YAML, export to any client with skills:export
Manual prompt writing Versioned templates with hot-reload, rollback, and history
Trust the output Validate output between steps: self-evaluation and shell commands

Is this for me?

  • Use this if you write the same prompts repeatedly, run multi-step workflows, or want to share reusable prompts with a team.
  • Skip if your client's built-in /commands already handle what you need, or you're looking for a no-code prompt library.
  • Works with Claude Code, Claude Desktop, Cursor, OpenCode, Gemini CLI, Codex, Windsurf, and Zed. Plugin installers add hooks (chain tracking, gate enforcement, state preservation) for Claude Code, OpenCode, Gemini CLI, and Codex (experimental); other clients run MCP-only.

Quick Start

Claude Code (Recommended)

# Add marketplace (first time only)
/plugin marketplace add minipuft/minipuft-plugins

# Install
/plugin install claude-prompts@minipuft

# Try it
>>tech_evaluation_chain library:'zod' context:'API validation'
Development setup

Load plugin from local source for development:

git clone https://github.com/minipuft/claude-prompts-mcp ~/Applications/claude-prompts-mcp
cd ~/Applications/claude-prompts-mcp/server && npm install && npm run build
claude --plugin-dir ~/Applications/claude-prompts-mcp

Edit hooks/prompts → restart Claude Code. Edit TypeScript → rebuild first.


Claude Desktop

Option A: GitHub Release (recommended)

  1. Download claude-prompts-{version}.mcpb from Releases
  2. Drag into Claude Desktop Settings → MCP Servers
  3. Done

The .mcpb bundle is self-contained (~5MB); no npm required.

Option B: NPX (auto-updates)

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "claude-prompts": {
      "command": "npx",
      "args": ["-y", "claude-prompts@latest", "--client", "claude-code"]
    }
  }
}

Restart Claude Desktop and test: >>research_chain topic:'remote team policies'


Other clients: VS Code · Cursor · OpenCode · Gemini CLI · Codex · Windsurf · Zed · From Source

One-click install: the VS Code and Cursor buttons at the top of this README register the server via npx.

Plugin installers (recommended, adds hooks):

# OpenCode (full hooks)
npm install -g opencode-prompts && opencode-prompts install

# Gemini CLI (partial hooks)
gemini extensions install https://github.com/minipuft/gemini-prompts

# Codex (experimental hooks; requires hooks = true under [features] in ~/.codex/config.toml)
codex plugin marketplace add https://github.com/minipuft/minipuft-plugins.git
codex plugin add codex-prompts@minipuft

Manual config for VS Code, Cursor, OpenCode (no hooks), Gemini CLI (no hooks), Codex, Windsurf, Zed: see Client Integration Guide for per-client config locations, JSON examples, and --client preset matrix. Client Capabilities Reference covers profile mapping and limits.

From source (developers):

git clone https://github.com/minipuft/claude-prompts-mcp.git
cd claude-prompts-mcp/server && npm install && npm run build && npm test

Point your MCP config to server/dist/index.js. Transport: --transport=stdio (default) or --transport=streamable-http.

Custom resources: --init=~/my-prompts scaffolds a starter workspace: three example prompts plus config.json. Edit them (YAML schema), or have your AI author new prompts, gates, and frameworks via resource_manager. Point MCP_RESOURCES_PATH at an existing workspace if you already have one in the right shape. See Custom Resources Guide.


What You Get

Four primitives you author, version, and compose. The bundled set ships 120+ prompts across 17 categories. All hot-reloadable, all versioned with rollback.

Primitive Symbol What it is Example
Prompt template >> Versioned YAML with named arguments; hot-reload on save >>code_review target:'src/auth/'
Gate :: Validation criterion the AI checks its own output against; blocking or advisory; can shell-verify :: 'cite sources' · :: verify:"npm test"
Framework @ Reasoning framework that shapes how the AI works through the problem; plug in your own or use built-ins like @ReACT, @5W1H, or the project's own @CAGEERF scaffold (Frameworks Guide) @ReACT · @your_framework
Style # Output formatting and tone #analytical · #procedural

Prompts, gates, and frameworks are managed through the resource_manager tool. Your AI creates, edits, versions, and rolls them back through MCP, no file editing required. Styles are managed with the bundled cpm CLI. Failed gate checks can retry automatically or pause for your decision (Gates Guide). Build your first primitive: Prompt Authoring Tutorial.

The Three Tools

Everything above reaches your client through three MCP tools:

Tool Purpose
prompt_engine Execute prompts with frameworks and validation
resource_manager Create, update, version, and roll back resources
system_control Status, analytics, framework switching

Most users invoke these via >> syntax in conversation; hooks construct the actual calls. For programmatic MCP clients calling tools directly, see MCP Tools Reference.


Compose Workflows

How to write a chain

>>review target:'src/auth/' @ReACT :: 'cite sources'
  --> security_scan :: verify:"npm test"
  ==> implementation

Read top-to-bottom:

  • >>review target:'src/auth/' runs the review prompt against your auth folder.
  • @ReACT overlays the ReACT reasoning framework on this step.
  • :: 'cite sources' adds a gate the AI must satisfy (cite sources, or retry).
  • --> security_scan :: verify:"npm test" chains to step 2, which must pass npm test before producing output.
  • ==> implementation hands the final step off to a client-native agent (a subagent in Claude Code).

Validation runs between steps, not only at the end. For the full operator set including *, %, and #, see the Syntax Reference details block near the bottom.

Chain workflow with gate validation. A prompt executes through hooks, a gate catches a missing field on the first attempt, and the model self-corrects

A gate catches a missing field, the model corrects itself, and the chain passes. Recorded on haiku, the cheapest model.

Two patterns extend the basic syntax. Chains also support context threading between steps and agent handoffs. See Chains Lifecycle and MCP Tools Reference.

See the output: tech evaluation chain with context7 research
Tech evaluation chain researching Zod via context7, producing a scored assessment table with security, performance, DX, integration, and ecosystem ratings

Context7 fetches live library docs mid-chain. The final output is a structured assessment with sources.

Verification Loops

Ground-truth validation via shell commands. The AI keeps iterating until tests pass:

>>implement-feature :: verify:"npm test" loop:true

Implements, runs the test, reads failures, fixes, retries. Spawns a fresh context after repeated failures to avoid context rot.

Preset Tries Timeout Use Case
:fast 1 30s Quick check
:full 5 5 min CI validation
:extended 10 10 min Large test suites

For autonomous test-fix cycles with context-rot prevention: Ralph Loops Guide.

Judge Mode

Let the AI pick the right resources for the task:

%judge Help me refactor this authentication module

Analyzes available templates, reasoning frameworks, validation rules, and styles, then recommends the best combination. You confirm before it runs. For scoring and overrides see Judge Mode Guide.


Run Anywhere

Author workflows as YAML templates. Export as native skills to your client.

# skills-sync.yaml — choose what to export
registrations:
  claude-code:
    user:
      - prompt:development/review
      - prompt:development/validate_work
npm run skills:export

The review prompt becomes a /review Claude Code skill. validate_work becomes /validate_work. Same source, native experience; no MCP call required at runtime.

Compiles to Claude Code skills, Cursor rules, OpenCode commands, and more. npm run skills:diff flags when exports drift from source. Configuration, supported clients, and drift detection: Skills Sync Guide.


With Hooks

Without hooks, you're calling the three MCP tools explicitly (the LLM constructs each call). With hooks, the operators work in conversation: >>, -->, ==>, :: feel native rather than mediated, and workflow state survives across LLM turns and context compaction.

What hooks unlock:

Hook Unlocks
Auto-routing >>analyze topic:'X' in chat fires the right MCP tool call without you naming it
Chain continuity across compaction Multi-step chains preserve state when context compacts mid-execution; the chain doesn't restart from scratch
Cross-step verdict tracking Gate pass/fail verdicts thread across all chain steps without the LLM re-deriving them
Native agent handoffs ==> routes to your client's subagent system automatically; no manual subagent invocation
Session persistence Workflow state preserved when context compacts mid-chain

Hooks ship with the plugin install. Full support on Claude Code (this repo) and OpenCode; partial on Gemini CLI; experimental on Codex, where Codex hooks are off by default and each install requires a one-time /hooks trust review. Other clients get the three MCP tools but no hook-driven behaviors. Detail: hooks/README.md.


Syntax Reference
Symbol Name What It Does Example
>> Prompt Execute template >>code_review
--> Chain Pipe to next step step1 --> step2
==> Handoff Route step to agent step1 ==> agent_step
* Repeat Run prompt N times >>brainstorm * 5
@ Framework Inject reasoning guidance @ReACT
:: Gate Add validation criteria :: 'cite sources'
% Modifier Toggle behavior %clean, %judge
# Style Apply formatting #analytical

Modifiers (one per command, placed first):

  • %clean — No framework/gate/style injection
  • %lean — Gates only, skip framework and style
  • %framework — Framework injection only
  • %judge — AI recommends resources; you confirm

MCP Tools Reference for full command documentation.


How It Works

Command with operators → server parses and injects resources (framework, gates, style) → client executes the rendered prompt and self-evaluates against the gates → router decides: next step on pass, retry on fail, return on done.

Full request lifecycle, pipeline stages, and subsystem diagrams: Architecture Overview.


Documentation

Full docs index, organized by Diátaxis quadrant (tutorials, how-to, reference, concepts):

docs/README.md

Quick jumps: Build your first prompt · Chains lifecycle · MCP Tools reference · Architecture overview · Troubleshooting


Contributing

cd server
npm install
npm run build        # esbuild bundles to dist/index.js
npm test             # Run test suite
npm run validate:all # Full CI validation

The build produces a self-contained bundle. server/dist/ is gitignored, and CI builds fresh from source.

See CONTRIBUTING.md for workflow details.


License

MIT

claude-prompts-mcp FAQ

Do I need to pay for anything or sign in?
No. It runs locally inside the assistant you already use, and needs no key, account, or paid tier.
Which apps does it work in?
Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, OpenCode, Gemini CLI, and Codex. Claude Code, OpenCode, Gemini CLI, and Codex also get extra plugin hooks; the rest run the plain server.
How many ready-made prompts come with it?
Twenty-six, grouped into four folders covering workflows, guidance, project setup, and examples. The claim of 120 prompts across 17 categories does not match what actually ships.
How many tools does it add to my assistant?
Four, on purpose: one runs prompts and chains, one creates and edits them, one exports them to your app, and one handles settings.
Can I use this to build a repeatable writing routine?
Yes. Chain a drafting prompt into an editing prompt into a fact-checking step, and each step is handed the previous step's output automatically.
How hard is setup?
Easy. Claude Code installs it with one plugin command, Claude Desktop takes a drag-and-drop bundle, and everything else needs one short config snippet.
Is it actively maintained?
Yes, very. The project had code changes within the last day.