add_prompt
Adds a new prompt to the project-specific prompt directory.
Keep your prompts as plain JSON files and hand them to any MCP client as first-class prompts.
LABSCO SUMMARY
Because everything is a JSON file in one directory, your prompt library lives in version control alongside your code and a prompt change is reviewed like anything else. The tools exist for the times hand-editing a file is the wrong shape, and refine_and_add_prompt is the one that does more than bookkeeping.
A file-based prompt server. Prompts live as JSON in one directory, are exposed through MCP's standard prompt listing and templating, and are managed through tools rather than by hand-editing.
Node. The prompt directory location is configurable; without it, prompts go into a folder under your home directory. A container image is buildable from the repository if you want the registry isolated.
One command — npx mcp-promptregistry
USE CASES
Register a prompt once with its variables declared, then call it by name from any client.
Filter by the tags you gave it rather than scrolling the whole list.
Run it through optimisation and store the refined version in the registry.
Copy the bundled defaults into your prompt directory without overwriting anything you already have.
Read the raw JSON definition, variables and metadata included, rather than the rendered version.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_promptAdds a new prompt to the project-specific prompt directory.
delete_promptDeletes a prompt from the project-specific directory. If a user global default with the same ID exists, it will become active.
filter_prompts_by_tagsLists active prompts (project-specific or user global defaults) that match all specified tags.
get_prompt_file_contentRetrieves the raw JSON definition of the active prompt (project-specific or user global default).
load_default_promptsLoads all default prompts from the default_prompts_data directory into the active prompt directory, skipping any that already exist.
refine_and_add_promptOptimizes a prompt using Claude Prompt Optimizer techniques, then adds the refined version to the registry.
update_promptUpdates an existing prompt. Updates are always written to the project-specific directory, creating an override if necessary.
BEFORE YOU INSTALL
7 tools when we connected. refine_and_add_prompt is undocumented. Prompts themselves come through prompts/list and prompts/get, and some clients cannot call these management tools.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx mcp-promptregistry{
"mcpServers": {
"mcp-promptregistry": {
"command": "npx",
"args": [
"mcp-promptregistry"
],
"env": {
"PROMPT_REGISTRY_PROJECT_DIR": "<YOUR_PROMPT_REGISTRY_PROJECT_DIR>"
}
}
}
}