MCP Prompt Templates Server

MCP Prompt Templates Server

mcp-prompts•bytubone24

A Model Context Protocol server that manages and serves customizable prompt templates with argument substitution, plus Markdown resources.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Dynamically loads prompt templates from a templates directory, each configured with a YAML config file and a Markdown template.
  • •Supports dynamic arguments in templates that are replaced with user-provided values at runtime using Mustache-style placeholders.
  • •Serves static Markdown files from a resources directory through the MCP resources primitive.
  • •Implements list and get handlers for prompts and list and read handlers for resources.

BEST FOR

  • •MCP clients such as Claude Desktop that need reusable prompt templates for tasks like meeting analysis, content summarization, and blog post creation.
  • •Teams that want to organize custom prompts as directory-based templates with YAML metadata and required or optional arguments.
  • •Providing reference Markdown documentation to MCP clients as readable resources.

ABOUT MCP-PROMPTS

MCP Prompt Templates Server is cataloged as an MCP server attributed to tubone24. A Model Context Protocol server that manages and serves customizable prompt templates with argument substitution, plus Markdown resources. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Prompt Templates Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How do I add a new prompt template?

Create a new directory in the templates directory, add a config.yaml with the template configuration and a template.md with the prompt template, then restart the server to load it.

What placeholder syntax do templates use?

Templates use Mustache-style placeholders such as {{ argument_name }} matching the argument names defined in config.yaml.

Can this server serve static documentation alongside prompts?

Yes, Markdown files placed in the resources directory are exposed through the MCP resources primitive with resource:// URIs.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7c6ec42e07c1 · 采集于 2026-11-13 13:22:24 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Prompt Templates Server

A Model Context Protocol (MCP) server that provides a "prompts" primitive for managing and serving customizable prompt templates. This server allows you to create, organize, and serve prompt templates that can be used by MCP clients for various tasks like meeting analysis, content summarization, and blog post creation.

Features

  • Dynamic Template Loading: Automatically loads prompt templates from the templates directory
  • YAML Configuration: Each template uses YAML for configuration, making it easy to define metadata and parameters
  • Argument Support: Templates support dynamic arguments that can be replaced at runtime
  • Resource Management: Provides access to Markdown resources from the resources directory through MCP resources primitive
  • Type-Safe Implementation: Built with TypeScript for improved reliability and developer experience
  • Standard MCP Prompts: Implements the MCP prompts primitive, making it compatible with any MCP client
  • Standard MCP Resources: Implements the MCP resources primitive for accessing static content and documentation

Demo

This MCP server provides "prompts" that can be used directly in Claude Desktop. Here's how it works:

1. Viewing Available Prompts

When the MCP server is configured, you can see the list of available prompts by clicking "+" icon in Claude:

Available prompts list

The server dynamically loads all templates from the templates directory and makes them available as prompts.

2. Using a Prompt

Select a prompt (e.g., today_city_weather_forecast) to see its required arguments:

Prompt argument form

Fill in the required fields:

  • City: Enter the city name (e.g., "川崎" for Kawasaki)
  • Date: Enter the date for the forecast (e.g., "2025-06-02")

3. Prompt Execution

After clicking "プロンプトを追加" (Add Prompt), the template is processed with your arguments:

Prompt execution result

The server replaces the placeholders in the template with your provided values and returns the formatted prompt.

4. Claude's Response

Claude then processes the generated prompt and provides a response based on the template's instructions:

Claude's response

In this example, Claude analyzes weather data and provides a detailed weather forecast for the specified city and date, following the format defined in the template.

Installation

npm install

Quick Start

  1. Build the project:

    npm run build
    
  2. Start the server:

    npm start
    

For development with hot-reloading:

npm run dev

DXT Package Distribution

This server can also be distributed as a DXT (Desktop Extension) package for one-click installation in Claude Desktop.

Building DXT Package

  1. Validate DXT configuration:

    npm run dxt:validate
    
  2. Build the DXT package:

    npm run dxt:build
    
  3. Create the .dxt file:

    npm run dxt:package
    

The final .dxt file will be created in the dist-dxt directory and can be distributed for easy installation.

Installing DXT Package

  1. Open Claude Desktop
  2. Go to Settings > Extensions
  3. Click "Install Extension" and select the .dxt file
  4. The MCP server will be automatically configured and ready to use

Creating Templates

Templates are organized in the templates directory. Each template requires:

  • A directory with a descriptive name (e.g., business_team_minutes_template)
  • A config.yaml file defining metadata and arguments
  • A template.md file containing the prompt template

Template Structure

templates/
└── your_custom_template/
    ├── config.yaml
    └── template.md

Configuration Format (config.yaml)

description: "A detailed description of what this template does"
version: "1.0"
arguments:
  - name: "argument_name"
    description: "Description of this argument"
    required: true
  - name: "optional_argument"
    description: "This argument is optional"
    required: false
metadata:
  tags:
    - tag1
    - tag2
  suggested_use: "When and how to use this template"
  output_format: "markdown"

Template Format (template.md)

Templates use Mustache-style placeholders for arguments:

# My Template

Date: {{ date }}
Title: {{ title }}

Content that uses the arguments provided by the user.
{{ main_content }}

MCP Server Configuration

To use this server with an MCP client, add it to your MCP settings configuration.

For Claude Desktop

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "prompt-templates": {
      "command": "node",
      "args": ["/path/to/mcp-prompt-templates-ts/dist/server.js"]
    }
  }
}

For Development

During development, you can use tsx directly:

{
  "mcpServers": {
    "prompt-templates": {
      "command": "npx",
      "args": ["tsx", "/path/to/mcp-prompt-templates-ts/src/server.ts"]
    }
  }
}

Development

Project Structure

mcp-prompt-templates-ts/
├── src/
│   ├── server.ts    # Main MCP server implementation
│   └── client.ts    # Test client for development
├── templates/       # Prompt templates directory
├── resources/       # Static Markdown resources directory
├── dist/           # Compiled JavaScript output
├── package.json
├── tsconfig.json
└── README.md

Adding New Templates

  1. Create a new directory in templates/
  2. Add a config.yaml file with the template configuration
  3. Add a template.md file with the prompt template
  4. Restart the server to load the new template

Managing Resources

Resources provide a way to serve static Markdown content through the MCP resources primitive. These can be documentation, guides, or any reference material that MCP clients can access.

Resource Structure

Resources are stored as Markdown files in the resources directory:

resources/
├── user-guide.md
├── api-documentation.md
└── troubleshooting-guide.md

Resource Format

Each resource is a standard Markdown file. The first line can optionally start with # to provide a description:

# User Guide for Template Management

This guide explains how to create and manage prompt templates...

## Section 1
Content here...

Adding Resources

  1. Create a .md file in the resources/ directory
  2. Add your Markdown content
  3. Optionally start with a # heading for the resource description
  4. Restart the server to load the new resource

Accessing Resources

Resources are automatically exposed through the MCP resources primitive with URIs like resource://filename (without the .md extension). MCP clients can list and read these resources using standard MCP resource operations.

API Reference

This server implements the MCP prompts and resources primitives with the following handlers:

Prompts API

List Prompts

Returns all available prompt templates with their metadata.

Get Prompt

Retrieves a specific prompt template and replaces arguments with provided values.

Parameters:

  • name: The template name (directory name)
  • arguments: Object containing argument values to substitute

Resources API

List Resources

Returns all available resources from the resources directory.

Response:

  • Array of resource objects with uri, name, description, and mimeType

Read Resource

Retrieves the content of a specific resource.

Parameters:

  • uri: The resource URI (e.g., resource://filename)

Response:

  • Resource content as text with metadata

License

MIT License - see LICENSE file for details

Troubleshooting

Server not loading templates

  • Ensure templates directory exists and contains valid subdirectories
  • Check that each template has both config.yaml and template.md files
  • Verify YAML syntax in configuration files

Template arguments not replacing

  • Ensure argument names in template match those defined in config.yaml
  • Use the correct placeholder syntax: {{ argument_name }}
  • Check that required arguments are provided when calling the prompt

Support

For issues, questions, or contributions, please visit the GitHub repository.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Prompt Templates Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-prompts)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools