claude-prompts-mcp — Claude Code MCP server: setup and use
Adds reusable prompt templates, multi-step chains with shared context, and validation gates to your AI coding agent.
claude mcp add claude-prompts-mcp -- npx -y claude-promptsWhat claude-prompts-mcp does
This MCP server sets up a structured prompt execution layer beside your agent. Instead of running isolated prompts, you trigger chained sequences that pass intermediate outputs down the line. Quality gates inspect results using either shell execution or model self-evaluations before moving forward.
Prompts live in YAML files with version history and rollback support. The skills:export tool converts these assets directly into native client skills. You can scaffold a workspace with --init or point the MCP_RESOURCES_PATH environment variable to a directory containing config.jsonc.
Codex hooks are experimental, require Codex CLI 0.117 or newer, and do not function on Windows systems. In clients like Cursor or Zed, the integration operates as a standard stdio MCP server without chain-tracking hooks.
What it helps with
- pass context across multi-step prompt chains
- verify intermediate agent output with shell commands
- manage versioned prompt templates in YAML files
- export workflows into native skills for different coding agents
Example prompts for the agent
- Run a library evaluation chain:
>>tech_evaluation_chain library:'zod' context:'API validation' - Trigger research across steps:
>>research_chain topic:'remote team policies' - Export prompt chains into client skills using
skills:export
How to install claude-prompts-mcp
Platform CLI
claude mcp add claude-prompts-mcp -- npx -y claude-promptsPlatform CLI
codex mcp add claude-prompts-mcp -- npx -y claude-promptsConfig file
{
"mcpServers": {
"claude-prompts-mcp": {
"command": "npx",
"args": [
"-y",
"claude-prompts"
]
}
}
}Config file
{
"servers": {
"claude-prompts-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"claude-prompts"
]
}
}
}Platform CLI
gemini mcp add claude-prompts-mcp npx -y claude-promptsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about claude-prompts-mcp
How do I install claude-prompts-mcp in Claude Code?
Run claude mcp add claude-prompts-mcp -- npx -y claude-prompts. The client registers the server and launches it via npx.
What does claude-prompts-mcp do?
It adds multi-step prompt sequences, YAML-based template versioning, and validation gates. This lets agents carry context across steps and test intermediate code outputs.
Can I run Codex hooks on Windows?
No, Codex hooks do not run on Windows. On supported operating systems, they require Codex CLI 0.117 or higher and hooks = true in ~/.codex/config.toml.