mcp-local-prompt-server
Click on "Install 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
Prerequisites
Node.js 18+
npm
Installation
git clone git@github.com:engrtipusultan/mcp-local-prompt-server.git
cd mcp-local-prompt-server
npm installAdding 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.
Usage
Development (hot-reload via tsx)
npm run devBuild (TypeScript → JavaScript)
npm run buildProduction
npm startTesting 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 with hot-reload |
|
| Compile to |
|
| Run compiled output |
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/engrtipusultan/mcp-local-prompt-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server