promptbook-mcp
Personal cookbook for AI prompts - MCP Server with RAG-powered semantic search
Install / Use
claude mcp add isaacpalomero -- npx -y github:isaacpalomero/promptbook-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of promptbook-mcp
promptbook-mcp scores 74/100 on our quality scale, 842nd of 939 AI & Machine Learning skills we index.
Its MCP Server is 11 KB long, well organised into 69 sections with 17 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 81/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
promptbook-mcp compared with similar skills
All 4 of these similar skills score higher than promptbook-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| promptbook-mcp (this skill)by isaacpalomero | 74 | 3 | 11mo ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 106.6k | 5d ago | CLAUDE.md |
| claude-memby thedotmack | 100 | 105.3k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.0k | 4d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install promptbook-mcp?
- Run
claude mcp add isaacpalomero -- npx -y github:isaacpalomero/promptbook-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does promptbook-mcp work with?
- It is written for Claude Code, Claude Desktop and GitHub Copilot, as a MCP Server file. Other agents that read the same format can often use it too.
- Is promptbook-mcp safe to use?
- It is MIT-licensed and scores 81/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is promptbook-mcp still maintained?
- The repository was last updated about 11 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHub🤖 Promptbook MCP
Your personal cookbook for AI prompts with RAG-powered semantic search
✨ What is this?
Promptbook MCP is a plug-and-play server that helps developers who use AI coding assistants (like GitHub Copilot, Claude, etc.) to:
- 📚 Store prompts from your AI sessions automatically
- 🔍 Search prompts by meaning, not just keywords (RAG-powered)
- 🤖 Access your prompt library from any MCP-compatible tool
- 📊 Organize prompts by category (refactoring, testing, debugging, etc.)
Perfect for: Developers who reuse AI prompts and want a searchable knowledge base.
🚀 Quick Start
Get running in 30 seconds:
Option 1: Automated Setup (Recommended)
git clone https://github.com/isaacpalomero/promptbook-mcp.git
cd promptbook-mcp
./setup.sh
That's it! 🎉
Option 2: Docker
git clone https://github.com/isaacpalomero/promptbook-mcp.git
cd promptbook-mcp
docker-compose up -d
Done! Your server is running.
💡 Use Cases
Problem: You asked ChatGPT/Copilot the perfect prompt for refactoring last week. Now you can't find it.
Solution: Promptbook MCP auto-saves and indexes all your prompts.
# Later, search by meaning
search_prompts("refactor typescript to use dependency injection")
→ Returns your exact prompt from last week
Real Examples
- Refactoring patterns - Store your best "clean code" prompts
- Testing strategies - Find that perfect test structure prompt
- Debugging workflows - Access proven debugging prompts
- Code review - Reuse comprehensive review prompts
📦 Installation
Prerequisites
- Python 3.9+ OR Docker
- 2GB RAM minimum
- macOS, Linux, or Windows
Detailed Setup
Automated Setup (Recommended)
# Clone repository
git clone https://github.com/isaacpalomero/promptbook-mcp.git
cd promptbook-mcp
# Run setup script
chmod +x setup.sh
./setup.sh
# Activate virtual environment
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Start server
python mcp_server.py
Docker Method
# Clone repository
git clone https://github.com/isaacpalomero/promptbook-mcp.git
cd promptbook-mcp
# Copy environment file
cp .env.example .env
# Start services
docker-compose up -d
# Verify
docker-compose logs
Manual Setup
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create directories
mkdir -p prompts sessions
# Index existing prompts (if any)
python prompt_rag.py --index
# Start server
python mcp_server.py
🎯 Features
1. Semantic Search (RAG)
Find prompts by meaning, not exact words:
search_prompts("how to add unit tests")
→ Finds prompts about "testing", "jest", "pytest", etc.
2. Auto-Organization
Drop AI session files → Auto-categorized and indexed:
sessions/
└── copilot-session-abc123.md → Auto-processed into:
├── prompts/refactoring/prompt1.md
├── prompts/testing/prompt2.md
└── Updated RAG index
3. Multi-Provider Embeddings
Choose your embedding backend:
- Sentence-Transformers (default, local, CPU)
- LMStudio (GPU-accelerated, better quality)
# Use local embeddings (default)
EMBEDDING_PROVIDER=sentence-transformer
# Or use LMStudio
EMBEDDING_PROVIDER=lmstudio
LMSTUDIO_URL=http://localhost:1234
4. MCP Tools (13 Available)
Access via any MCP client:
| Tool | Description |
|------|-------------|
| search_prompts | Semantic search by meaning |
| create_prompt | Add new prompt directly |
| update_prompt | Modify existing prompt |
| delete_prompt | Remove prompt safely |
| get_prompt_by_file | Get full content |
| list_prompts_by_category | Browse by category |
| find_similar_prompts | Find related prompts |
| get_library_stats | View statistics |
| index_prompts | Rebuild search index |
| organize_session | Process AI session file |
| get_prompt_index | View full metadata index |
Available categories:
refactoringtestingdebuggingimplementationdocumentationcode-reviewgeneral
🔌 MCP Client Setup
Claude Desktop
-
Open Claude config file:
# macOS ~/Library/Application Support/Claude/claude_desktop_config.json # Windows %APPDATA%\Claude\claude_desktop_config.json -
Add Promptbook MCP server:
{ "mcpServers": { "promptbook": { "command": "python", "args": ["/path/to/promptbook-mcp/mcp_server.py"] } } } -
Restart Claude Desktop
Other MCP Clients
Any MCP-compatible client can connect using the same pattern. See MCP Protocol docs for details.
📖 Documentation
- Setup Guide - Detailed installation steps
- Deployment Options - Docker, local, and production setups
- Embeddings Guide - Configure RAG providers
- Contributing - How to contribute
- Changelog - Version history
👨💻 For Developers
⚙️ Configuration
All runtime settings are centralized in config.py and exposed through an immutable Config dataclass. The server loads environment variables once at startup.
Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| PROMPTS_DIR | Root folder for categorized prompts | ./prompts |
| SESSIONS_DIR | Directory watched for exported sessions | ./sessions |
| VECTOR_DB_DIR | Persistent ChromaDB path | <PROMPTS_DIR>/.vectordb |
| EMBEDDING_PROVIDER | sentence-transformer or lmstudio | sentence-transformer |
| EMBEDDING_MODEL | Sentence Transformers model name | all-MiniLM-L6-v2 |
| LMSTUDIO_URL / LMSTUDIO_MODEL | LMStudio endpoint + model | http://localhost:1234 / nomic-embed-text |
| LMSTUDIO_DIMENSION | Expected LMStudio embedding size | 768 |
| CHUNK_SIZE / CHUNK_OVERLAP | Prompt chunking parameters | 500 / 100 |
| ENABLE_RAG | Toggle RAG initialization | true |
| AUTO_REINDEX_INTERVAL | Seconds between auto-index checks | 30 |
| LOG_LEVEL | Python logging level | INFO |
Configuration file:
# Copy example
cp .env.example .env
# Edit settings
vim .env
Access config anywhere in code:
from config import CONFIG
print(CONFIG.prompts_dir) # Validated Path object
print(CONFIG.embedding_provider) # Type-safe enum
🧪 Testing & Quality
We enforce strict quality gates:
# Run all tests
pytest
# Run with coverage
pytest --cov=. --cov-report=html
# Run only unit tests
pytest tests/unit/
# Run only integration tests
pytest tests/integration/
# Style check
flake8 --max-line-length=100
# Type check
mypy --strict mcp_server.py prompt_rag.py prompt_organizer.py
Quality Standards
- Test Coverage: Minimum 80%
- Type Safety:
mypy --strictmust pass - Code Style: Flake8 compliant
- CI Pipeline: All checks run on Python 3.9-3.12
A GitHub Actions workflow (.github/workflows/ci.yml) runs these checks automatically.
🐳 Docker Advanced
Multi-Stage Build
The Dockerfile uses a multi-stage build for optimized image size:
# Stage 1: Builder (installs dependencies)
FROM python:3.11-slim as builder
# Stage 2: Runtime (slim final image)
FROM python:3.11-slim
COPY --from=builder /app/.venv /app/.venv
Result: Final image < 800 MB
Health Checks
Docker includes automatic health monitoring:
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python -m prompt_rag --health || exit 1
Volume Mounts
Persist data outside containers:
volumes:
- ./prompts:/app/prompts # Prompt storage
- ./sessions:/app/sessions # Session import
- ./prompts/.vectordb:/app/prompts/.vectordb # RAG database
Building & Running
# Build image
docker build -t promptbook-mcp:latest .
# Run container
docker run --rm -i \
-v "$(pwd)/prompts:/app/prompts" \
-v "$(pwd)/sessions:/app/sessions" \
-e EMBEDDING_PROVIDER=sentence-transformer \
promptbook-mcp:latest
🏗️ Architecture
Components
┌─────────────────────────────────────┐
│ MCP Client (Claude) │
└──────────────┬──────────────────────┘
│ MCP Protocol
┌──────────────▼──────────────────────┐
│ mcp_server.py │
│ - 13 MCP tools │
│ - Request routing │
│ - Error handling │
└──────────────┬──────────────────────┘
│
┌───────┴────────┐
│ │
┌──────▼──────┐ ┌─────▼────────┐
│prompt_rag.py│ │prompt_org.py │
│- RAG search │ │- Session │
│- Embeddings │ │ parsing │
│- ChromaDB │ │- Auto-org │
└─────────────┘ └──────────────┘
│ │
└───────┬────────┘
│
┌──────────────▼──────────────────────┐
│ prompts/ │
│ ├── refactoring/ │
│ ├── testing/ │
│ ├── debugging/ │
│ └── .vectordb/ │
└─────────────────────────────────────┘
Data Flow
- User asks Claude to search prompts
- Claude sends MCP request to
mcp_server.py - Server calls
prompt_rag.pyfor semantic search - RAG queries ChromaDB vector database
- Results returned to Claude with metadata
- User sees relevant prompts instantly
🤝 Contributing
We love contributions! 🎉
Quick Start
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature - Make changes and add tests
- Run tests:
pytest - Ensure quality:
flake8 && mypy --strict - Commit:
git commit -m 'feat: add amazing feature' - Push:
git push origin feature/amazing-feature - Open Pull Request
See CONTRIBUTING.md for detailed guidelines.
Commit Convention
We follow Conventional Commits:
feat:New featurefix:Bug fixdocs:Documentation onlystyle:Code style changesrefactor:Code refactoringtest:Test changeschore:Build/tooling changes
📄 License
This project is licensed under the MIT License - see LICENSE file for details.
🙏 Acknowledgments
- Built with MCP Protocol
- Powered by ChromaDB and Sentence-Transformers
- Inspired by the need for better prompt management in AI-assisted development
📞 Support
Made with ❤️ for the AI development community
Related Skills
Agent-Reach
106.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
claude-mem
105.3kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
89.0kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
