Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prompteka MCP ServerSearch my library for my 'Python Refactoring' prompt"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Prompteka MCP Server
Model Context Protocol server for Prompteka - enables AI assistants to read and write your prompt library.
TL;DR
What is Prompteka? Prompteka is a native macOS app (available on the App Store) that lets you organize, search, and manage your AI prompt library locally on your Mac. Think of it as a smart folder system for all your prompts with tagging, emojis, colors, and full-text search.
What does this MCP Server do? This server enables any MCP-compatible AI assistant (Claude Desktop, Cursor, and others) to directly access and manage your Prompteka library programmatically. Instead of manually copying prompts in and out, your AI assistant can:
š Read and search your entire prompt library
āļø Create new prompts and organize them
šØ Update existing prompts with new content
šļø Organize your library by moving prompts between folders
How do they work together?
The MCP server connects directly to your Prompteka database, so changes made by the AI are persisted immediately to the database. Refresh the Prompteka app to see updates in the UI. No syncing, no copying - single source of truth.
Installation:
Have Prompteka app installed
npm install -g prompteka-mcp(once published)Configure your MCP client (Claude Desktop, Cursor, etc.)
Start using: "Add this prompt to my Security folder"
Ready to dive in? Jump to Workflow Scenarios to see what you can do with MCP + Prompteka.
Table of Contents
šØ Regular Backups Recommended
Your prompt library is valuable! We strongly encourage you to regularly backup your Prompteka library. Backups are fully supported through the Prompteka app itself and protect you against accidental deletions or data loss. You can export your entire library as a backup file directly from Prompteka - this is a safe, built-in feature that ensures you never lose your prompts.
Features
ā Read Your Prompts List, search, and retrieve all your prompts and folders with full content.
ā Create & Organize Create new prompts in specific folders with emojis, colors, and links.
ā Update & Delete Modify existing prompts or organize your library through AI.
ā
Safe & Local-Only
Operates entirely locally in ~/Library/Application Support/prompteka/.
No network calls, no telemetry, no data sent anywhere.
ā Independent Operation Works with or without Prompteka app running. Direct database access means zero dependencies.
How It Works
Integration with Prompteka
The MCP server connects directly to the same SQLite database that the Prompteka app uses. This means:
Database-Level Persistence: Changes made by the AI are committed to the database immediately (< 10ms)
Single Source of Truth: The local SQLite database is the only copy of your data
Concurrent Safe: Both Prompteka app and MCP server can operate simultaneously without conflicts
App-Independent: The MCP server doesn't depend on the Prompteka app being running
UI Refresh Required: Refresh the Prompteka app (āR or Refresh button) to see changes in the UI
Architecture Overview
The Prompteka MCP Server operates in two modes:
Read Operations (Fast, Direct Database Access)
Connects directly to your Prompteka SQLite database at
~/Library/Application Support/prompteka/prompts.dbUses WAL (Write-Ahead Logging) mode for safe concurrent access with Prompteka app
Returns results in < 100ms
Does NOT interfere with Prompteka app operations
Write Operations (Immediate Database Persistence)
Writes directly to Prompteka SQLite database using WAL mode
Uses atomic transactions with full ACID guarantees
Changes committed immediately (< 10ms)
Available to other MCP read operations and SQLite clients immediately
Prompteka app UI updates upon refresh (āR or Refresh button)
SQLite handles concurrent access safely
This unified approach ensures:
ā Sub-10ms database persistence (immediate data availability)
ā No app dependency - MCP server operates standalone
ā Safe concurrent read-write with WAL mode
ā Automatic atomic rollback on errors
ā Zero orphaned operations or cleanup needed
ā Single source of truth - the local SQLite database
Database Location
Prompteka stores its data at:
The MCP server accesses this file to read your prompts and folders.
Write Operations (Direct Database)
When you use write tools (create_prompt, update_prompt, etc.), here's what happens:
Validation: MCP server validates your input against JSON schemas (local, instant)
Transaction: Opens atomic SQLite transaction with implicit locking
Execution: Executes INSERT/UPDATE/DELETE operation against prompts.db
Commit: Transaction commits automatically (or rolls back if error)
Response: Returns success/error response immediately (< 10ms typical)
Visibility: Changes are immediately available to:
Other MCP read operations (instant)
Prompteka app database queries (instant)
Prompteka app UI (upon refresh with āR or Refresh button)
Any other SQLite clients accessing the database (instant)
This all happens in < 10ms at the database level. No app required to be running. Refresh the Prompteka app to see changes reflected in the UI.
Quick Reference: All Tools
Tool | Type | Description |
| Read | Get all folders with metadata |
| Read | Get prompts from folder (paginated) |
| Read | Get single prompt by ID |
| Read | Full-text search across prompts |
| Read | Verify MCP server and database operational |
| Write | Create new prompt in folder |
| Write | Modify existing prompt |
| Write | Delete prompt (idempotent) |
| Write | Create new folder |
| Write | Modify folder properties |
| Write | Delete folder with safety checks |
| Write | Move prompt to different folder |
Response Times:
Read tools: < 100ms (direct database)
Write tools: < 10ms (direct database, atomic transactions)
All operations are logged with detailed status, errors, and timing information.
Installation
Prerequisites
Prompteka app from the App Store installed on your Mac
(Just needs to have been opened once to create the database)
The app does NOT need to stay running - the MCP server accesses the database directly
Node.js 18.0.0 or newer
npm 9.0.0 or newer
Note: You can have Prompteka app and this MCP server running simultaneously with zero conflicts. They share the same SQLite database safely via WAL mode.
Check your versions:
Step 1: Install Prompteka MCP Server
Option A: From npm (once published)
Option B: From source (development)
Step 2: Configure Your MCP Client
The MCP server is now installed. Next, configure your MCP-compatible AI tool to use it.
Add this server configuration to your MCP client:
Common MCP client configuration locations:
Client | Config File Location |
Claude Desktop (macOS) |
|
Claude Desktop (Windows) |
|
Cursor | Check Settings ā MCP |
Other clients | Refer to your client's MCP documentation |
After adding the configuration, fully restart your MCP client (quit and reopen, not just close the window).
Step 3: Verify Installation
Verify the binary is installed:
Advanced Configuration
Custom Database Path
If Prompteka is installed in a non-standard location:
Or in your MCP config:
Logging Level
Control verbosity:
Log output appears in your MCP tool's console.
Available Tools (12 Total)
Read-Only Tools (5 tools, Direct Database Access)
list_folders
Get all your folders with metadata (name, parent hierarchy, timestamps).
list_prompts
Get prompts from a specific folder with pagination.
get_prompt
Get full details of a single prompt by ID.
search_prompts
Full-text search across all prompt titles and content.
health_check
Verify MCP server and database are operational. Returns server version and connectivity status.
Write Tools (7 tools, Direct Database Access)
create_prompt
Create a new prompt in a folder with emoji, color, and optional URL. Defaults to š¤ emoji and blue color if not specified.
update_prompt
Modify an existing prompt (title, content, folder, emoji, color, URL).
delete_prompt
Delete a prompt (requires explicit confirmDelete=true safety confirmation, idempotent - safe to retry).
create_folder
Create a new folder with optional parent folder for nesting.
update_folder
Rename or reorganize a folder.
delete_folder
Delete a folder (requires explicit confirmDelete=true safety confirmation).
Can delete empty folders instantly
Can delete folder with all contents using
recursive=trueAI will ask for confirmation before deleting folders with contents
move_prompt
Move a prompt to a different folder.
Move single prompt to new folder
Target can be any folder (or null for root)
Updates folder references automatically
Response Times
Read operations: < 100ms (direct database)
Write operations: < 10ms (direct database, atomic transactions)
Use Cases
UC1: Capture Prompts Quickly
An MCP client can automatically save generated prompts directly to your Prompteka library without manual copy-paste.
UC2: Organize Your Library
MCP clients can help organize and reorganize your prompt library, move prompts between folders, and apply consistent tagging.
UC3: Audit Your Prompts
Analyze your prompt library - count prompts by color, folder, age; identify unused prompts; find duplicates.
UC4: Clone & Customize
Create variations of existing prompts with MCP integration - modify content, category, metadata in one operation.
UC5: Backup & Migrate
Use the Prompteka app's built-in export feature to backup your entire library or migrate between systems. The MCP server provides read access for automation purposes, but full backup/restore operations are safely handled by the Prompteka app itself to ensure data integrity.
UC6: Batch Operations
Perform bulk changes - update colors, reorganize folders, or apply metadata to multiple prompts at once.
Workflow Scenarios & Support Matrix
Real-world scenarios showing different states (no prompts, one prompt, multiple prompts) and whether they're currently supported:
Legend:
⨠= Create new prompt/folder(s)
š = Read/search/retrieve existing
šØ = Modify/update existing
šļø = Delete
ā = System check
Scenario | User Action | Folder State | Prompt State | What Happens | Currently Supported |
⨠Save Generated Prompt | "Save this as 'Security Checklist' in Security folder" | Folder exists | ā New | AI calls | ā YES |
⨠Save Without Folder | "Save that as 'Quick Test'" | ā Must choose or create | ā New | AI calls | ā YES |
āØāØ Save & Create Folder | "Save as 'Testing' in new folder 'QA'" | ā Doesn't exist | ā New | AI calls | ā YES |
š Find & Run Prompt | "Run my code review prompt" | ā Single exists | ā Single match | AI calls | ā YES |
š Ambiguous Search | "Run code review prompt" | ā Exists | ā Multiple matches (General, Security, Performance) | AI calls | ā YES |
š Run from Folder | "Run all testing prompts" | ā Testing folder exists | ā Multiple (5 prompts) | AI calls | ā YES |
š Search All Prompts | "Find prompts about authentication" | N/A | ā Found 3 matches | AI calls | ā YES |
⨠Save Prompt Variation | "Save this variant as 'Code Review v2'" in existing folder | ā Exists | ā New (variation) | AI calls | ā YES |
šØ Update Existing Prompt | "Update my security prompt with this new content" | ā Exists | ā Single found | AI calls | ā YES |
šØ Move Prompt | "Move this prompt from Personal to Work" | ā Both exist | ā Found | AI calls | ā YES |
āØāØāØ Organize by Folder | "Create folders for Work, Personal, Testing" | ā Don't exist | N/A | AI calls | ā YES |
š List Everything | "Show me all my prompts organized by folder" | ā Multiple | ā Multiple | AI calls | ā YES |
š Batch Review | "Run all security prompts against this code" | ā Security folder exists | ā Multiple (5 security prompts) | AI calls | ā YES |
š Prompt Chain | "Walk me through: Setup > Configure > Deploy" | ā Exists | ā 3 prompts in sequence | AI calls | ā YES |
šļø Delete Old Prompt | "Remove the old password prompt" | ā Exists | ā Single found | AI calls | ā YES |
šØ Rename Folder | "Rename Security folder to SecOps" | ā Exists | N/A | AI calls | ā YES |
šļø Delete Empty Folder | "Clean up old Test folder" | ā Empty folder exists | N/A (folder empty) | AI calls | ā YES |
šļø Delete with Contents | "Remove Testing folder and all prompts in it" | ā Exists with prompts | ā Multiple | AI asks user to confirm, then calls | ā YES (with confirmation) |
ā Health Check | "Is the MCP server running?" | N/A | N/A | AI calls | ā YES |
Key Workflow Patterns
Pattern 1: Save Iteration
Support: ā Full (create_prompt tool)
Pattern 2: Search & Execute
Support: ā Full (search_prompts + get_prompt tools)
Pattern 3: Batch Run
Support: ā Full (list_prompts + get_prompt tools)
Pattern 4: Organize
Support: ā Full (search_prompts + create_folder + move_prompt tools)
Security & Privacy
Network & Data
Strictly local-only: No network calls whatsoever
No telemetry: No analytics, no error reporting
Your data stays yours: All operations within
~/Library/Application Support/prompteka/No copies: Prompt data never leaves your machine
Sandbox-safe: Works within macOS sandbox restrictions
Validation & Safety
All inputs validated before writing
Symlinks rejected (path traversal protection)
File permissions: 0600 (user-only)
Idempotent writes (safe to retry)
Logging
Logs are structured JSON (no PII):
Prompt content: Never logged (only length tracked)
Emails/URLs: Redacted
Debug logs available with
LOG_LEVEL=debug
Troubleshooting
"Database file not found"
This means the Prompteka app hasn't created its database yet. Ensure Prompteka is installed and has been opened at least once:
Once you've opened Prompteka once, check the database exists:
"Database is locked" or "SQLITE_BUSY"
The database write lock timed out after 5 seconds. This is rare but can happen if:
Prompteka app is performing a large operation
Database corruption scan is running
Another MCP client is also writing
Solution: Retry the operation. Automatic retry is built-in, but if you still see this error:
Changes via MCP not showing in Prompteka app
If you've made changes to your prompts through MCP (via Claude, Cursor, etc.) and the Prompteka app is open, you may need to refresh the app to see the latest data.
Solution: Refresh the Prompteka app:
Click the "Refresh" button in the top toolbar
Keyboard shortcut: Press
āR(Command+R)
The MCP server writes directly to the database, so changes are persistent immediately. The app refresh simply reloads the UI to display the updated data.
API Reference
See documentation/PRD.md for complete API specification including:
Tool schemas and validation rules
Error taxonomy with recovery strategies
Database contract (WAL mode, transactions, concurrency)
Concurrency & limits policy
Testing strategy
Development
Building from Source
Development Mode
Code Quality
Architecture
The MCP server uses a read-direct, write-direct pattern with SQLite WAL mode:
Minimum Requirements
Requirement | Version | Notes |
macOS | 12.0+ (Monterey) | Prompteka requirement |
Node.js | 18.0.0+ | LTS, ESM support |
npm | 9.0.0+ | Bundled with Node 18+ |
Prompteka | 1.6.2+ | WAL mode support |
Contributing
This is a public project. Contributions welcome!
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-thing)Commit changes with clear messages
Push to branch (
git push origin feature/amazing-thing)Open a Pull Request
License
MIT - See LICENSE file for details
Support & Resources
About Prompteka
Official Website: prompteka.net
App Store: Prompteka on Mac App Store
Prompteka Support: prompteka.net/support.html
Privacy Policy: prompteka.net/privacy-policy.html
About This MCP Server
Documentation: See
documentation/PRD.mdfor complete API specificationGitHub Issues: Report bugs or request features
Contributing: See
CONTRIBUTING.mdfor developer guidelines
Privacy Policy
The Prompteka MCP Server is local-only and does not collect any data. For Prompteka app privacy details, see: https://prompteka.net/privacy-policy.html
Made with ā¤ļø for Prompteka users
Questions? Open an issue on GitHub.