Skip to main content
Glama
promptflow-mcp

promptflow-mcp

by RozuniFix72

✨ Features

  • πŸ“š Template registry β€” save prompts with variables ({{input}})

  • πŸ•˜ Versioning β€” every edit creates a new version; nothing is lost

  • πŸ” Search β€” full-text search across name, body and tags

  • 🧩 Rendering β€” interpolate {{variables}} at call time

  • πŸ’Ύ Local-first β€” plain JSON on disk; back up or sync with git

  • πŸ”Œ MCP native β€” works with any MCP client (Claude, Cursor, etc.)

Related MCP server: mcp-prompt-engine

πŸš€ Quick start

# clone, install, build
git clone https://github.com/DuxuteLi70/promptflow-mcp.git
cd promptflow-mcp
npm install
npm run build

# run the tests
npm test

# start the MCP server
node dist/index.js

πŸ›  MCP tools

Tool

Description

prompt.save

Save or update a prompt template

prompt.list

List all templates (title, version, tags)

prompt.get

Get a template, rendered with variables

prompt.search

Full-text search

prompt.delete

Remove a template

prompt.versions

Show version history of a template

πŸ’‘ Example

import { TemplateRegistry } from "./src/storage/store.js";

const reg = new TemplateRegistry();

// save a template
const id = reg.save("code-review", "Review this diff:\n{{diff}}", ["review"]);

// render it with variables
const rendered = reg.render(id, { diff: "..." });

// every save keeps history
reg.update(id, "Review this carefully:\n{{diff}}");
reg.versions(id); // [{version: 1, ...}, {version: 2, ...}]

πŸ“¦ Project layout

promptflow-mcp/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts            # entry point
β”‚   β”œβ”€β”€ server.ts           # MCP server wiring
β”‚   β”œβ”€β”€ tools/              # MCP tool definitions
β”‚   └── storage/            # JSON-file template store
β”œβ”€β”€ tests/                  # unit tests (node:test)
β”œβ”€β”€ docs/                   # design & usage docs
β”œβ”€β”€ examples/               # MCP client config examples
└── assets/                 # logo + demo media

🀝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

πŸ“„ License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol server for managing prompt templates as markdown files with YAML frontmatter, allowing users and LLMs to easily add, retrieve, and manage prompts.
      5
      22 npm
      17
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      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, etc.
      18
      MIT