claude-prompts
v1.1.0
Published
Claude Custom Prompts MCP Server
Maintainers
Readme
Claude Prompts MCP Server
MCP server for prompt management, thinking frameworks, and quality gates. Hot-reloads prompts, injects structured reasoning, enforces output validation—all through MCP tools Claude can call directly.
Quick Start
npx -y claude-promptsAdd to Claude Desktop (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"claude-prompts": {
"command": "npx",
"args": ["-y", "claude-prompts@latest"]
}
}
}Restart Claude Desktop. Test with: prompt_manager(action: "list")
What You Get
🔥 Hot Reload — Let Claude iterate on prompts for you
Problem: Prompt engineering is slow. Edit → restart → test → repeat. And you're debugging prompt issues manually.
Solution: Just ask Claude to fix it. Describe the problem, Claude updates the prompt via prompt_manager, you test immediately. No manual editing, no restart.
User: "The code_review prompt is too verbose"
Claude: prompt_manager(action:"update", id:"code_review", ...)
User: "Test it"
Claude: prompt_engine(command:">>code_review") # Updated version runs instantly🧠 Frameworks — Consistent structured reasoning
Problem: Claude's reasoning varies. Sometimes thorough, sometimes it skips steps. You want methodical thinking every time.
Solution: Frameworks inject a thinking methodology into the system prompt. Claude follows defined reasoning phases. Each framework auto-applies quality gates for its phases.
prompt_engine(command: "@CAGEERF Review this architecture")
prompt_engine(command: "@ReACT Debug this error")Expect: Claude's response follows labeled phases. The framework's gates validate each phase completed properly.
🛡️ Gates — Claude self-validates outputs
Problem: Claude returns plausible outputs, but you need specific criteria met—and you want Claude to verify, not you.
Solution: Gates inject quality criteria. Claude self-evaluates and reports PASS/FAIL. Failed gates trigger retries or pause for your decision.
prompt_engine(command: "Summarize this :: 'under 200 words' :: 'include statistics'")Expect: Response includes self-assessment. If criteria aren't met, server auto-retries with feedback.
MCP Tools
Three tools Claude can call:
prompt_engine — Execute prompts and chains
# Run a prompt
prompt_engine(command: ">>code_review")
# Apply framework + gates
prompt_engine(command: "@CAGEERF >>analysis :: 'cite sources'")
# Chain steps together
prompt_engine(command: "research --> analyze --> summarize")prompt_manager — Create, update, delete prompts
prompt_manager(action: "list")
prompt_manager(action: "create", id: "my_prompt", name: "My Prompt", ...)
prompt_manager(action: "update", id: "my_prompt", ...)
prompt_manager(action: "reload") # After external file editssystem_control — Runtime administration
system_control(action: "status")
system_control(action: "framework", operation: "switch", framework: "CAGEERF")
system_control(action: "analytics")Syntax Reference
| Symbol | Name | What It Does |
| :----: | :------------ | :------------------------------ |
| >> | Prompt | Execute template by ID |
| --> | Chain | Pipe output to next step |
| @ | Framework | Inject methodology + auto-gates |
| :: | Gate | Add quality criteria |
| % | Modifier | Control execution mode |
Modifiers: %clean (skip all injection), %lean (gates only), %guided (force injection), %judge (auto-select resources)
Configuration
Why Use Custom Prompts?
The package includes example prompts, but the real power comes from your own prompts:
- Project-specific templates — Code review prompts tailored to your stack
- Team workflows — Standardized analysis chains your whole team uses
- Domain expertise — Prompts encoding your specific domain knowledge
- Persistent iteration — Claude improves your prompts via
prompt_manager, and they persist
Creating Your First Workspace
1. Initialize a workspace with starter prompts:
npx claude-prompts --init=~/my-promptsThis creates ~/my-prompts/prompts/promptsConfig.json with three starter prompts.
2. Point Claude Desktop to your workspace:
Edit ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"claude-prompts": {
"command": "npx",
"args": ["-y", "claude-prompts@latest"],
"env": {
"MCP_WORKSPACE": "/home/YOUR_USERNAME/my-prompts"
}
}
}
}3. Restart Claude Desktop and test:
prompt_manager(action: "list")
prompt_engine(command: ">>quick_review code:'function add(a,b) { return a + b }'")4. Let Claude iterate on your prompts:
User: "Make the quick_review prompt also check for performance issues"
Claude: prompt_manager(action:"update", id:"quick_review", ...)Claude updates your promptsConfig.json directly via prompt_manager. Changes apply instantly—no restart needed. This is the recommended workflow: describe what you want, let Claude implement it.
Workspace Structure
my-workspace/
├── prompts/
│ └── promptsConfig.json # Your custom prompts (required)
├── config.json # Server settings (optional)
├── methodologies/ # Custom thinking frameworks (optional)
└── gates/ # Custom quality gates (optional)Minimum required: Just prompts/promptsConfig.json with at least one prompt.
Claude Desktop Configurations
Basic — Use package defaults (good for trying it out):
{
"mcpServers": {
"claude-prompts": {
"command": "npx",
"args": ["-y", "claude-prompts@latest"]
}
}
}Recommended — Your own workspace:
{
"mcpServers": {
"claude-prompts": {
"command": "npx",
"args": ["-y", "claude-prompts@latest"],
"env": {
"MCP_WORKSPACE": "/home/user/my-mcp-workspace"
}
}
}
}Advanced — Per-project prompts:
{
"mcpServers": {
"claude-prompts": {
"command": "npx",
"args": ["-y", "claude-prompts@latest"],
"env": {
"MCP_PROMPTS_PATH": "/home/user/projects/my-app/prompts.json"
}
}
}
}Environment Variables
| Variable | Purpose | Example |
|----------|---------|---------|
| MCP_WORKSPACE | Base directory containing prompts/, config.json | /home/user/my-prompts |
| MCP_PROMPTS_PATH | Direct path to prompts config file | /path/to/promptsConfig.json |
| MCP_METHODOLOGIES_PATH | Custom methodologies directory | /path/to/methodologies |
| MCP_GATES_PATH | Custom gates directory | /path/to/gates |
| MCP_CONFIG_PATH | Custom server config.json | /path/to/config.json |
| LOG_LEVEL | Logging verbosity | debug, info, warn, error |
Resolution priority: CLI flags > Environment variables > Workspace subdirectory > Package defaults
CLI Flags
# Use a workspace
npx claude-prompts --workspace=/path/to/workspace
# Override specific paths
npx claude-prompts --prompts=/path/to/prompts.json
# Debugging
npx claude-prompts --verbose
npx claude-prompts --debug-startup
# Validate setup without running
npx claude-prompts --startup-test --verbose| Flag | Purpose |
|------|---------|
| --workspace=/path | Base directory for all user assets |
| --prompts=/path | Direct path to prompts config |
| --methodologies=/path | Custom methodologies directory |
| --gates=/path | Custom gates directory |
| --config=/path | Custom server config.json |
| --verbose | Detailed logging |
| --startup-test | Validate and exit (good for testing setup) |
Troubleshooting
"No prompts found"
- Check
MCP_WORKSPACEpoints to directory containingprompts/promptsConfig.json - Run
npx claude-prompts --startup-test --verboseto see resolved paths
"Methodology not found"
- Custom methodologies need
methodology.yamlin each subdirectory - Use
MCP_METHODOLOGIES_PATHto point to your methodologies folder
"Permission denied"
- Ensure the user running Claude Desktop can read your workspace directory
Changes not appearing
- Use
prompt_manager(action: "reload")after external file edits - Or restart Claude Desktop
Documentation
Full guides in the main repository:
- Architecture — System design
- MCP Tooling — Complete tool reference
- Prompt Authoring — Template structure
- Chains — Multi-step patterns
- Gates — Quality validation
Development
git clone https://github.com/minipuft/claude-prompts-mcp.git
cd claude-prompts-mcp/server
npm install && npm run build
npm run start:stdio