MCP Prompts Server
A robust, extensible server for managing, versioning, and serving prompts and templates for LLM applications, built on the Model Context Protocol (MCP).
🚀 Features
Dual Mode Operation
- HTTP Mode - Traditional REST API server
- MCP Mode - Model Context Protocol server for AI assistants
MCP Tools (7 Available)
add_prompt
- Add new prompts to collectionget_prompt
- Retrieve prompts by IDlist_prompts
- List prompts with filteringupdate_prompt
- Update existing promptsdelete_prompt
- Remove promptsapply_template
- Apply variables to template promptsget_stats
- Get prompt statistics
Pre-loaded Templates
- Code Review Assistant
- Documentation Writer
- Bug Analyzer
- Architecture Reviewer
- Test Case Generator
📦 Installation
🎯 Quick Start
HTTP Mode
MCP Mode
🔧 Cursor Integration
- Configure Cursor MCP:
Add to
.cursor/mcp.json
: - Restart Cursor to load the MCP server
- Use in Cursor:
- The MCP tools will be available in Cursor's AI assistant
- You can ask Cursor to manage prompts using natural language
🐳 Docker Support
Build MCP Docker Image
Run with Docker Compose
View Logs
📚 Documentation
- MCP_README.md - Comprehensive MCP usage guide
- API Documentation - Full API reference
- Examples - Usage examples and configurations
🛠 Development
Prerequisites
- Node.js >= 20.0.0
- pnpm >= 9.0.0
Setup
Available Scripts
📊 Project Structure
🔍 Testing
MCP Server Testing
HTTP Server Testing
📈 Usage Examples
Using MCP Tools
List All Prompts
<<<<<<< HEAD
Build Issues
TypeScript Path Resolution Errors:
SWC Build Failures:
Workspace Dependency Issues:
Missing Modules or Types:
- Ensure you have built
@mcp-prompts/core
first - Check that all
dist/
directories are up to date - If you change the shared config or move files, clean all
dist/
directories and rebuild
Runtime Issues
Common Issues:
- If you see errors about missing modules or types, ensure you have built
@mcp-prompts/core
first and that alldist/
directories are up to date. - If you change the shared config or move files, clean all
dist/
directories and rebuild.
Architecture
Hexagonal Architecture (Ports & Adapters)
MCP Prompts follows a clean hexagonal architecture pattern:
- Core: Pure domain logic without infrastructure dependencies
- Ports: Interfaces defined in core package
- Adapters: Infrastructure implementations in adapter packages
- Apps: Composition and configuration in apps folder
Directory Structure
Development
Build Commands
Package-specific Commands
Testing
- Vitest for unit tests
- Playwright for e2e tests
- Coverage > 90% for core packages
- Integration tests for adapters
API Reference
For detailed API documentation, see:
References
- Turborepo TypeScript Monorepo Guide
- Separate tsconfig for builds
- Hexagonal Architecture: Wikipedia
MCP Specification
Apply Template
Add New Prompt
🌟 Features
- Template Variables - Use
{{variable}}
syntax for dynamic content - Tag System - Organize prompts with tags for easy filtering
- Metadata Support - Add categories, difficulty, time estimates
- Version Control - Track prompt versions and changes
- Error Handling - Comprehensive error handling and logging
- TypeScript - Full TypeScript support with type definitions
- Docker Ready - Containerized deployment support
🤝 Contributing
- Fork the repository
- Create a feature branch
- Implement your changes
- Add tests if applicable
- Submit a pull request
📄 License
MIT License - see LICENSE file for details.
🆘 Support
- Issues: GitHub Issues
- Documentation: MCP_README.md
- Examples: examples/
Version: 3.0.8
Status: ✅ Production Ready
MCP Support: ✅ Full Implementation
Cursor Integration: ✅ Ready
Related MCP Servers
- AsecurityAlicenseAqualityProvides pre-defined prompt templates for AI assistants to generate comprehensive plans for TypeScript projects, API architectures, and GitHub workflows.Last updated -21MIT License
- -securityAlicense-qualityServes prompt templates through a standardized protocol for transforming basic user queries into optimized prompts for AI systems.Last updated -6Apache 2.0
- -securityFlicense-qualityEnables access to prompt templates managed in MLflow through Claude Desktop, allowing users to instruct Claude with saved templates for repetitive tasks or common workflows.Last updated -2
- AsecurityAlicenseAqualityA Model Context Protocol server for managing prompt templates as markdown files with YAML frontmatter, allowing users and LLMs to easily add, retrieve, and manage prompts.Last updated -539MIT License