Back to Home
mrsimpson icon

prompts-mcp

Verified Safe

by mrsimpson

Overview

A Model Context Protocol (MCP) server for managing, templating, and exposing AI prompts defined in markdown files via stdio and HTTP transports.

Installation

Run Command
node dist/bin.js

Environment Variables

  • HTTP_PORT
  • LOG_LEVEL
  • ENABLE_STDIO
  • ENABLE_HTTP
  • SERVER_NAME
  • SERVER_VERSION
  • PROJECT_DIR
  • PROMPTS_SUBDIR

Security Notes

The server uses Handlebars templating with `noEscape: true` for prompt content, which is intentional to preserve code formatting in prompts. While this means the server itself does not attempt to sanitize the *output* to the LLM, the content is intended for an AI, not direct rendering in a browser, mitigating typical XSS risks. All file paths are handled using `path.resolve` and `existsSync` which helps prevent directory traversal vulnerabilities. Configuration parsing includes validation for ports and log levels. No obvious hardcoded secrets or direct arbitrary code execution via user input were found. The directory discovery mechanism allows overrides via environment variables, which is a flexible but secure pattern.

Similar Servers

Stats

Interest Score38
Security Score9
Cost ClassMedium
Avg Tokens750
Stars1
Forks0
Last Update2025-12-03

Tags

MCPPromptsAIServerTemplating