MCP Prompt Engine
A Model Control Protocol (MCP) server for managing and serving dynamic prompt templates using elegant and powerful text template engine. Create reusable, logic-driven prompts with variables, partials, and conditionals that can be served to any compatible MCP client like Claude Code, Claude Desktop, Gemini CLI, VSCode with Copilot, etc.
Key Features
- MCP Compatible: Works out-of-the-box with any MCP client that supports prompts.
- Powerful Go Templates: Utilizes the full power of Go text/template syntax, including variables, conditionals, loops, and more.
- Reusable Partials: Define common components in partial templates (e.g.,
_header.tmpl) and reuse them across your prompts. - Prompt Arguments: All template variables are automatically exposed as MCP prompt arguments, allowing dynamic input from clients.
- Hot-Reload: Automatically detects changes to your prompt files and reloads them without restarting the server.
- Rich CLI: A modern command-line interface to list, validate, and render templates for easy development and testing.
- Smart Argument Handling:
- Automatically parses JSON arguments (booleans, numbers, arrays, objects).
- Injects environment variables as fallbacks for template arguments.
- Containerized: Full Docker support for easy deployment and integration.






