prompt-library-app

mikeybizzzle/prompt-library-app

3.1

If you are the rightful owner of prompt-library-app and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Model Context Protocol (MCP) server is designed to facilitate seamless integration and communication between various AI models and applications, providing a structured and efficient way to manage and deploy AI prompts.

Tools
1
Resources
0
Prompts
0

Prompt Library

A personal AI prompt database with multiple access methods: Web UI, Desktop App, CLI, and Claude Code MCP integration.

Features

  • Organization: Folders (primary) and tags (secondary) for organizing prompts
  • Multiple Formats: Support for plaintext, markdown, XML, and JSON prompts
  • Version History: Track changes with diff and revert capabilities
  • Notes: Dedicated notes/instructions pane for each prompt
  • Full-Text Search: Fast search using SQLite FTS5
  • Dark Mode: Polished UI with dark mode support
  • GitHub Sync: Auto-sync your prompts to a GitHub repository

Access Methods

1. Web UI

Modern React-based interface with:

  • Sidebar with folder tree and tags
  • Command palette (Cmd+K)
  • CodeMirror editor with syntax highlighting
  • Animations with Framer Motion

2. Desktop App (Electron)

Native desktop application with:

  • System tray icon
  • Dock menu (macOS)
  • Native dark/light theme
  • Keyboard shortcuts

3. CLI

Command-line interface for terminal users:

# List prompts
prompts list

# Search
prompts search "code review"

# Get a prompt
prompts get my-prompt-slug

# Copy to clipboard
prompts copy my-prompt-slug

# Create a prompt
prompts create -t "Title" -c "Content" -f markdown

4. Claude Code MCP

Direct integration with Claude Code via MCP (Model Context Protocol):

{
  "mcpServers": {
    "prompt-library": {
      "command": "node",
      "args": ["/path/to/prompt-library-app/packages/mcp/dist/index.js"]
    }
  }
}

Quick Start

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Start the web app
pnpm dev

Project Structure

prompt-library-app/
├── apps/
│   ├── web/              # Next.js web application
│   └── desktop/          # Electron desktop app
├── packages/
│   ├── core/             # Shared database and services
│   ├── cli/              # Command-line interface
│   └── mcp/              # MCP server for Claude Code
└── pnpm-workspace.yaml

Development

Web App

pnpm --filter web dev

Open http://localhost:3000

Desktop App

# Start web app first
pnpm --filter web dev

# In another terminal
pnpm --filter @prompt-library/desktop start

CLI

pnpm --filter @prompt-library/cli build
node packages/cli/dist/index.js --help

MCP Server

pnpm --filter @prompt-library/mcp build

Database

The application uses SQLite with:

  • Drizzle ORM for type-safe database access
  • FTS5 for full-text search
  • Automatic migrations on startup

Database location: ~/.prompt-library/prompts.db

GitHub Sync

Enable auto-sync to backup your prompts to GitHub:

  1. Click the cloud icon in the sidebar
  2. Initialize sync
  3. Connect your GitHub repository
  4. Changes will auto-sync every 5 minutes

Prompts are exported as markdown files with YAML frontmatter.

Tech Stack

  • Frontend: Next.js 16, React 19, Tailwind CSS, shadcn/ui
  • Editor: CodeMirror 6
  • Desktop: Electron
  • Database: SQLite + Drizzle ORM
  • CLI: Commander.js
  • MCP: @modelcontextprotocol/sdk

License

MIT