Skip to main content
Glama
MCP Prompts Server

MCP Prompts Server

by sparesparrow

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level for the serverinfo
PROMPTS_DIRNoDirectory to store prompts when using file storage./prompts
SERVER_NAMENoName of the MCP servermcp-prompts
STORAGE_TYPENoThe type of storage to usefile
SERVER_VERSIONNoVersion of the MCP server1.0.0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Prompt library. This server exposes tools only (no MCP prompts capability), so prompts are not slash commands.

Using a template:

  1. list_prompts with the most specific tag you know. Tags match any of the ones given, so a broad tag also returns unrelated prompts. It returns up to limit prompts (default 50); when has_more is true, call it again with offset set to next_offset.

  2. get_prompt with the id. The result is JSON; its variables array names every value the template needs.

  3. apply_template with the id and a value for every variable. Plain {{name}} replacement: a variable you leave out stays as a literal {{name}}.

  4. apply_template names the variables it could not fill (missing); use the text only when that list is empty.

Persistence: add_prompt, update_prompt and delete_prompt change memory only and are lost when the server restarts. Give add_prompt an id to choose a stable one; otherwise it assigns a random id. A prompt that must last is a JSON file under data/prompts/ with a stable id, added by pull request.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_promptsA

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.

get_promptA

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.

apply_templateA

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.

get_statsB

Counts of prompts and templates, the tags and categories in use, and whether changes are saved to disk (storage).

add_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.

update_promptA

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.

delete_promptA

Delete a prompt by its id. This cannot be undone through the tools.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 7 tools

Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness5/5

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

ActivityMaintained
ResponsivenessNo recent community issues