npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-prompts

v1.1.0

Published

Claude Custom Prompts MCP Server

Readme

Claude Prompts MCP Server

npm version License: MIT Node.js

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-prompts

Add 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 edits

system_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-prompts

This 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_WORKSPACE points to directory containing prompts/promptsConfig.json
  • Run npx claude-prompts --startup-test --verbose to see resolved paths

"Methodology not found"

  • Custom methodologies need methodology.yaml in each subdirectory
  • Use MCP_METHODOLOGIES_PATH to 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:


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

License

MIT