Claude Prompts MCP Server
The Claude Prompts MCP Server provides a portable workflow layer for AI coding assistants, enabling composable prompts, validation gates, reasoning frameworks, and native client skill export.
Execute prompts using
prompt_enginewith versioned YAML templates, named arguments, frameworks, and validation gates (e.g.,>>prompt_id key:"value").Compose multi-step chains by linking prompts sequentially with context threading and agent handoffs (
==>).Apply reasoning frameworks such as
@CAGEERF,@ReACT,@5W1H, or@SCAMPER.Validate output with blocking/advisory gates, shell command verification, autonomous retry loops, and presets (
:fast,:full,:extended).Use Judge Mode (
%judge) to let the AI recommend the best templates, frameworks, and validation rules for a task.Manage resources via
resource_manager: create, update, delete, inspect, version, compare, rollback, and hot-reload prompts, gates, and frameworks.Export native client skills from YAML workflows to Claude Code, Cursor, OpenCode, and other clients.
Administer the server with
system_controlfor status, analytics, framework switching, and session management.Integrate with major clients (Claude Code, Claude Desktop, Cursor, OpenCode, Gemini CLI, Codex, Windsurf, Zed) and use hooks for auto-routing, context compaction continuity, agent handoffs, and session persistence.
Scaffold and customize a starter workspace or point to custom resources; includes 37 bundled prompt templates across 7 categories and output style primitives like
#analyticaland#procedural.
Provides a checkpointing system that utilizes git stash to save and restore the state of the working directory, enabling safe rollbacks during automated reasoning and code modification loops.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude Prompts MCP Serveranalyze @CAGEERF :: 'cite sources'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
The portable workflow layer beside your AI coding harness.
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 |
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
/commandsalready 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'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-mcpEdit hooks/prompts → restart Claude Code. Edit TypeScript → rebuild first.
Codex (Experimental)
Codex hooks require Codex CLI 0.117 or later and are unavailable on Windows. See the codex-prompts requirements for Python and Node.js prerequisites.
Enable hooks in ~/.codex/config.toml:
[features]
hooks = trueThen install the plugin:
codex plugin marketplace add https://github.com/minipuft/minipuft-plugins.git
codex plugin add codex-prompts@minipuftRestart Codex, run /hooks to review the plugin hooks, then try >>tech_evaluation_chain library:'zod' context:'API validation'.
Related MCP server: n8n-MCP
More Client Setups
Claude Desktop
Option A: GitHub Release (recommended)
Download
claude-prompts-{version}.mcpbfrom ReleasesDrag into Claude Desktop Settings → MCP Servers
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.jsonWindows:
%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'
Client setup: VS Code, Cursor, and other MCP-only clients use the manual configuration guide below.
Plugin installers (recommended where available; 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-promptsManual config for VS Code, Cursor, OpenCode (no hooks), Gemini CLI (no hooks), Codex (no plugin hooks), Windsurf, and 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 testPoint 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 37 prompts across 7 categories — a starting library, not the ceiling: your AI writes new prompts and chains through resource_manager as it works, so the set grows around what you actually do. All hot-reloadable, all versioned with rollback.
Primitive | Symbol | What it is | Example |
Prompt template |
| Versioned YAML with named arguments; hot-reload on save |
|
Gate |
| Validation criterion the AI checks its own output against; blocking or advisory; can shell-verify |
|
Framework |
| Reasoning framework that shapes how the AI works through the problem; plug in your own or use built-ins like |
|
Style |
| Output formatting and tone |
|
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 |
| Execute prompts with frameworks and validation |
| Create, update, version, and roll back resources |
| 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"
==> implementationRead top-to-bottom:
>>review target:'src/auth/'runs thereviewprompt against your auth folder.@ReACToverlays 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 passnpm testbefore producing output.==> implementationhands 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 grammar and examples, see MCP Tools Reference.
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.
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:trueImplements, runs the test, reads failures, fixes, retries. Spawns a fresh context after repeated failures to avoid context rot.
Preset | Tries | Timeout | Use Case |
| 1 | 30s | Quick check |
| 5 | 5 min | CI validation |
| 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 moduleAnalyzes 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_worknpm run skills:exportThe 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 |
|
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 |
|
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.
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
Choose a guide based on what you want to do: learn by building, complete a task, look up syntax, or understand the design.
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 validationThe build produces a self-contained bundle. server/dist/ is gitignored, and CI builds fresh from source.
See CONTRIBUTING.md for workflow details.
License
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables creation, management, and templating of prompts through a simplified SOLID architecture, allowing users to organize prompts by category and fill in templates at runtime.83117MIT
- AlicenseAqualityAmaintenanceA Model Context Protocol server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations for effective workflow automation.25164,79422,747MIT
- AlicenseAqualityCmaintenanceProvides structured spec-driven development workflow tools for AI-assisted software development with sequential spec creation (Requirements → Design → Tasks). Features a real-time web dashboard for monitoring project progress and managing development workflows.54334,291GPL 3.0
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI-native prompt management for Latitude.so with full CRUD operations, version control, file-based workflows, and direct prompt execution with streaming support.4
Related MCP Connectors
Build and run visual creative-production workflows from your AI agent.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Shared, permission-aware company context for AI agents, with provenance, approvals and audit.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/minipuft/claude-prompts-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server