TM

tae4an/mcp-prompt-manager

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5 stars 3 forks 품질 69 트렌드 13MIT

Local Prompt Management System(Model Context Protocol Server)

개요

This project is officially certified by MCP Review. MCP (Model Context Protocol) Prompt Manager is a server that enables AI models like Claude to access local prompt files. It provides functionality for creating, retrieving, updating, and deleting prompts, allowing efficient management of frequently used prompts. - List all prompts - Retrieve specific prompt content - Create new prompts - Update prompt content - Delete prompts - : Advanced fuzzy search with multiple algorithms (Levenshtein, Jaro-Winkler, n-gram similarity) - : Organize prompts with categories and tags - : Use variable substitution with {{variable}} syntax and advanced conditionals - : Built-in template library with 12 professional templates across 5 categories - : Mark frequently used prompts as favorites - : Automatic metadata tracking for enhanced organization - : Complete version control with history tracking, diff comparison, and rollback capabilities - : Backup and restore prompts with JSON format, including...

README

원문 README의 일부입니다. 원문 보기.

MCP Prompt Manager

Certified by MCP Review

This project is officially certified by MCP Review.

MCP (Model Context Protocol) Prompt Manager is a server that enables AI models like Claude to access local prompt files. It provides functionality for creating, retrieving, updating, and deleting prompts, allowing efficient management of frequently used prompts.

Key Features

Core Features

  • List all prompts
  • Retrieve specific prompt content
  • Create new prompts
  • Update prompt content
  • Delete prompts

Advanced Features

  • Intelligent Search: Advanced fuzzy search with multiple algorithms (Levenshtein, Jaro-Winkler, n-gram similarity)
  • Category & Tag System: Organize prompts with categories and tags
  • Template Processing: Use variable substitution with {{variable}} syntax and advanced conditionals
  • Template Library: Built-in template library with 12 professional templates across 5 categories
  • Favorites Management: Mark frequently used prompts as favorites
  • Metadata Management: Automatic metadata tracking for enhanced organization
  • Version Management: Complete version control with history tracking, diff comparison, and rollback capabilities
  • Import/Export System: Backup and restore prompts with JSON format, including metadata and version history
  • Security & Validation: Comprehensive input sanitization, rate limiting, and error handling
  • Caching System: Intelligent caching for improved performance
  • Structured Logging: Advanced logging with multiple levels and file output

Installation

Prerequisites

  • Node.js v18 or higher
  • npm

Installation Steps

  1. Clone the repository

    git clone https://github.com/Tae4an/mcp-prompt-manager.git
    cd mcp-prompt-manager
    
  2. Install dependencies

    npm install
    
  3. Grant execution permissions

    chmod +x server.js
    

Containerized Run

Run with Docker

docker build -t mcp-prompt-manager:local .
docker run --rm \
  -e NODE_ENV=production \
  -e LOG_DIR=/var/log/mcp \
  -e PROMPTS_DIR=/data/prompts \
  -v $(pwd)/prompts:/data/prompts \
  -v $(pwd)/logs:/var/log/mcp \
  mcp-prompt-manager:local

Run with Docker Compose

docker compose up -d --build

Environment variables

  • PROMPTS_DIR: Directory to store prompts (default: project prompts)
  • LOG_DIR: Directory for file logging (default: ./logs)
  • Cache TTL/size:
    • FILE_CACHE_TTL, FILE_CACHE_MAX_SIZE
    • SEARCH_CACHE_TTL, SEARCH_CACHE_MAX_SIZE
    • METADATA_CACHE_TTL, METADATA_CACHE_MAX_SIZE
    • TEMPLATE_CACHE_TTL, TEMPLATE_CACHE_MAX_SIZE
  • Rate limit presets:
    • RATE_LIMIT_STANDARD_WINDOW_MS, RATE_LIMIT_STANDARD_MAX
    • RATE_LIMIT_STRICT_WINDOW_MS, RATE_LIMIT_STRICT_MAX
    • RATE_LIMIT_LENIENT_WINDOW_MS, RATE_LIMIT_LENIENT_MAX
GitHub에서 전체 README 보기

설치

docker run --rm \
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "promptManager": { "command": "node", "args": ["absolute_path_to_cloned_repository/server.js"] } } }