MCP Prompts Server
Store, search, serve, and manage prompt templates/agent configurations for MCP clients, with optional HTTP access and project orchestration.
List and filter prompts by tags, category, template status, search text, and pagination.
Retrieve a prompt by ID, including content and template variables.
Fill template placeholders and report missing or unused variables.
View library statistics, tags, categories, storage mode, and prompt sources.
Add, update, and delete prompts; changes may be persisted to a state directory or kept in memory only.
Run as an MCP stdio/HTTP server and integrate with Claude Desktop, Claude Code, Cursor, and other MCP clients.
Serve selected profiles, prompts, and templates with configurable capabilities and read-only mode.
Expose a JSON HTTP API for prompt CRUD, template application, stats, and MCP tool calls.
Orchestrate whole projects by loading agent templates and invoking Claude CLI agents.
Supports deployment using Docker and Docker Compose for containerized deployment
Built on Node.js with support for Node.js 18 or later
Provides integration with PostgreSQL databases for storing prompts, with export/import functionality and synchronization between file storage and database
Built using TypeScript, as indicated by the project structure and build process
Click on "Deploy 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., "@MCP Prompts Server create a code review prompt for Python with variables for language and code"
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.
mcp-prompts
A Model Context Protocol server that stores, searches and serves prompt templates and agent configurations to any MCP client (Claude Desktop, Claude Code, Cursor and others), plus a script that uses those templates to orchestrate Claude CLI agents over a whole project.
Listed on Glama, MCP Market and AIBASE. A Rust reimplementation focused on memory efficiency and concurrency lives in mcp-prompts-rs.
Configure an install in the browser: pick a profile
or your own prompts and templates, choose the MCP capabilities, and copy the matching claude mcp add
command, client config, URL or config file. The page reads the library from this branch.
What It Does
Stores prompts as JSON files in
data/prompts/Exposes MCP tools for querying and managing prompts
Provides agent templates for project orchestration
Works with Claude Desktop, Cursor, and other MCP clients
Related MCP server: PromptingBox MCP Server
Packages
GitHub Packages (preferred):
@sparesparrow/mcp-prompts, registryhttps://npm.pkg.github.comnpm:
@sparesparrow/mcp-prompts, no token needed
Both registries receive the same version from every v* tag (first together at 4.0.2); Docker images follow the same tag.
Docker:
ghcr.io/sparesparrow/mcp-prompts(Docker Hub:sparesparrow/mcp-prompts)
Claude Code plugin
The plugin starts the server for you, asks for your settings once, and adds three skills that do the tool calls:
/plugin install mcp-prompts --marketplace sparesparrow/mcp-promptsOr in two steps: /plugin marketplace add sparesparrow/mcp-prompts, then /plugin install mcp-prompts@sparesparrow.
Claude Code then asks for these settings; change them later in /config:
Setting | What it does |
Package registry |
|
GitHub token | A classic personal access token with |
Your prompts folder | Your own prompt JSON files, loaded on top of the bundled ones ( |
Default tags | Comma-separated tags the skills search unless you name others, such as |
Preferred language |
|
Shared catalog URL | An |
The skills:
/mcp-prompts:find-promptsearches by your default tags, a search text and your language./mcp-prompts:use-prompt <id>asks for each template variable, fills the template and checks that no{{is left./mcp-prompts:save-promptwrites a prompt as a JSON file into your folder. Unlike theadd_prompttool, which keeps it in memory only, the file outlasts a restart. Reconnect the server in/mcpto load it.
The plugin runs the server with npx, pinned to the plugin's version. For that one command it uses its own npm
settings file (plugin/npmrc/) instead of your ~/.npmrc, so a registry mirror or proxy set there is not used.
Quick Start
1. Install from GitHub Packages
GitHub Packages asks for a token even for public packages (without one the install fails with 401 Unauthorized). Create a personal access token with the read:packages scope (or, with the GitHub CLI, run gh auth refresh -h github.com -s read:packages), then add this to ~/.npmrc:
@sparesparrow:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_TOKENKeep the token out of any file you commit. Then install:
npm install -g @sparesparrow/mcp-prompts
mcp-prompts # starts the MCP server on stdio; stop it with Ctrl+CThe package ships the prompts in data/prompts, and the server finds them wherever an MCP client starts it from. Three environment variables change what it loads, each layer replacing the one before it for prompts with the same id:
Variable | What it loads |
| A directory used instead of the bundled prompts. |
| A JSON catalog fetched once at start: an array of prompts, or |
| Your own directories, separated by |
get_stats reports how many prompts came from each source (bundled, catalog, user, and session for prompts added with add_prompt).
To install from npm instead, skip the ~/.npmrc lines above and run npm install -g @sparesparrow/mcp-prompts. It is the same package, and npm needs no token.
2. Add the server to your MCP client
Claude Code, for every project:
claude mcp add -s user mcp-prompts -- mcp-promptsOr for one project, commit a .mcp.json at its root (no paths or tokens in it). Claude Code asks you to approve it the first time:
{
"mcpServers": {
"mcp-prompts": {
"command": "mcp-prompts",
"args": []
}
}
}Check it with claude mcp list. Use one of the two: registering the same name at both scopes gives you two servers.
Claude Desktop and other clients take the same command in their config (for Claude Desktop, claude_desktop_config.json), with the same mcpServers block as above. If the client does not find mcp-prompts on its PATH, use the full path from which mcp-prompts as the command.
Install a profile
By default an install serves every bundled prompt, so every unfiltered list_prompts call returns
all of them. A profile serves only the prompts one kind of work needs:
Profile | For | Prompts | A |
| Analysing and reviewing a software project | 13 | 21% of the whole library's |
| Firmware, Raspberry Pi, Android and device bridges | 11 | 23% |
| The MIA in-car assistant at run time | 8 | 13% |
| Voice commands and home automation | 13 | 37% |
| The self-improvement loop | 8 | 11% |
claude mcp add -s user mcp-prompts -- mcp-prompts --profile software-dev
mcp-prompts profiles # what each profile serves, and which prompts are in noneSeveral names (--profile software-dev,embedded-iot) serve the prompts of any of them. The
profiles live in data/prompts/profiles.json;
deploy/README.md says what is in each, how the sizes were measured, how to
install one over Docker or HTTP, and how to change or add one.
Choose what gets installed
Beyond the profiles, you can choose yourself (the install page does it with checkboxes and writes the options below for you):
which plain prompts and which templates to serve (two separate lists);
which MCP capabilities expose them:
tools,prompts(each prompt becomes a slash command, with a template's variables as its arguments) andresources(each prompt is readable asprompts://<id>, for attaching as context);whether the install is read-only (no
add_prompt,update_promptordelete_prompt).
The same options go in the install command, the client config file, a dedicated config file or the URL:
Option | Flag | Environment | Config file | URL ( |
Profiles to serve |
|
|
|
|
Plain prompts to serve |
|
|
|
|
Templates to serve |
|
|
|
|
Leave out of both |
|
|
|
|
Capabilities (default |
|
|
|
|
Read-only |
|
|
|
|
Library instead of the bundled one |
|
|
| – |
Your own directories, served in full |
|
|
| – |
Save changes to a directory |
|
|
| – |
Config file |
|
| – | – |
A list is comma-separated, and its entries can be:
all(the default for each list) ornone;a group, meaning a directory of the library such as
mia-car(cognitivealso coverscognitive/meta);a prompt id;
tag:<tag>.
Flags override environment variables, which override the config file. Paths in a config file are relative to that file. The lists narrow a profile when both are given. Only the library is filtered: prompts in your own --dir directories, and prompts added while the server runs, are always served. An own prompt with a library prompt's id replaces it.
See what there is to choose, and what a choice serves:
mcp-prompts catalog # groups, with plain/template counts, tags and ids
mcp-prompts catalog --prompts none --templates mia-car --jsonThen install it in any of these forms. mcp-prompts config with the same options prints all four, ready to paste:
# Command
claude mcp add -s user mcp-prompts -- mcp-prompts --prompts none --templates mia-car,openclaw --expose tools,prompts --read-onlyThe same in a client config (.mcp.json, claude_desktop_config.json, Cursor and others):
{
"mcpServers": {
"mcp-prompts": {
"command": "mcp-prompts",
"args": ["--prompts", "none", "--templates", "mia-car,openclaw", "--expose", "tools,prompts", "--read-only"]
}
}
}# Dedicated config file (see examples/mcp-prompts.config.json), referenced from any client
mcp-prompts --config /absolute/path/to/mcp-prompts.json
# Docker: the mcp tag is the stdio server; options go after the image name or in the environment
docker run --rm -i ghcr.io/sparesparrow/mcp-prompts:mcp --prompts none --templates mia-car --expose tools,prompts
docker run --rm -i -e MCP_PROMPTS_PROFILE=mia-vehicle ghcr.io/sparesparrow/mcp-prompts:mcp
# URL, against a server started with mcp-prompts-http (see HTTP Mode)
claude mcp add -s user --transport http mcp-prompts "http://localhost:3003/mcp?prompts=none&templates=mia-car,openclaw&expose=tools,prompts&readOnly=true"A URL chooses from what that server serves. It can narrow the server's selection and turn read-only on, but it cannot widen the selection, turn read-only off, or name directories. Mistyped options, and a profile the library does not have, stop the server with exit code 2, and a URL with them gets HTTP 400. An entry that matches nothing, or matches only the other list (--prompts mia-car when mia-car holds only templates), is logged as a warning.
Build from source
To run unreleased changes:
pnpm install
pnpm build
node dist/mcp-server-standalone.js # or: pnpm startand point your client at that file:
{
"mcpServers": {
"mcp-prompts": {
"command": "node",
"args": ["/absolute/path/to/mcp-prompts/dist/mcp-server-standalone.js"],
"env": { "PROMPTS_DIR": "/absolute/path/to/mcp-prompts/data/prompts" }
}
}
}3. Use in Claude
Ask Claude:
"List all prompts tagged with orchestration"
"Get the claudepy-esp32-android-bridge-workflow prompt"
"Apply the claudepy-esp32-android-bridge-workflow template with esp32_firmware_path set to ./firmware"
"Add a prompt for Python FastAPI best practices"
Prompts added or changed through add_prompt / update_prompt live in memory and are lost when the server restarts, unless the server has a state directory: with --state-dir ~/.local/share/mcp-prompts each change is saved there as a JSON file and loaded at the next start. Every MCP client on a machine starts its own server; pointed at the same directory they see each other's changes without a restart. get_stats says which applies ("storage": "file" or "memory"). A prompt that belongs in the bundled library is a JSON file under data/prompts/ with a stable id, added by pull request.
HTTP Mode
The same prompts are also available as a JSON API, for clients that don't speak MCP:
pnpm build
PORT=3003 pnpm start:http
# or: mcp-prompts-http, or the default Docker image (port 3003), or: docker compose up -d --wait --buildIt listens on 127.0.0.1 unless HOST says otherwise.
Method and path | Does |
| Liveness; readiness and mode ( |
| List prompt summaries, with |
| Add a prompt (same fields as |
| Read, update or delete one prompt |
| Fill a template: |
| Same counts as |
| Call any MCP tool by name: |
| MCP itself (Streamable HTTP, stateless), for |
curl -s -X POST localhost:3003/v1/prompts/claudepy-esp32-android-bridge-workflow/apply \
-H 'Content-Type: application/json' -d '{"variables":{"esp32_firmware_path":"./firmware"}}'mcp-prompts-http takes the same options as mcp-prompts (flags, environment, --config); they set what the whole server serves. With --read-only, the write routes and tools are left out.
Invalid input answers 400, unknown prompts 404, a taken id 409. Set CORS_ORIGIN to allow browser clients.
Changes made over HTTP live in memory, like those made over MCP, unless --state-dir is set; the files in data/prompts are never rewritten.
Prompts are instructions agents act on, so the server is careful about who may change them:
MCP_PROMPTS_AUTH_TOKEN(orMCP_PROMPTS_AUTH_TOKEN_FILE): when set, every request except/health,/readyand/versionmust sendAuthorization: Bearer <token>.Listening beyond loopback (
HOST=0.0.0.0) with writes enabled and no token is refused at start. Serve read-only, set a token, or setMCP_PROMPTS_ALLOW_INSECURE=truebehind a proxy that authenticates.MCP_PROMPTS_ALLOWED_HOSTSandMCP_PROMPTS_ALLOWED_ORIGINSlist the Host names and browser origins to accept; on loopback only loopback names are.The Docker image is read-only unless
MCP_PROMPTS_READ_ONLY=falseis set together with a token.
Orchestrating Projects
Use the orchestrate script to analyze entire projects:
./scripts/orchestrate-project.sh ~/projects/mia analyze
./scripts/orchestrate-project.sh ~/projects/esp32-bpm-detector reviewThis automatically:
Detects project type
Loads appropriate main agent
Spawns specialized subagents
Runs comprehensive analysis
Returns structured results
MCP Tools
Tool | Description |
| List prompts, filtered by tags, category, kind or a search term, a page at a time |
| Retrieve a prompt by ID |
| Add a new prompt or template |
| Modify existing prompt |
| Remove prompt |
| Fill a template prompt's |
| Repository statistics |
Prompts Organization
data/prompts/
├── main-agents/ # 9 project orchestration templates
│ ├── main_agent_python_backend.json
│ ├── main_agent_cpp_backend.json
│ ├── main_agent_android_app.json
│ ├── main_agent_embedded_iot.json
│ ├── main_agent_web_frontend.json
│ └── ... # also web backend, DevOps, multiplatform IoT, generic
│
├── subagents/ # architecture, security and test analysts
├── cognitive/ # 7 layers: perception, episodes, semantic, procedures,
│ # evaluation, meta, transfer
├── embedded/, cross-platform/, home-automation/, mia-car/, voice-intelligence/
│ # domain knowledge
├── claudepy-workflows/, openclaw/
│ # agent workflow and routing prompts
├── learned/ # prompts produced by the learning loop
└── profiles.json # the profiles: which of the above each kind of work getsArchitecture
Two layers. The full server (src/mcp/mcp-server.ts) is hexagonal: the domain in src/core (entities,
events, services and the repository and event-bus ports) knows nothing about storage or transport, and
storage adapters plug in behind the ports — file and in-memory in src/adapters; the earlier DynamoDB,
S3 and SQS adapters, Lambda handlers and CDK stack are kept in archive/aws and cdk/. The standalone
server that pnpm start and the npm binary run is the small one below: it reads the JSON files in
PROMPTS_DIR directly and speaks MCP over stdio.
┌──────────────────────────────┐
│ MCP Server (stdio) │
│ ├── list_prompts │
│ ├── get_prompt │
│ ├── add_prompt │
│ └── ... │
├──────────────────────────────┤
│ File Storage │
│ └── data/prompts/*.json │
└──────────────────────────────┘
Orchestration:
orchestrate-project.sh
↓ loads prompts
↓ builds agent config
↓ calls claude CLI
Actual agent executionDevelopment
pnpm install # Install dependencies
pnpm build # Build TypeScript
pnpm dev # Watch mode
pnpm test # Run tests
pnpm orchestrate # Test orchestration
pnpm run site # Rebuild the install page (index.html) from site/; see site/README.mdEnterprise Deployment
For enterprise features (AWS, multi-tenant, payments), see archive/aws/README.md.
Most users don't need this - the local MCP server is sufficient.
License
MIT
Available Tools
7 toolsadd_promptAdd a promptA
Add a new prompt. Set isTemplate and variables to make it a template that apply_template can fill. Give id to choose a stable id (it fails if the id is taken); otherwise a random one is assigned. The result says whether the prompt was saved to disk or is kept in memory only.
Inputs: name (required), content (required), id, tags, +5 more. Returns: id, name, version, persisted
apply_templateFill a templateARead-onlyIdempotent
Fill a template prompt's {{variables}} and return the resulting text. Only prompts with isTemplate true can be applied. A placeholder with no value stays in the text as written and is named in missing; a value the template does not use is named in unused. {{name^}} inserts the value with its first letter upper-cased.
Inputs: id (required), variables. Returns: id, text, unused, missing
delete_promptDelete a promptADestructiveIdempotent
Delete a prompt by its id. This cannot be undone through the tools.
Inputs: id (required). Returns: id, name, version, persisted
get_promptGet a promptARead-onlyIdempotent
Get one prompt by id, as JSON: its content, description, tags, and for a template the variables it needs. Fails with an error naming the id when no such prompt is served.
Inputs: id (required). Returns: id, name, tags, content, +8 more
get_statsLibrary statisticsBRead-onlyIdempotent
Counts of prompts and templates, the tags and categories in use, and whether changes are saved to disk (storage).
Inputs: no named parameters. Returns: tags, total, regular, sources, +3 more
list_promptsList promptsARead-onlyIdempotent
List the prompts this server serves, as summaries (id, name, description, tags, isTemplate, category, version, language). Filter with tags (any match), category, isTemplate and search (name, description and content). Returns up to limit prompts starting at offset; when has_more is true, call again with offset = next_offset. Use get_prompt for the content of one prompt.
Inputs: tags, limit, offset, search, +2 more. Returns: count, limit, total, offset, +3 more
update_promptUpdate a promptADestructive
Change fields of an existing prompt; fields left out of updates keep their value, and the version goes up. Replaces the previous values, which are not kept.
Inputs: id (required), updates (required). Returns: id, name, version, persisted
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct role: listing, fetching, applying templates, stats, and CRUD operations on prompts. There is no overlap between creating, updating, deleting, or retrieving prompts.
All tool names follow a consistent snake_case verb_noun pattern: list_prompts, get_prompt, apply_template, get_stats, add_prompt, update_prompt, delete_prompt. The convention is predictable throughout.
Seven tools is well-scoped for a prompt management server, covering listing, retrieval, template application, stats, and full CRUD without excess. Each tool earns its place.
The surface covers the full prompt lifecycle: list, get, create, update, delete, apply templates, and inspect stats. No obvious operational gaps exist for the stated domain.
Maintenance
Related MCP Connectors
Manage, version, and publish LLM prompts with blocks, variables, and evaluations.
Your prompt library in any MCP client: list, fetch, save and version prompt templates.
Your prompt library inside your AI: 1,000+ pro templates, frameworks, vocab & pipelines.
Team prompt library with version control and reviews. Save, search and reuse prompts via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables storage and reuse of prompt templates with variable substitution for LLMs. Supports creating, searching, and retrieving prompt templates to avoid repeating complex instructions across conversations.47 npm4MIT
- AlicenseAqualityDmaintenanceAllows users to save, organize, and manage AI prompts, folders, and tags directly within MCP-compatible tools like Claude and Cursor. It supports version history tracking, prompt searching, and the ability to save public templates to a personal collection.2017 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables users to organize, search, and manage a shared library of prompts across AI tools via the Model Context Protocol. It supports hierarchical folder organization, tagging, and template variable substitution for dynamic prompt generation.MIT
- AlicenseBqualityDmaintenanceEnables AI models like Claude to manage local prompt files with CRUD operations, fuzzy search, categorization, templates, version control, and favorites.325MIT