mcp-local-prompt-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-local-prompt-serverget the grammar correction prompt"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-local-prompt-server
An MCP server that dynamically registers prompt templates from local files and serves them to clients with the assistant role (not user).
Features
File-based prompts — Drop
.txt,.md,.yaml,.yml, or.jsonfiles intoprompts/and they are registered automatically on startupClean naming — Filenames like
grammer_correction_agent.mdbecome prompt names like"grammer correction agent"Assistant role delivery — Prompts are served with
role: "assistant", so clients treat the content as system-level guidance, not user inputStdio transport — Connects via standard input/output, compatible with any MCP host
Related MCP server: mcp-prompt-engine
Example

The screenshot shows the MCP Inspector listing all 4 prompts after the server starts.
Prerequisites
Node.js 18+
npm
Installation
git clone git@github.com:engrtipusultan/mcp-local-prompt-server.git
cd mcp-local-prompt-server
npm installIncluded prompts
File | Prompt name | Description |
| grammer correction agent | Fixes English grammar errors with minimal changes, preserving the user's original style |
| parapharasing agent | Paraphrases text with configurable tone (professional, casual, etc.) and length adjustments |
| prompt enhancement agent | Refines user inputs into structured, actionable prompts |
| summerization agent | Summarizes and structurally maps long texts with metadata, TL;DR, and hierarchical outlines |
Adding more prompts
Create a file in the prompts/ directory:
prompts/
├── code_review_agent.md
├── sql_optimizer.txt
└── writing_feedback.yamlSupported extensions: .txt, .md, .yaml, .yml, .json. Hyphens and underscores in filenames are converted to spaces for the prompt name. No code changes needed — prompts are registered automatically on the next server start.
Usage
Run
npm run devor
npm startBoth run the server directly via tsx — no build step needed.
Testing with MCP Inspector
npx @modelcontextprotocol/inspector npm run devThis opens a web UI where you can browse registered prompts and invoke them interactively.
How it works
On startup, the server scans the prompts/ directory for supported files. Each file is registered as an MCP prompt using mcpServer.registerPrompt(). When a client requests a prompt, the server reads the file content and returns it as an assistant-role message.
┌─────────────────────────────────────┐
│ MCP Host (client) │
│ stdio transport │
└────────────┬────────────────────────┘
│ JSON-RPC
▼
┌─────────────────────────────────────┐
│ mcp-local-prompt-server │
│ │
│ ┌────────────────────────────────┐ │
│ │ prompts/ │ │
│ │ ├── grammer_correction.md │ │
│ │ ├── summarization_agent.md │ │
│ │ └── ... │ │
│ └────────────────────────────────┘ │
└─────────────────────────────────────┘Scripts reference
Script | Command | Description |
|
| Run the server |
|
| Run the server (alias) |
License
Apache 2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Your prompt library in any MCP client: list, fetch, save and version prompt templates.
1MCP server for generating rough-draft project plans from natural-language prompts.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityDmaintenanceA 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.516 npm17MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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.18MIT
- AlicenseBqualityDmaintenanceAn MCP server that registers customizable prompt templates as tools for natural language interaction. It supports hot-reloading and easy extension via YAML or JSON files to automate tasks like code review, refactoring, and content summarization.211 npm1MIT
- AlicenseNot gradedqualityBmaintenanceA lightweight, file-based server for managing and serving personal prompt templates with variable substitution support via the Model Context Protocol. It allows users to store, update, and organize prompts in a local directory through integrated MCP tools and CLI assistants.8 npm7MIT