Skip to main content
Glama
RozuniFix72

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

Maintenance

ActivityMaintained
ResponsivenessNo issues

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
    8
    16
    MIT
  • A
    license
    Not graded
    quality
    C
    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