Labsco
daneb logo

MCP Prompt Collector

โ˜… 3

from daneb

Tools for logging, analyzing, and improving Claude Desktop prompts to enhance prompt engineering skills.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

MCP Prompt Collector

An MCP server that provides interactive tools for logging, analyzing, and improving your Claude Desktop prompts to help you develop better prompt engineering skills.

What It Does

  • ๐Ÿ› ๏ธ Interactive Tools: Provides 4 tools accessible in Claude Desktop for prompt analysis
  • ๐Ÿ“Š Quality Analysis: Scores prompts on structure, clarity, context, and effectiveness
  • ๐Ÿ’ก Smart Insights: Identifies patterns and suggests specific improvements
  • ๐Ÿ“ˆ Progress Tracking: Shows quality trends and improvement over time
  • ๐ŸŒ Web Dashboard: Clean interface to view history, analytics, and insights

Features

Core Functionality

  • โœ… Interactive MCP tools for Claude Desktop integration
  • โœ… SQLite database for local storage (no cloud sync)
  • โœ… Real-time prompt quality scoring
  • โœ… Web dashboard with analytics
  • โœ… Automated insights generation

Available Tools

  • log_prompt - Log and analyze a prompt with immediate quality feedback
  • improve_prompt - Get specific suggestions for improving any prompt
  • get_prompt_insights - View analytics and patterns from your prompt history
  • view_stats - Display comprehensive statistics and quality trends

Analysis Engine

  • Quality Scoring: 0-10 score based on structure, clarity, and completeness
  • Complexity Detection: Categorizes prompts as simple, moderate, or complex
  • Technique Suggestions: Recommends optimal prompting techniques
  • Issue Detection: Identifies ambiguity, missing context, bias, etc.

Dashboard Features

  • Prompt history with search and filtering
  • Quality trends over time
  • Complexity distribution charts
  • Recent activity overview
  • Actionable improvement insights

How It Works

  1. MCP Integration: Registers as an MCP server with Claude Desktop
  2. Interactive Tools: Provides 4 tools accessible through Claude Desktop interface
  3. Manual Logging: Users explicitly log prompts using the log_prompt tool
  4. Analysis: Scores quality, detects patterns, identifies improvements
  5. Storage: Saves everything locally in SQLite database
  6. Insights: Generates personalized suggestions based on your patterns
  7. Dashboard: Provides web interface to view analytics and history

Data Storage

All data is stored locally in SQLite database:

  • Location: ~/.mcp-prompt-collector/data/prompt_history.db
  • Privacy: No cloud sync, complete local control
  • Retention: Configurable cleanup after N days
  • Export: Full data export capabilities

Development

# Clone and setup
git clone <repo-url>
cd mcp-prompt-collector
npm install

# Development workflow
npm run dev        # Watch mode
npm run build      # Production build
npm test          # Run tests
npm run lint      # Code quality

# Testing
npm run test:unit        # Unit tests
npm run test:integration # Integration tests

Architecture

  • MCP Protocol Handler: Communicates with Claude Desktop
  • Storage Manager: SQLite database operations
  • Analysis Engine: Prompt quality scoring and insights
  • Dashboard Server: Express.js web interface
  • Background Worker: Scheduled analysis and cleanup

Privacy & Security

  • โœ… Local Only: All data stays on your machine
  • โœ… No Cloud Sync: Zero external data transmission
  • โœ… User Control: Complete data ownership and export
  • โœ… Transparent: Open source, auditable code